Show / Hide Table of Contents

Enum PixelFormat

Represents the various pixel formats available.

Namespace: FFmpeg.Images
Assembly: FFmpeg.dll
Syntax
public enum PixelFormat

Fields

Name Description
ABGR

packed ABGR 8:8:8:8, 32bpp, ABGRABGR...

AMF_SURFACE

HW acceleration through AMF. data[0] contain AMFSurface pointer

ARGB

packed ARGB 8:8:8:8, 32bpp, ARGBARGB...

AYUV

Packed AYUV 4:4:4:4, 32bpp, AYUVAYUV...

AYUV64BE

Packed AYUV 4:4:4, 64bpp (1 Cr & Cb sample per 1x1 Y & A samples), big-endian

AYUV64LE

Packed AYUV 4:4:4, 64bpp (1 Cr & Cb sample per 1x1 Y & A samples), little-endian

BAYER_BGGR16BE

Bayer pattern, BGBG..(odd line), GRGR..(even line), 16-bit samples, big-endian

BAYER_BGGR16LE

Bayer pattern, BGBG..(odd line), GRGR..(even line), 16-bit samples, little-endian

BAYER_BGGR8

Bayer pattern, BGBG..(odd line), GRGR..(even line), 8-bit samples

BAYER_GBRG16BE

Bayer pattern, GBGB..(odd line), RGRG..(even line), 16-bit samples, big-endian

BAYER_GBRG16LE

Bayer pattern, GBGB..(odd line), RGRG..(even line), 16-bit samples, little-endian

BAYER_GBRG8

Bayer pattern, GBGB..(odd line), RGRG..(even line), 8-bit samples

BAYER_GRBG16BE

Bayer pattern, GRGR..(odd line), BGBG..(even line), 16-bit samples, big-endian

BAYER_GRBG16LE

Bayer pattern, GRGR..(odd line), BGBG..(even line), 16-bit samples, little-endian

BAYER_GRBG8

Bayer pattern, GRGR..(odd line), BGBG..(even line), 8-bit samples

BAYER_RGGB16BE

Bayer pattern, RGRG..(odd line), GBGB..(even line), 16-bit samples, big-endian

BAYER_RGGB16LE

Bayer pattern, RGRG..(odd line), GBGB..(even line), 16-bit samples, little-endian

BAYER_RGGB8

Bayer pattern, RGRG..(odd line), GBGB..(even line), 8-bit samples

BGR24

packed RGB 8:8:8, 24bpp, BGRBGR...

BGR4

packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits

BGR444BE

packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), big-endian, X=unused/undefined

BGR444LE

packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), little-endian, X=unused/undefined

BGR48BE

packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big-endian

BGR48LE

packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as little-endian

BGR4Byte

packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)

BGR555BE

packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), big-endian , X=unused/undefined

BGR555LE

packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), little-endian, X=unused/undefined

BGR565BE

packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian

BGR565LE

packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian

BGR8

packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)

BGRA

packed BGRA 8:8:8:8, 32bpp, BGRABGRA...

BGRA64BE

packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian

BGRA64LE

packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian

BGRX

Packed BGR 8:8:8, 32bpp, BGRXBGRX... X=unused/undefined

CUDA

HW acceleration through CUDA. data[i] contain CUdeviceptr pointers exactly as for system memory frames.

D3D11

Hardware surfaces for Direct3D11.

D3D11VA_VLD

HW decoding through Direct3D11 via old API, Picture.data[3] contains a ID3D11VideoDecoderOutputView pointer

D3D12

Hardware surfaces for Direct3D 12.

DRM_PRIME

DRM-managed buffers exposed through PRIME buffer sharing.

DXVA2VLD

HW decoding through DXVA2, Picture.data[3] contains a LPDIRECT3DSURFACE9 pointer

GBR24P
GBRA4444_32

Planar GBRA 4:4:4:4 32bpp

GBRA4444_64BE

Planar GBRA 4:4:4:4 64bpp, big-endian

GBRA4444_64LE

Planar GBRA 4:4:4:4 64bpp, little-endian

GBRAP10BE

Planar GBR 4:4:4:4, 40bpp, big-endian

GBRAP10LE

Planar GBR 4:4:4:4, 40bpp, little-endian

GBRAP12BE

Planar GBR 4:4:4:4, 48bpp, big-endian

GBRAP12LE

Planar GBR 4:4:4:4, 48bpp, little-endian

GBRAP14BE

Planar GBR 4:4:4:4 56bpp, big-endian

GBRAP14LE

