[FFmpeg-devel] [PATCH] lavc/raw: add test utility for listing fourcc/pix_fmt map
Stefano Sabatini
stefasab at gmail.com
Sat May 26 01:56:28 CEST 2012
On date Saturday 2012-05-26 01:47:18 +0200, Stefano Sabatini encoded:
> The test program is useful for checking which raw formats are currently
> identified by a codec tag.
> ---
> libavcodec/Makefile | 1 +
> libavcodec/raw.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 97 insertions(+), 0 deletions(-)
And this is the output of libavcodec/raw-test -L:
yuv420p: I420 IYUV YV12
yuyv422: YUY2 Y422 V422 VYUY YUNV yuv2 yuvs DVOO
rgb24: RGB[24]
bgr24: BGR[24] 24BG
yuv422p: Y42B P422 YV16 422P
yuv444p: 444P YV24
yuv410p: YUV9 YVU9
yuv411p: Y41B 411P
gray: Y800 Y8 GREY
monow: B1W0
monob: B0W1
pal8:
yuvj420p: I420 IYUV YV12
yuvj422p: Y42B P422 422P
yuvj444p: 444P
uyvy422: UYVY HDYC UYNV UYNY uyv1 2Vu1 AVRn AV1x AVup VDTZ auv2 cyuv 2vuy 2Vuy AVUI
uyyvyy411: Y411
bgr8: BGR[8]
bgr4: BGR[4]
bgr4_byte: R4BY
rgb8: RGB[8]
rgb4: RGB[4]
rgb4_byte: B4BY
nv12: NV12
nv21: NV21
argb: ARGB
rgba: RGBA RGBA
abgr: ABGR ABGR
bgra: BGRA BGRA
gray16be: [16][0]1Y b16g
gray16le: Y1[0][16]
yuv440p: 440P
yuvj440p: 440P
yuva420p: Y4[11][8]
rgb48be: 0RGB b48r
rgb48le: RGB0
rgb565be: [16]BGR B565
rgb565le: RGB[16] L565 [3][0][0][0]
rgb555be: [15]BGR
rgb555le: RGB[15] L555
bgr565be: [16]RGB
bgr565le: BGR[16]
bgr555be: [15]RGB
bgr555le: BGR[15]
yuv420p16le: Y3[11][16]
yuv420p16be: [16][11]3Y
yuv422p16le: Y3[10][16]
yuv422p16be: [16][10]3Y
yuv444p16le: Y3[0][16]
yuv444p16be: [16][0]3Y
rgb444le: RGB[12]
rgb444be: [12]BGR
bgr444le: BGR[12]
bgr444be: [12]RGB
gray8a: Y2[0][8]
bgr48be: 0BGR
bgr48le: BGR0
yuv420p9be:
yuv420p9le:
yuv420p10be: [10][11]3Y
yuv420p10le: Y3[11][10]
yuv422p10be: [10][10]3Y
yuv422p10le: Y3[10][10]
yuv444p9be:
yuv444p9le:
yuv444p10be: [10][0]3Y
yuv444p10le: Y3[0][10]
yuv422p9be:
yuv422p9le:
gbrp:
gbrp9be:
gbrp9le:
gbrp10be:
gbrp10le:
gbrp16be:
gbrp16le:
rgba64be: [64]RBA
rgba64le: RBA[64]
bgra64be: [64]BRA
bgra64le: BRA[64]
0rgb: [0]RGB
rgb0: RGB[0]
0bgr: [0]BGR
bgr0: BGR[0]
yuva444p: Y4[0][8]
yuva422p: Y4[10][8]
The formats:
pal8, yuv420p9be, yuv420p9le, yuv444p9be, yuv444p9le, yuv422p9be,
yuv422p9le, gbrp, gbrp9be, gbrp9le, gbrp10be, gbrp10le, gbrp16be,
gbrp16le
don't have a corresponding fourcc, so for example cannot be stored in
the NUT container (and the output created by the lavfi test can't be
properly read), unless we add some specific fourccs for them, like we
did in the past.
--
FFmpeg = Fascinating and Friendly Miracolous Perfectionist Eccentric Ghost
More information about the ffmpeg-devel
mailing list