mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avformat/tests: add FATE tests for yuv4mpegpipe pixel formats
The existing fate-lavf-yuv420p.y4m covers only the default format. Add four entries that pass -pix_fmt explicitly to the lavf_video macro: yuv422p, yuv444p, yuv411p, and gray. These exercise the branches in yuv4mpegpipe_write_header() that write the "C422", "C444", "C411", and "Cmono" chroma descriptor strings in the stream header. All four are gated on ENCDEC(RAWVIDEO,YUV4MPEGPIPE) and added to FATE_LAVF_VIDEO_SCALE so they inherit the requirement for CONFIG_SCALE_FILTER that lavf_video's -auto_conversion_filters needs. Reference files were generated from the actual encoder output and follow the md5+size+CRC format used by the other lavf references. Signed-off-by: Soham Kute <officialsohamkute@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, FITS, FITS) += gbrap.fits
|
||||
FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, FITS, FITS) += gbrp16be.fits
|
||||
FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, FITS, FITS) += gbrap16be.fits
|
||||
FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, GIF, GIF) += gif
|
||||
FATE_LAVF_VIDEO_SCALE-$(call ENCDEC, RAWVIDEO, YUV4MPEGPIPE) += yuv422p.y4m yuv444p.y4m yuv411p.y4m gray.y4m
|
||||
FATE_LAVF_VIDEO-$(call ENCDEC, WRAPPED_AVFRAME RAWVIDEO, YUV4MPEGPIPE) += y4m
|
||||
|
||||
FATE_LAVF_VIDEO-$(CONFIG_SCALE_FILTER) += $(FATE_LAVF_VIDEO_SCALE-yes)
|
||||
@@ -28,6 +29,10 @@ fate-lavf-gbrap.fits: CMD = lavf_video "-pix_fmt gbrap"
|
||||
fate-lavf-gbrp16be.fits: CMD = lavf_video "-pix_fmt gbrp16be"
|
||||
fate-lavf-gbrap16be.fits: CMD = lavf_video "-pix_fmt gbrap16be"
|
||||
fate-lavf-gif: CMD = lavf_video "-pix_fmt rgb8"
|
||||
fate-lavf-yuv422p.y4m: CMD = lavf_video "-pix_fmt yuv422p"
|
||||
fate-lavf-yuv444p.y4m: CMD = lavf_video "-pix_fmt yuv444p"
|
||||
fate-lavf-yuv411p.y4m: CMD = lavf_video "-pix_fmt yuv411p"
|
||||
fate-lavf-gray.y4m: CMD = lavf_video "-pix_fmt gray"
|
||||
|
||||
FATE_AVCONV += $(FATE_LAVF_VIDEO)
|
||||
fate-lavf-video fate-lavf: $(FATE_LAVF_VIDEO)
|
||||
|
||||
3
tests/ref/lavf/gray.y4m
Normal file
3
tests/ref/lavf/gray.y4m
Normal file
@@ -0,0 +1,3 @@
|
||||
c779de1e2e93cde0adeaa21b64111cec *tests/data/lavf/lavf.gray.y4m
|
||||
2534607 tests/data/lavf/lavf.gray.y4m
|
||||
tests/data/lavf/lavf.gray.y4m CRC=0x7aa0122f
|
||||
3
tests/ref/lavf/yuv411p.y4m
Normal file
3
tests/ref/lavf/yuv411p.y4m
Normal file
@@ -0,0 +1,3 @@
|
||||
d7d7776f0784522a214ef8fb3069c277 *tests/data/lavf/lavf.yuv411p.y4m
|
||||
3801820 tests/data/lavf/lavf.yuv411p.y4m
|
||||
tests/data/lavf/lavf.yuv411p.y4m CRC=0x16d61100
|
||||
3
tests/ref/lavf/yuv422p.y4m
Normal file
3
tests/ref/lavf/yuv422p.y4m
Normal file
@@ -0,0 +1,3 @@
|
||||
ad537b0730f3dc46b6f8b82d94570aa5 *tests/data/lavf/lavf.yuv422p.y4m
|
||||
5069020 tests/data/lavf/lavf.yuv422p.y4m
|
||||
tests/data/lavf/lavf.yuv422p.y4m CRC=0x93eac3cf
|
||||
3
tests/ref/lavf/yuv444p.y4m
Normal file
3
tests/ref/lavf/yuv444p.y4m
Normal file
@@ -0,0 +1,3 @@
|
||||
7acc4122d48078e867aa4a974f41d656 *tests/data/lavf/lavf.yuv444p.y4m
|
||||
7603420 tests/data/lavf/lavf.yuv444p.y4m
|
||||
tests/data/lavf/lavf.yuv444p.y4m CRC=0x898ea94b
|
||||
Reference in New Issue
Block a user