ColorFourCC

Description

 

 

The ColorFourCC enumerator itemizes color formats.

 

Name/Description

 

 

MFX_FOURCC_YV12

YV12 color planes

 

 

MFX_FOURCC_NV12

NV12 color planes

 

 

MFX_FOURCC_NV16

4:2:2 color format with similar to NV12 layout.

 

 

MFX_FOURCC_RGB4

RGB4 (RGB32) color planes

 

 

MFX_FOURCC_YUY2

YUY2 color planes

 

 

MFX_FOURCC_P8

Internal SDK color format. The application should use one of the functions below to create such surface, depending on Direct3D version.

Direct3D9

IDirectXVideoDecoderService::CreateSurface()

Direct3D11

ID3D11Device::CreateBuffer()

 

 

MFX_FOURCC_P8_TEXTURE

Internal SDK color format. The application should use one of the functions below to create such surface, depending on Direct3D version.

Direct3D9

IDirectXVideoDecoderService::CreateSurface()

Direct3D11

ID3D11Device::CreateTexture2D()

 

 

MFX_FOURCC_P010

P010 color format. This is 10 bit per sample format with similar to NV12 layout.

This format should be mapped to DXGI_FORMAT_P010.

 

 

MFX_FOURCC_P210

10 bit per sample 4:2:2 color format with similar to NV12 layout

 

 

MFX_FOURCC_BGR4

ABGR color format. It is similar to MFX_FOURCC_RGB4 but with interchanged R and B channels. ‘A’ is 8 MSBs, then 8 bits for ‘B’ channel, then ‘G’ and ‘R’ channels.

 

 

MFX_FOURCC_A2RGB10

10 bits ARGB color format packed in 32 bits. ‘A’ channel is two MSBs, then ‘R’, then ‘G’ and then ‘B’ channels.

This format should be mapped to DXGI_FORMAT_R10G10B10A2_UNORM or D3DFMT_A2R10G10B10.

 

 

MFX_FOURCC_ARGB16

10 bits ARGB color format packed in 64 bits. ‘A’ channel is 16 MSBs, then ‘R’, then ‘G’ and then ‘B’ channels.

This format should be mapped to DXGI_FORMAT_R16G16B16A16_UINT or D3DFMT_A16B16G16R16 formats.

 

 

MFX_FOURCC_R16

16 bits single channel color format.

This format should be mapped to DXGI_FORMAT_R16_TYPELESS or D3DFMT_R16F.

 

 

MFX_FOURCC_ABGR16

10 bits ABGR color format packed in 64 bits. ‘A’ channel is 16 MSBs, then ‘B’, then ‘G’ and then ‘R’ channels.

This format should be mapped to DXGI_FORMAT_R16G16B16A16_UINT or D3DFMT_A16B16G16R16 formats.

 

 

MFX_FOURCC_AYUV

YUV 4:4:4, AYUV color format.

This format should be mapped to DXGI_FORMAT_AYUV.

 

 

MFX_FOURCC_AYUV_RGB4

RGB4 stored in AYUV surface.

This format should be mapped to DXGI_FORMAT_AYUV.

 

 

MFX_FOURCC_UYVY

UYVY color planes. Same as YUY2 except the byte order is reversed.

 

Change History

 

This enumerator is available since SDK API 1.0.

The SDK API 1.1 adds MFX_FOURCC_P8.

The SDK API 1.6 adds MFX_FOURCC_P8_TEXTURE.

The SDK API 1.9 adds MFX_FOURCC_P010, MFX_FOURCC_BGR4, MFX_FOURCC_A2RGB10, MFX_FOURCC_ARGB16 and MFX_FOURCC_R16.

The SDK API 1.11 adds MFX_FOURCC_NV16 and MFX_FOURCC_P210.

The SDK API 1.17 adds MFX_FOURCC_ABGR16, MFX_FOURCC_AYUV, MFX_FOURCC_AYUV_RGB4, and MFX_FOURCC_UYVY.

 

 

 

 

 

For more complete information about compiler optimizations, see our Optimization Notice.