---
Added scale filter to provide a true 16:9 resolution.
Note that commenting out frame->sample_aspect_ratio = s->sar; doesn't affect 
the result of this test.

Vittorio

 tests/fate/filter-video.mak  |    3 +++
 tests/ref/fate/filter-aspect |   51 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 tests/ref/fate/filter-aspect

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index cf60610..9c9ed60 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -12,6 +12,9 @@ FATE_FILTER-$(call FILTERDEMDEC, YADIF, MPEGTS, MPEG2VIDEO) 
+= $(FATE_YADIF)
 FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
 
 
+FATE_FILTER_VSYNTH-$(call ALLYES, SCALE_FILTER SETDAR_FILTER) += 
fate-filter-aspect
+fate-filter-aspect: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf 
scale=w=512,setdar=dar_num=16:dar_den=9
+
 FATE_FILTER_VSYNTH-$(CONFIG_BOXBLUR_FILTER) += fate-filter-boxblur
 fate-filter-boxblur: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf boxblur=2:1
 
diff --git a/tests/ref/fate/filter-aspect b/tests/ref/fate/filter-aspect
new file mode 100644
index 0000000..497d9a2
--- /dev/null
+++ b/tests/ref/fate/filter-aspect
@@ -0,0 +1,51 @@
+#tb 0: 1/25
+0,          0,          0,        1,   221184, 0xac46840d
+0,          1,          1,        1,   221184, 0xb44dd8e5
+0,          2,          2,        1,   221184, 0x76fb386e
+0,          3,          3,        1,   221184, 0x18c60166
+0,          4,          4,        1,   221184, 0x1c9c4ee0
+0,          5,          5,        1,   221184, 0x2afd3d0c
+0,          6,          6,        1,   221184, 0xdcd16ee8
+0,          7,          7,        1,   221184, 0x45008495
+0,          8,          8,        1,   221184, 0x5347ff66
+0,          9,          9,        1,   221184, 0xacb50d77
+0,         10,         10,        1,   221184, 0xccc621ca
+0,         11,         11,        1,   221184, 0x622fb5d9
+0,         12,         12,        1,   221184, 0x428bb5aa
+0,         13,         13,        1,   221184, 0x871ea707
+0,         14,         14,        1,   221184, 0x381213d6
+0,         15,         15,        1,   221184, 0x4f615b9f
+0,         16,         16,        1,   221184, 0x696cb876
+0,         17,         17,        1,   221184, 0xf6008089
+0,         18,         18,        1,   221184, 0xb1c63f32
+0,         19,         19,        1,   221184, 0xc7f56f05
+0,         20,         20,        1,   221184, 0x89a893c4
+0,         21,         21,        1,   221184, 0xf9e7d91c
+0,         22,         22,        1,   221184, 0xdd25ce94
+0,         23,         23,        1,   221184, 0xde49c72b
+0,         24,         24,        1,   221184, 0x53762691
+0,         25,         25,        1,   221184, 0xef060d2a
+0,         26,         26,        1,   221184, 0xad3094ef
+0,         27,         27,        1,   221184, 0xaf17f4b0
+0,         28,         28,        1,   221184, 0x89dba9ca
+0,         29,         29,        1,   221184, 0x0291c117
+0,         30,         30,        1,   221184, 0x1e04c919
+0,         31,         31,        1,   221184, 0x69cdd93e
+0,         32,         32,        1,   221184, 0x3e5ab70c
+0,         33,         33,        1,   221184, 0xeab58352
+0,         34,         34,        1,   221184, 0xe0be9138
+0,         35,         35,        1,   221184, 0x220d0689
+0,         36,         36,        1,   221184, 0xb10e8010
+0,         37,         37,        1,   221184, 0x7789be10
+0,         38,         38,        1,   221184, 0x15573cc7
+0,         39,         39,        1,   221184, 0x514da16e
+0,         40,         40,        1,   221184, 0x45e43d84
+0,         41,         41,        1,   221184, 0x548ea15b
+0,         42,         42,        1,   221184, 0xdf214664
+0,         43,         43,        1,   221184, 0xcafed30e
+0,         44,         44,        1,   221184, 0x210135e7
+0,         45,         45,        1,   221184, 0xc908724d
+0,         46,         46,        1,   221184, 0x5d04347e
+0,         47,         47,        1,   221184, 0x4f5fd9d6
+0,         48,         48,        1,   221184, 0x51e3359b
+0,         49,         49,        1,   221184, 0x12dd69fe
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to