Planar GBR 4:4:4:4 56bpp, little-endian

GBRAP32BE

Planar GBRA 4:4:4:4 128bpp, big-endian

GBRAP32LE

Planar GBRA 4:4:4:4 128bpp, little-endian

GBRAPF16BE

IEEE-754 half precision planar GBRA 4:4:4:4, 64bpp, big-endian

GBRAPF16LE

IEEE-754 half precision planar GBRA 4:4:4:4, 64bpp, little-endian

GBRAPF32BE

IEEE-754 single precision planar GBRA 4:4:4:4, 128bpp, big-endian

GBRAPF32LE

IEEE-754 single precision planar GBRA 4:4:4:4, 128bpp, little-endian

GBRP

planar GBR 4:4:4 24bpp

GBRP10BE

planar GBR 4:4:4 30bpp, big-endian

GBRP10LE

planar GBR 4:4:4 30bpp, little-endian

GBRP10MSBBE

Planar GBR 4:4:4 30bpp, lowest bits zero, big-endian

GBRP10MSBLE

Planar GBR 4:4:4 30bpp, lowest bits zero, little-endian

GBRP12BE

Planar GBR 4:4:4, 36bpp, big-endian

GBRP12LE

Planar GBR 4:4:4, 36bpp, little-endian

GBRP12MSBBE

Planar GBR 4:4:4 36bpp, lowest bits zero, big-endian

GBRP12MSBLE

Planar GBR 4:4:4 36bpp, lowest bits zero, little-endian

GBRP14BE

Planar GBR 4:4:4, 42bpp, big-endian

GBRP14LE

Planar GBR 4:4:4, 42bpp, little-endian

GBRP16BE

planar GBR 4:4:4 48bpp, big-endian

GBRP16LE

planar GBR 4:4:4 48bpp, little-endian

GBRP9BE

planar GBR 4:4:4 27bpp, big-endian

GBRP9LE

planar GBR 4:4:4 27bpp, little-endian

GBRPF16BE

IEEE-754 half precision planer GBR 4:4:4, 48bpp, big-endian

GBRPF16LE

IEEE-754 half precision planer GBR 4:4:4, 48bpp, little-endian

GBRPF32BE

IEEE-754 single precision planar GBR 4:4:4, 96bpp, big-endian

GBRPF32LE

IEEE-754 single precision planar GBR 4:4:4, 96bpp, little-endian

GRAY10BE

Y, 10bpp, big-endian

GRAY10LE

Y, 10bpp, little-endian

GRAY12BE

Y, 12bpp, big-endian

GRAY12LE

Y, 12bpp, little-endian

GRAY14BE

Y, 14bpp, big-endian

GRAY14LE

Y, 14bpp, little-endian

GRAY32BE

Y, 32bpp, big-endian

GRAY32LE

Y, 32bpp, little-endian

GRAY9BE

Y, 9bpp, big-endian

GRAY9LE

Y, 9bpp, little-endian

GRAYF16BE

IEEE-754 half precision Y, 16bpp, big-endian

GRAYF16LE

IEEE-754 half precision Y, 16bpp, little-endian

GRAYF32BE

IEEE-754 single precision Y, 32bpp, big-endian

GRAYF32LE

IEEE-754 single precision Y, 32bpp, little-endian

Gray16BE

Y , 16bpp, big-endian

Gray16LE

Y , 16bpp, little-endian

Gray8

Y , 8bpp

Gray8A

alias for AV_PIX_FMT_YA8

MEDIACODEC

Hardware decoding through MediaCodec

MMAL

HW acceleration through MMAL, data[3] contains a pointer to the MMAL_BUFFER_HEADER_T structure.

MonoBlack

Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb

MonoWhite

Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb

NV12

planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V)

NV16

interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)

NV20BE

interleaved chroma YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian

NV20LE

interleaved chroma YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian

NV21

as above, but U and V bytes are swapped

NV24

Planar YUV 4:4:4, 24bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V)

NV42

As above, but U and V bytes are swapped

None
OHCODEC

Special codec pixel format

OPENCL

Hardware surfaces for OpenCL.

P010BE

Like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, big-endian

P010LE

Like NV12, with 10bpp per component, data in the high bits, zeros in the low bits, little-endian

P012BE

Like NV12, with 12bpp per component, data in the high bits, zeros in the low bits, big-endian

P012LE

Like NV12, with 12bpp per component, data in the high bits, zeros in the low bits, little-endian

P016BE

Like NV12, with 16bpp per component, big-endian

P016LE

Like NV12, with 16bpp per component, little-endian

P210BE

