[FFmpeg-devel] [PATCH 10/13] Add rawvideo pixel formats to codec tags mapping for the newly added nut rawvideo pixel formats codec tags.

Stefano Sabatini stefano.sabatini-lala
Sun May 9 15:33:27 CEST 2010


On date Sunday 2010-05-09 15:30:00 +0200, Stefano Sabatini encoded:
> ---
>  libavcodec/raw.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/libavcodec/raw.c b/libavcodec/raw.c
> index 3bb0cc8..ba0ec66 100644
> --- a/libavcodec/raw.c
> +++ b/libavcodec/raw.c
> @@ -80,6 +80,20 @@ const PixelFormatTag ff_raw_pixelFormatTags[] = {
>      { PIX_FMT_ARGB,     MKTAG('A', 'R', 'G', 'B') },
>      { PIX_FMT_RGB24,    MKTAG('R', 'G', 'B', 24 ) },
>      { PIX_FMT_BGR24,    MKTAG('B', 'G', 'R', 24 ) },
> +    { PIX_FMT_YUV444P,  MKTAG('4', '4', '4', 'P') },
> +    { PIX_FMT_YUVJ444P, MKTAG('4', '4', '4', 'P') },
> +    { PIX_FMT_YUV440P,  MKTAG('4', '4', '0', 'P') },
> +    { PIX_FMT_YUVJ440P, MKTAG('4', '4', '0', 'P') },
> +    { PIX_FMT_MONOWHITE,MKTAG('M', 'O', 'W', 'H') },
> +    { PIX_FMT_MONOBLACK,MKTAG('M', 'O', 'B', 'L') },
> +    { PIX_FMT_BGR8,     MKTAG('B', 'G', 'R',  8 ) },
> +    { PIX_FMT_BGR4,     MKTAG('B', 'G', 'R',  4 ) },
> +    { PIX_FMT_RGB8,     MKTAG('R', 'G', 'B',  8 ) },
> +    { PIX_FMT_RGB4,     MKTAG('R', 'G', 'B',  4 ) },
> +    { PIX_FMT_NV12,     MKTAG('N', 'V', '1', '2') },
> +    { PIX_FMT_NV21,     MKTAG('N', 'V', '2', '1') },
> +    { PIX_FMT_RGB48LE,  MKTAG('R', 'G', 'B', 48 ) },
> +    { PIX_FMT_RGB48BE,  MKTAG( 48, 'B', 'G', 'R') },

Attached the corresponding nut4cc.txt patch.

Regards.
-- 
FFmpeg = Friendly and Fascinating Murdering Practical Ecumenical Gangster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut4cc-additions.patch
Type: text/x-diff
Size: 1067 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100509/7d8bd808/attachment.patch>



More information about the ffmpeg-devel mailing list