[FFmpeg-devel] [PATCH 10/21] avformat/riff: map y408 fourcc to RAWVIDEO decoder

James Almer jamrial at gmail.com
Sat Oct 12 01:53:44 EEST 2024


On 10/11/2024 7:51 PM, Michael Niedermayer wrote:
> On Tue, Oct 08, 2024 at 07:50:15PM -0300, James Almer wrote:
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>   libavcodec/raw.c                         | 1 +
>>   libavformat/riff.c                       | 1 +
>>   tests/ref/fate/filter-pixdesc-ayuv       | 2 +-
>>   tests/ref/fate/filter-pixfmts-copy       | 2 +-
>>   tests/ref/fate/filter-pixfmts-crop       | 2 +-
>>   tests/ref/fate/filter-pixfmts-field      | 2 +-
>>   tests/ref/fate/filter-pixfmts-fieldorder | 2 +-
>>   tests/ref/fate/filter-pixfmts-hflip      | 2 +-
>>   tests/ref/fate/filter-pixfmts-il         | 2 +-
>>   tests/ref/fate/filter-pixfmts-null       | 2 +-
>>   tests/ref/fate/filter-pixfmts-pad        | 2 +-
>>   tests/ref/fate/filter-pixfmts-scale      | 2 +-
>>   tests/ref/fate/filter-pixfmts-transpose  | 2 +-
>>   tests/ref/fate/filter-pixfmts-vflip      | 2 +-
>>   14 files changed, 14 insertions(+), 12 deletions(-)
>>
>> diff --git a/libavcodec/raw.c b/libavcodec/raw.c
>> index b73b80e5fd..acdd79ded8 100644
>> --- a/libavcodec/raw.c
>> +++ b/libavcodec/raw.c
>> @@ -237,6 +237,7 @@ static const PixelFormatTag raw_pix_fmt_tags[] = {
>>       { AV_PIX_FMT_YUYV422, MKTAG('y', 'u', 'v', '2') },
>>       { AV_PIX_FMT_YUYV422, MKTAG('y', 'u', 'v', 's') },
>>       { AV_PIX_FMT_YUYV422, MKTAG('D', 'V', 'O', 'O') }, /* Digital Voodoo SD 8 Bit */
>> +    { AV_PIX_FMT_AYUV,    MKTAG('y', '4', '0', '8') },
>>       { AV_PIX_FMT_RGB555LE,MKTAG('L', '5', '5', '5') },
>>       { AV_PIX_FMT_RGB565LE,MKTAG('L', '5', '6', '5') },
>>       { AV_PIX_FMT_RGB565BE,MKTAG('B', '5', '6', '5') },
>> diff --git a/libavformat/riff.c b/libavformat/riff.c
>> index ca81b4837a..b079b00f6c 100644
>> --- a/libavformat/riff.c
>> +++ b/libavformat/riff.c
>> @@ -296,6 +296,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
>>       { AV_CODEC_ID_RAWVIDEO,     MKTAG('I', '4', 'C', 'B') },
>>       { AV_CODEC_ID_RAWVIDEO,     MKTAG('I', '0', 'F', 'L') },
>>       { AV_CODEC_ID_RAWVIDEO,     MKTAG('I', '0', 'F', 'B') },
>> +    { AV_CODEC_ID_RAWVIDEO,     MKTAG('y', '4', '0', '8') },
>>       { AV_CODEC_ID_FRWU,         MKTAG('F', 'R', 'W', 'U') },
>>       { AV_CODEC_ID_R10K,         MKTAG('R', '1', '0', 'k') },
>>       { AV_CODEC_ID_R210,         MKTAG('r', '2', '1', '0') },
>> diff --git a/tests/ref/fate/filter-pixdesc-ayuv b/tests/ref/fate/filter-pixdesc-ayuv
>> index 178e847222..aed45638ef 100644
>> --- a/tests/ref/fate/filter-pixdesc-ayuv
>> +++ b/tests/ref/fate/filter-pixdesc-ayuv
>> @@ -1 +1 @@
>> -pixdesc-ayuv        a21ac760efdec0065bcf605f4ed75f7f
>> +pixdesc-ayuv        31b8e3c2e1f027af001f774e8a6feae4
>> diff --git a/tests/ref/fate/filter-pixfmts-copy b/tests/ref/fate/filter-pixfmts-copy
>> index bf2eaaf23e..4910c1b9ed 100644
>> --- a/tests/ref/fate/filter-pixfmts-copy
>> +++ b/tests/ref/fate/filter-pixfmts-copy
>> @@ -2,7 +2,7 @@
>>   0rgb                527ef3d164c8fd0700493733959689c2
>>   abgr                023ecf6396d324edb113e4a483b79ba2
>>   argb                f003b555ef429222005d33844cca9325
>> -ayuv                eb7e43cfbb961d1e369311d0f58b9f52
>> +ayuv                631859cdc018cd9671482e435a87becc
> 
> The commit message should explain the reason for the change in fate test checksums
> especially as its slightly hard to tell from the md5 checksums ;)

Will mention that the nut container now contains the string rawvideo as 
encoder instead of v408.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241011/c34f3ca4/attachment.sig>


More information about the ffmpeg-devel mailing list