Interleaved chroma YUV 4:2:2, 20bpp, data in the high bits, big-endian

P210LE

Interleaved chroma YUV 4:2:2, 20bpp, data in the high bits, little-endian

P212BE

Interleaved chroma YUV 4:2:2, 24bpp, data in the high bits, big-endian

P212LE

Interleaved chroma YUV 4:2:2, 24bpp, data in the high bits, little-endian

P216BE

Interleaved chroma YUV 4:2:2, 32bpp, big-endian

P216LE

Interleaved chroma YUV 4:2:2, 32bpp, little-endian

P410BE

Interleaved chroma YUV 4:4:4, 30bpp, data in the high bits, big-endian

P410LE

Interleaved chroma YUV 4:4:4, 30bpp, data in the high bits, little-endian

P412BE

Interleaved chroma YUV 4:4:4, 36bpp, data in the high bits, big-endian

P412LE

Interleaved chroma YUV 4:4:4, 36bpp, data in the high bits, little-endian

P416BE

Interleaved chroma YUV 4:4:4, 48bpp, big-endian

P416LE

Interleaved chroma YUV 4:4:4, 48bpp, little-endian

PAL8

8 bits with AV_PIX_FMT_RGB32 palette

QSV

HW acceleration through QSV, data[3] contains a pointer to the mfxFrameSurface1 structure.

RGB24

packed RGB 8:8:8, 24bpp, RGBRGB...

RGB4

packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits

RGB444BE

packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), big-endian, X=unused/undefined

RGB444LE

packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), little-endian, X=unused/undefined

RGB48BE

packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big-endian

RGB48LE

packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as little-endian

RGB4Byte

packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)

RGB555BE

packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined

RGB555LE

packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined

RGB565BE

packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian

RGB565LE

packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian

RGB8

packed RGB 3:3:2, 8bpp, (msb)3R 3G 2B(lsb)

RGB96BE

Packed RGBA 32:32:32, 96bpp, big-endian

RGB96LE

Packed RGBA 32:32:32, 96bpp, little-endian

RGBA

packed RGBA 8:8:8:8, 32bpp, RGBARGBA...

RGBA128BE

Packed RGBA 32:32:32:32, 128bpp, big-endian

RGBA128LE

Packed RGBA 32:32:32:32, 128bpp, little-endian

RGBA64BE

packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian

RGBA64LE

packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian

RGBAF16BE

IEEE-754 half precision packed RGBA 16:16:16:16, 64bpp, RGBARGBA..., big-endian

RGBAF16LE

IEEE-754 half precision packed RGBA 16:16:16:16, 64bpp, RGBARGBA..., little-endian

RGBAF32BE

IEEE-754 single precision packed RGBA 32:32:32:32, 128bpp, RGBARGBA..., big-endian

RGBAF32LE

IEEE-754 single precision packed RGBA 32:32:32:32, 128bpp, RGBARGBA..., little-endian

RGBF16BE

IEEE-754 half precision packed RGB 16:16:16, 48bpp, big-endian

RGBF16LE

IEEE-754 half precision packed RGB 16:16:16, 48bpp, little-endian

RGBF32BE

IEEE-754 single precision packed RGB 32:32:32, 96bpp, RGBRGB..., big-endian

RGBF32LE

IEEE-754 single precision packed RGB 32:32:32, 96bpp, RGBRGB..., little-endian

RGBX

Packed RGB 8:8:8, 32bpp, RGBXRGBX... X=unused/undefined

UYVA

Packed UYVA 4:4:4:4, 32bpp, UYVAUYVA...

UYVY422

packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1

UYYVYY411

packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3

V30XBE

Packed VYUX 4:4:4, 32bpp, big-endian

V30XLE

Packed VYUX 4:4:4, 32bpp, little-endian

VAAPI

Hardware acceleration through VA-API, data[3] contains a VASurfaceID.

VDPAU

HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface

VIDEOTOOLBOX

Hardware decoding through Videotoolbox

VULKAN

Vulkan hardware images.

VUYA

Packed VUYA 4:4:4, 32bpp, VUYAVUYA...

VUYX

Packed VUYX 4:4:4, 32bpp, Variant of VUYA where alpha channel is left undefined

VYU444

Packed VYU 4:4:4, 24bpp, VYUVYU...

X2BGR10BE

Packed BGR 10:10:10, 30bpp, (msb)2X 10B 10G 10R(lsb), big-endian, X=unused/undefined

X2BGR10LE

Packed BGR 10:10:10, 30bpp, (msb)2X 10B 10G 10R(lsb), little-endian, X=unused/undefined

