On Tue, Jun 16, 2020 at 06:51:03PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang <lance.lmw...@gmail.com> > > Signed-off-by: Limin Wang <lance.lmw...@gmail.com> > --- > tested on x86_64, x86_32, qemu mips 32bit > > tests/fate/filter-video.mak | 8 ++++++++ > tests/filtergraphs/overlay_yuv420p10 | 5 +++++ > tests/filtergraphs/overlay_yuv422p10 | 5 +++++ > tests/ref/fate/filter-overlay_yuv420p10 | 8 ++++++++ > tests/ref/fate/filter-overlay_yuv422p10 | 8 ++++++++ > 5 files changed, 34 insertions(+) > create mode 100644 tests/filtergraphs/overlay_yuv420p10 > create mode 100644 tests/filtergraphs/overlay_yuv422p10 > create mode 100644 tests/ref/fate/filter-overlay_yuv420p10 > create mode 100644 tests/ref/fate/filter-overlay_yuv422p10 > > diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak > index cfeb53e..18fe4f7 100644 > --- a/tests/fate/filter-video.mak > +++ b/tests/fate/filter-video.mak > @@ -223,6 +223,10 @@ FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER > SCALE_FILTER PAD_FILTER OVERLAY_F > fate-filter-overlay_yuv420: tests/data/filtergraphs/overlay_yuv420 > fate-filter-overlay_yuv420: CMD = framecrc -c:v pgmyuv -i $(SRC) > -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay_yuv420 > > +FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER SCALE_FILTER PAD_FILTER > OVERLAY_FILTER) += fate-filter-overlay_yuv420p10 > +fate-filter-overlay_yuv420p10: tests/data/filtergraphs/overlay_yuv420p10 > +fate-filter-overlay_yuv420p10: CMD = framecrc -c:v pgmyuv -i $(SRC) > -filter_complex_script > $(TARGET_PATH)/tests/data/filtergraphs/overlay_yuv420p10 -pix_fmt yuv420p10le > -frames:v 3 > + > FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER SCALE_FILTER PAD_FILTER > OVERLAY_FILTER) += fate-filter-overlay_nv12 > fate-filter-overlay_nv12: tests/data/filtergraphs/overlay_nv12 > fate-filter-overlay_nv12: CMD = framecrc -c:v pgmyuv -i $(SRC) > -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay_nv12 > @@ -237,6 +241,10 @@ FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER > SCALE_FILTER PAD_FILTER OVERLAY_F > fate-filter-overlay_yuv422: tests/data/filtergraphs/overlay_yuv422 > fate-filter-overlay_yuv422: CMD = framecrc -c:v pgmyuv -i $(SRC) > -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay_yuv422 > > +FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER SCALE_FILTER PAD_FILTER > OVERLAY_FILTER) += fate-filter-overlay_yuv422p10 > +fate-filter-overlay_yuv422p10: tests/data/filtergraphs/overlay_yuv422p10 > +fate-filter-overlay_yuv422p10: CMD = framecrc -c:v pgmyuv -i $(SRC) > -filter_complex_script > $(TARGET_PATH)/tests/data/filtergraphs/overlay_yuv422p10 -pix_fmt yuv422p10le > -frames:v 3 > + > FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER SCALE_FILTER PAD_FILTER > OVERLAY_FILTER) += fate-filter-overlay_yuv444 > fate-filter-overlay_yuv444: tests/data/filtergraphs/overlay_yuv444 > fate-filter-overlay_yuv444: CMD = framecrc -c:v pgmyuv -i $(SRC) > -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay_yuv444 > diff --git a/tests/filtergraphs/overlay_yuv420p10 > b/tests/filtergraphs/overlay_yuv420p10 > new file mode 100644 > index 0000000..d946d3c > --- /dev/null > +++ b/tests/filtergraphs/overlay_yuv420p10 > @@ -0,0 +1,5 @@ > +sws_flags=+accurate_rnd+bitexact; > +split [main][over]; > +[over] scale=88:72, format=yuv420p10, pad=96:80:4:4 [overf]; > +[main] format=yuv420p10 [mainf]; > +[mainf][overf] overlay=240:16:format=yuv420p10 > diff --git a/tests/filtergraphs/overlay_yuv422p10 > b/tests/filtergraphs/overlay_yuv422p10 > new file mode 100644 > index 0000000..5753ba6 > --- /dev/null > +++ b/tests/filtergraphs/overlay_yuv422p10 > @@ -0,0 +1,5 @@ > +sws_flags=+accurate_rnd+bitexact; > +split [main][over]; > +[over] scale=88:72, format=yuv420p10, pad=96:80:4:4 [overf]; > +[main] format=yuv420p10 [mainf]; > +[mainf][overf] overlay=240:16:format=yuv422p10 > diff --git a/tests/ref/fate/filter-overlay_yuv420p10 > b/tests/ref/fate/filter-overlay_yuv420p10 > new file mode 100644 > index 0000000..b431dc6 > --- /dev/null > +++ b/tests/ref/fate/filter-overlay_yuv420p10 > @@ -0,0 +1,8 @@ > +#tb 0: 1/25 > +#media_type 0: video > +#codec_id 0: rawvideo > +#dimensions 0: 352x288 > +#sar 0: 0/1 > +0, 0, 0, 1, 304128, 0x29a6ca86 > +0, 1, 1, 1, 304128, 0x82950e6f > +0, 2, 2, 1, 304128, 0x8363d1d8 > diff --git a/tests/ref/fate/filter-overlay_yuv422p10 > b/tests/ref/fate/filter-overlay_yuv422p10 > new file mode 100644 > index 0000000..c0a58f9 > --- /dev/null > +++ b/tests/ref/fate/filter-overlay_yuv422p10 > @@ -0,0 +1,8 @@ > +#tb 0: 1/25 > +#media_type 0: video > +#codec_id 0: rawvideo > +#dimensions 0: 352x288 > +#sar 0: 0/1 > +0, 0, 0, 1, 405504, 0x11108b36 > +0, 1, 1, 1, 405504, 0x9d5f7c2a > +0, 2, 2, 1, 405504, 0x25373098 > -- > 1.8.3.1 >
will apply the patch set tomorrow if no objection. -- Thanks, Limin Wang _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".