diff mbox series

[FFmpeg-devel,2/2] fate/h264: add test case for h264-loss_packet_for_prev_frame_num_offset

Message ID 20220216085146.26078-2-lq@chinaffmpeg.org
State New
Headers show
Series [FFmpeg-devel,1/2] avcodec/h264_slice: compute prev_frame_num_offset to correct value | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson fail Make fate failed
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed
andriy/make_ppc success Make finished
andriy/make_fate_ppc fail Make fate failed

Commit Message

Liu Steven Feb. 16, 2022, 8:51 a.m. UTC
From: Steven Liu <liuqi05@kuaishou.com>

Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
---
 tests/fate/h264.mak                           |  2 ++
 ...h264-loss_packet_for_prev_frame_num_offset | 23 +++++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset

Comments

Liu Steven Feb. 16, 2022, 8:54 a.m. UTC | #1
> 2022年2月16日 下午4:51,Steven Liu <lq@chinaffmpeg.org> 写道:
> 
> From: Steven Liu <liuqi05@kuaishou.com>
> 
> Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
> ---
> tests/fate/h264.mak                           |  2 ++
> ...h264-loss_packet_for_prev_frame_num_offset | 23 +++++++++++++++++++
> 2 files changed, 25 insertions(+)
> create mode 100644 tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
> 
> diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
> index e075b6f67f..142a4ea708 100644
> --- a/tests/fate/h264.mak
> +++ b/tests/fate/h264.mak
> @@ -195,6 +195,7 @@ FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
>               fate-h264-lossless                                        \
>               fate-h264-3386                                            \
>               fate-h264-missing-frame                                   \
> +              fate-h264-loss_packet_for_prev_frame_num_offset           \
>               fate-h264-ref-pic-mod-overflow                            \
>               fate-h264-timecode                                        \
>               fate-h264-encparams
> @@ -442,6 +443,7 @@ fate-h264-twofields-packet:                       CMD = framecrc -i $(TARGET_SAM
> fate-h264-unescaped-extradata:                    CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10
> fate-h264-3386:                                   CMD = framecrc -i $(TARGET_SAMPLES)/h264/bbc2.sample.h264
> fate-h264-missing-frame:                          CMD = framecrc -i $(TARGET_SAMPLES)/h264/nondeterministic_cut.h264
> +fate-h264-loss_packet_for_prev_frame_num_offset:  CMD = framecrc -i $(TARGET_SAMPLES)/h264/loss_packet_for_prev_frame_num_offset.h264
> fate-h264-timecode:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/crew_cif_timecode-2.h264
> 
> fate-h264-reinit-%:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf scale,format=yuv444p10le,scale=w=352:h=288
> diff --git a/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
> new file mode 100644
> index 0000000000..df8a88f5d4
> --- /dev/null
> +++ b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
> @@ -0,0 +1,23 @@
> +#tb 0: 1/25
> +#media_type 0: video
> +#codec_id 0: rawvideo
> +#dimensions 0: 1280x720
> +#sar 0: 0/1
> +0,          0,          0,        1,  1382400, 0xa21b9a12
> +0,          1,          1,        1,  1382400, 0x9f266c66
> +0,          2,          2,        1,  1382400, 0x08604d2c
> +0,          3,          3,        1,  1382400, 0x0f59c63a
> +0,          4,          4,        1,  1382400, 0xe9588c5d
> +0,          5,          5,        1,  1382400, 0x01c3559a
> +0,          6,          6,        1,  1382400, 0x40791f04
> +0,          7,          7,        1,  1382400, 0x2047c562
> +0,          8,          8,        1,  1382400, 0x24f7b450
> +0,          9,          9,        1,  1382400, 0xfa3d00ed
> +0,         10,         10,        1,  1382400, 0x8c3384ed
> +0,         11,         11,        1,  1382400, 0xfa7c59e0
> +0,         12,         12,        1,  1382400, 0x0d16c5d1
> +0,         13,         13,        1,  1382400, 0x665bd32c
> +0,         14,         14,        1,  1382400, 0xe8771b9d
> +0,         15,         15,        1,  1382400, 0xd9824ab1
> +0,         16,         16,        1,  1382400, 0xa7264481
> +0,         17,         17,        1,  1382400, 0xdcaec99a
> -- 
> 2.25.0
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
> 

attach test file
Thanks

Steven Liu
Liu Steven March 21, 2022, 6:43 a.m. UTC | #2
> 2022年2月16日 下午4:54,Steven Liu <lq@chinaffmpeg.org> 写道:
> 
> 
> 
>> 2022年2月16日 下午4:51,Steven Liu <lq@chinaffmpeg.org> 写道:
>> 
>> From: Steven Liu <liuqi05@kuaishou.com>
>> 
>> Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
>> ---
>> tests/fate/h264.mak                           |  2 ++
>> ...h264-loss_packet_for_prev_frame_num_offset | 23 +++++++++++++++++++
>> 2 files changed, 25 insertions(+)
>> create mode 100644 tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
>> 
>> diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
>> index e075b6f67f..142a4ea708 100644
>> --- a/tests/fate/h264.mak
>> +++ b/tests/fate/h264.mak
>> @@ -195,6 +195,7 @@ FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
>>              fate-h264-lossless                                        \
>>              fate-h264-3386                                            \
>>              fate-h264-missing-frame                                   \
>> +              fate-h264-loss_packet_for_prev_frame_num_offset           \
>>              fate-h264-ref-pic-mod-overflow                            \
>>              fate-h264-timecode                                        \
>>              fate-h264-encparams
>> @@ -442,6 +443,7 @@ fate-h264-twofields-packet:                       CMD = framecrc -i $(TARGET_SAM
>> fate-h264-unescaped-extradata:                    CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10
>> fate-h264-3386:                                   CMD = framecrc -i $(TARGET_SAMPLES)/h264/bbc2.sample.h264
>> fate-h264-missing-frame:                          CMD = framecrc -i $(TARGET_SAMPLES)/h264/nondeterministic_cut.h264
>> +fate-h264-loss_packet_for_prev_frame_num_offset:  CMD = framecrc -i $(TARGET_SAMPLES)/h264/loss_packet_for_prev_frame_num_offset.h264
>> fate-h264-timecode:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/crew_cif_timecode-2.h264
>> 
>> fate-h264-reinit-%:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf scale,format=yuv444p10le,scale=w=352:h=288
>> diff --git a/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
>> new file mode 100644
>> index 0000000000..df8a88f5d4
>> --- /dev/null
>> +++ b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
>> @@ -0,0 +1,23 @@
>> +#tb 0: 1/25
>> +#media_type 0: video
>> +#codec_id 0: rawvideo
>> +#dimensions 0: 1280x720
>> +#sar 0: 0/1
>> +0,          0,          0,        1,  1382400, 0xa21b9a12
>> +0,          1,          1,        1,  1382400, 0x9f266c66
>> +0,          2,          2,        1,  1382400, 0x08604d2c
>> +0,          3,          3,        1,  1382400, 0x0f59c63a
>> +0,          4,          4,        1,  1382400, 0xe9588c5d
>> +0,          5,          5,        1,  1382400, 0x01c3559a
>> +0,          6,          6,        1,  1382400, 0x40791f04
>> +0,          7,          7,        1,  1382400, 0x2047c562
>> +0,          8,          8,        1,  1382400, 0x24f7b450
>> +0,          9,          9,        1,  1382400, 0xfa3d00ed
>> +0,         10,         10,        1,  1382400, 0x8c3384ed
>> +0,         11,         11,        1,  1382400, 0xfa7c59e0
>> +0,         12,         12,        1,  1382400, 0x0d16c5d1
>> +0,         13,         13,        1,  1382400, 0x665bd32c
>> +0,         14,         14,        1,  1382400, 0xe8771b9d
>> +0,         15,         15,        1,  1382400, 0xd9824ab1
>> +0,         16,         16,        1,  1382400, 0xa7264481
>> +0,         17,         17,        1,  1382400, 0xdcaec99a
>> -- 
>> 2.25.0
>> 
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>> 
> 
> attach test file
> <loss_packet_for_prev_frame_num_offset.h264>
ping

> Thanks
> 
> Steven Liu
> 

Thanks

Steven Liu
diff mbox series

Patch

diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index e075b6f67f..142a4ea708 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -195,6 +195,7 @@  FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
               fate-h264-lossless                                        \
               fate-h264-3386                                            \
               fate-h264-missing-frame                                   \
+              fate-h264-loss_packet_for_prev_frame_num_offset           \
               fate-h264-ref-pic-mod-overflow                            \
               fate-h264-timecode                                        \
               fate-h264-encparams
@@ -442,6 +443,7 @@  fate-h264-twofields-packet:                       CMD = framecrc -i $(TARGET_SAM
 fate-h264-unescaped-extradata:                    CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10
 fate-h264-3386:                                   CMD = framecrc -i $(TARGET_SAMPLES)/h264/bbc2.sample.h264
 fate-h264-missing-frame:                          CMD = framecrc -i $(TARGET_SAMPLES)/h264/nondeterministic_cut.h264
+fate-h264-loss_packet_for_prev_frame_num_offset:  CMD = framecrc -i $(TARGET_SAMPLES)/h264/loss_packet_for_prev_frame_num_offset.h264
 fate-h264-timecode:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/crew_cif_timecode-2.h264
 
 fate-h264-reinit-%:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf scale,format=yuv444p10le,scale=w=352:h=288
diff --git a/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
new file mode 100644
index 0000000000..df8a88f5d4
--- /dev/null
+++ b/tests/ref/fate/h264-loss_packet_for_prev_frame_num_offset
@@ -0,0 +1,23 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1280x720
+#sar 0: 0/1
+0,          0,          0,        1,  1382400, 0xa21b9a12
+0,          1,          1,        1,  1382400, 0x9f266c66
+0,          2,          2,        1,  1382400, 0x08604d2c
+0,          3,          3,        1,  1382400, 0x0f59c63a
+0,          4,          4,        1,  1382400, 0xe9588c5d
+0,          5,          5,        1,  1382400, 0x01c3559a
+0,          6,          6,        1,  1382400, 0x40791f04
+0,          7,          7,        1,  1382400, 0x2047c562
+0,          8,          8,        1,  1382400, 0x24f7b450
+0,          9,          9,        1,  1382400, 0xfa3d00ed
+0,         10,         10,        1,  1382400, 0x8c3384ed
+0,         11,         11,        1,  1382400, 0xfa7c59e0
+0,         12,         12,        1,  1382400, 0x0d16c5d1
+0,         13,         13,        1,  1382400, 0x665bd32c
+0,         14,         14,        1,  1382400, 0xe8771b9d
+0,         15,         15,        1,  1382400, 0xd9824ab1
+0,         16,         16,        1,  1382400, 0xa7264481
+0,         17,         17,        1,  1382400, 0xdcaec99a