X2RGB10BE

Packed RGB 10:10:10, 30bpp, (msb)2X 10R 10G 10B(lsb), big-endian, X=unused/undefined

X2RGB10LE

Packed RGB 10:10:10, 30bpp, (msb)2X 10R 10G 10B(lsb), little-endian, X=unused/undefined

XBGR

Packed BGR 8:8:8, 32bpp, XBGRXBGR... X=unused/undefined

XRGB

Packed RGB 8:8:8, 32bpp, XRGBXRGB... X=unused/undefined

XV30BE

Packed XVYU 4:4:4, 32bpp, (msb)2X 10V 10Y 10U(lsb), big-endian, variant of Y410 where alpha channel is left undefined

XV30LE

Packed XVYU 4:4:4, 32bpp, (msb)2X 10V 10Y 10U(lsb), little-endian, variant of Y410 where alpha channel is left undefined

XV36BE

Packed XVYU 4:4:4, 48bpp, data in the high bits, zeros in the low bits, big-endian, variant of Y412 where alpha channel is left undefined

XV36LE

Packed XVYU 4:4:4, 48bpp, data in the high bits, zeros in the low bits, little-endian, variant of Y412 where alpha channel is left undefined

XV48BE

Packed XVYU 4:4:4, 64bpp, big-endian

XV48LE

Packed XVYU 4:4:4, 64bpp, little-endian

XYZ12BE

packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as big-endian, the 4 lower bits are set to 0

XYZ12LE

packed XYZ 4:4:4, 36 bpp, (msb) 12X, 12Y, 12Z (lsb), the 2-byte value for each X/Y/Z is stored as little-endian, the 4 lower bits are set to 0

Y210BE

Packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, big-endian

Y210LE

Packed YUV 4:2:2 like YUYV422, 20bpp, data in the high bits, little-endian

Y212BE

Packed YUV 4:2:2 like YUYV422, 24bpp, data in the high bits, zeros in the low bits, big-endian

Y212LE

Packed YUV 4:2:2 like YUYV422, 24bpp, data in the high bits, zeros in the low bits, little-endian

Y216BE

Packed YUV 4:2:2 like YUYV422, 32bpp, big-endian

Y216LE

Packed YUV 4:2:2 like YUYV422, 32bpp, little-endian

Y400A

alias for AV_PIX_FMT_YA8

YA16BE

16 bits gray, 16 bits alpha (big-endian)

YA16LE

16 bits gray, 16 bits alpha (little-endian)

YA8

8 bits gray, 8 bits alpha

YAF16BE

IEEE-754 half precision packed YA, 16 bits gray, 16 bits alpha, 32bpp, big-endian

YAF16LE

IEEE-754 half precision packed YA, 16 bits gray, 16 bits alpha, 32bpp, little-endian

YAF32BE

IEEE-754 single precision packed YA, 32 bits gray, 32 bits alpha, 64bpp, big-endian

YAF32LE

IEEE-754 single precision packed YA, 32 bits gray, 32 bits alpha, 64bpp, little-endian

YUV410P

planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)

YUV411P

planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)

YUV411P_JPEG

Planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV411P and setting color_range

YUV420P

planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)

YUV420P10BE

planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian

YUV420P10LE

planar YUV 4:2:0, 15bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian

YUV420P12BE

Planar YUV 4:2:0, 18bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian

YUV420P12LE

Planar YUV 4:2:0, 18bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian

YUV420P14BE

Planar YUV 4:2:0, 21bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian

YUV420P14LE

Planar YUV 4:2:0, 21bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian

YUV420P16BE

planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian

YUV420P16LE

planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian

YUV420P9BE

planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian

YUV420P9LE

planar YUV 4:2:0, 13.5bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian

YUV422P

planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)

YUV422P10BE

planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian

YUV422P10LE

planar YUV 4:2:2, 20bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian

YUV422P12BE

Planar YUV 4:2:2, 24bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian

YUV422P12LE

Planar YUV 4:2:2, 24bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian

YUV422P14BE

Planar YUV 4:2:2, 28bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian

YUV422P14LE

Planar YUV 4:2:2, 28bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian

YUV422P16BE

planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian

YUV422P16LE

planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian

YUV422P9BE

planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian

YUV422P9LE

planar YUV 4:2:2, 18bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian

YUV440P

planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)

YUV440P10BE

Planar YUV 4:4:0, 20bpp, (1 Cr & Cb sample per 1x2 Y samples), big-endian

