Add PixelFormat::NV12

This commit is contained in:
Wojtek Figat
2024-05-15 11:14:16 +02:00
parent 3ae30a59b3
commit 9d2dc91920
6 changed files with 18 additions and 2 deletions

View File

@@ -96,6 +96,8 @@ namespace MF
player.Format = PixelFormat::B5G6R5_UNorm;
else if (subtype == MFVideoFormat_RGB555)
player.Format = PixelFormat::B5G5R5A1_UNorm;
else if (subtype == MFVideoFormat_NV12)
player.Format = PixelFormat::NV12;
else if (subtype == MFVideoFormat_YUY2)
player.Format = PixelFormat::YUY2;
#if (WDK_NTDDI_VERSION >= NTDDI_WIN10)