diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2016-10-25 01:28:43 -0500 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2016-10-26 20:13:30 -0500 |
commit | f53c26c694c94bb93fb49d72b6439b792b125fe8 (patch) | |
tree | 0a5036ce9f86861ed8e6e7f52e87b2e78fdf87a2 /tests | |
parent | bf709098c9ee922473c9b51db90e0ca1bf971c72 (diff) | |
download | ffmpeg-f53c26c694c94bb93fb49d72b6439b792b125fe8.tar.gz |
lavfi/vf_overlay: support NV12 and NV21
Tested-by: Michael on x86-32/64 linux, mingw, mips/arm qemu linux
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/filter-video.mak | 10 | ||||
-rw-r--r-- | tests/filtergraphs/overlay_nv12 | 5 | ||||
-rw-r--r-- | tests/filtergraphs/overlay_nv21 | 5 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index e2513f5249..ec22d25e45 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -172,6 +172,16 @@ 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_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 +fate-filter-overlay_nv12: REF = $(SRC_PATH)/tests/ref/fate/filter-overlay_yuv420 + +FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER SCALE_FILTER PAD_FILTER OVERLAY_FILTER) += fate-filter-overlay_nv21 +fate-filter-overlay_nv21: tests/data/filtergraphs/overlay_nv21 +fate-filter-overlay_nv21: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/overlay_nv21 +fate-filter-overlay_nv21: REF = $(SRC_PATH)/tests/ref/fate/filter-overlay_yuv420 + FATE_FILTER_VSYNTH-$(call ALLYES, SPLIT_FILTER SCALE_FILTER PAD_FILTER OVERLAY_FILTER) += fate-filter-overlay_yuv422 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 diff --git a/tests/filtergraphs/overlay_nv12 b/tests/filtergraphs/overlay_nv12 new file mode 100644 index 0000000000..ec82cbef2e --- /dev/null +++ b/tests/filtergraphs/overlay_nv12 @@ -0,0 +1,5 @@ +sws_flags=+accurate_rnd+bitexact; +split [main][over]; +[over] scale=88:72, pad=96:80:4:4 [overf]; +[main] format=nv12 [mainf]; +[mainf][overf] overlay=240:16:format=yuv420, format=yuv420p diff --git a/tests/filtergraphs/overlay_nv21 b/tests/filtergraphs/overlay_nv21 new file mode 100644 index 0000000000..9c30d07b26 --- /dev/null +++ b/tests/filtergraphs/overlay_nv21 @@ -0,0 +1,5 @@ +sws_flags=+accurate_rnd+bitexact; +split [main][over]; +[over] scale=88:72, pad=96:80:4:4 [overf]; +[main] format=nv21 [mainf]; +[mainf][overf] overlay=240:16:format=yuv420, format=yuv420p |