YUV440P10LE

Planar YUV 4:4:0, 20bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian

YUV440P12BE

Planar YUV 4:4:0, 24bpp, (1 Cr & Cb sample per 1x2 Y samples), big-endian

YUV440P12LE

Planar YUV 4:4:0, 24bpp, (1 Cr & Cb sample per 1x2 Y samples), little-endian

YUV444P

planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)

YUV444P10BE

planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian

YUV444P10LE

planar YUV 4:4:4, 30bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian

YUV444P10MSBBE

Planar YUV 4:4:4, 30bpp, lowest bits zero, big-endian

YUV444P10MSBLE

Planar YUV 4:4:4, 30bpp, lowest bits zero, little-endian

YUV444P12BE

Planar YUV 4:4:4, 36bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian

YUV444P12LE

Planar YUV 4:4:4, 36bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian

YUV444P12MSBBE

Planar YUV 4:4:4, 30bpp, lowest bits zero, big-endian

YUV444P12MSBLE

Planar YUV 4:4:4, 30bpp, lowest bits zero, little-endian

YUV444P14BE

Planar YUV 4:4:4, 42bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian

YUV444P14LE

Planar YUV 4:4:4, 42bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian

YUV444P16BE

planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian

YUV444P16LE

planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian

YUV444P9BE

planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian

YUV444P9LE

planar YUV 4:4:4, 27bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian

YUVA420P

planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)

YUVA420P10BE

planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)

YUVA420P10LE

planar YUV 4:2:0 25bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)

YUVA420P16BE

planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, big-endian)

YUVA420P16LE

planar YUV 4:2:0 40bpp, (1 Cr & Cb sample per 2x2 Y & A samples, little-endian)

YUVA420P9BE

planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), big-endian

YUVA420P9LE

planar YUV 4:2:0 22.5bpp, (1 Cr & Cb sample per 2x2 Y & A samples), little-endian

YUVA422P

planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)

YUVA422P10BE

planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)

YUVA422P10LE

planar YUV 4:2:2 30bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)

YUVA422P12BE

Planar YUV 4:2:2, 24bpp, (1 Cr & Cb sample per 2x1 Y samples), 12b alpha, big-endian

YUVA422P12LE

Planar YUV 4:2:2, 24bpp, (1 Cr & Cb sample per 2x1 Y samples), 12b alpha, little-endian

YUVA422P16BE

planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, big-endian)

YUVA422P16LE

planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)

YUVA422P9BE

planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), big-endian

YUVA422P9LE

planar YUV 4:2:2 27bpp, (1 Cr & Cb sample per 2x1 Y & A samples), little-endian

YUVA444P

planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)

YUVA444P10BE

planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)

YUVA444P10LE

planar YUV 4:4:4 40bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)

YUVA444P12BE

Planar YUV 4:4:4, 36bpp, (1 Cr & Cb sample per 1x1 Y samples), 12b alpha, big-endian

YUVA444P12LE

Planar YUV 4:4:4, 36bpp, (1 Cr & Cb sample per 1x1 Y samples), 12b alpha, little-endian

YUVA444P16BE

planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)

YUVA444P16LE

planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)

YUVA444P9BE

planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), big-endian

YUVA444P9LE

planar YUV 4:4:4 36bpp, (1 Cr & Cb sample per 1x1 Y & A samples), little-endian

YUVJ420P

planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting color_range

YUVJ422P

planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting color_range

YUVJ440P

planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range

YUVJ444P

planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting color_range

YUYV422

packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr

YVYU422

packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb

__COUNT__

Number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions

Extension Methods

PixelFormatExtensions.BitsPerPixel(PixelFormat)
PixelFormatExtensions.FindBestPixelFormat(PixelFormat, out FFLoss, params ReadOnlySpan<PixelFormat>)
PixelFormatExtensions.FindBestPixelFormat(PixelFormat, bool, out FFLoss, params ReadOnlySpan<PixelFormat>)
PixelFormatExtensions.FindBestPixelFormat(PixelFormat, bool, params ReadOnlySpan<PixelFormat>)
PixelFormatExtensions.FindBestPixelFormat(PixelFormat, params ReadOnlySpan<PixelFormat>)
PixelFormatExtensions.PlaneCount(PixelFormat)
PixelFormatExtensions.SwapEndianness(PixelFormat)
PixelFormatExtensions.ToFFmpegString(PixelFormat)
  • View Source
In this article
Back to top Generated by DocFX