1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-28 12:16:12 +02:00
ffmpeg/tests/filtergraphs
Kevin Mark 4af496473a FATE: Add test for libavfilter/scale2ref
This new FATE test for the scale2ref filter makes use of the recently
added scale2ref-specific variables to maintain the aspect ratio of a
test input.

Filtergraph explanation:
[main] has an AR of 4:3. [ref] has an AR of 16:9.
640 / 4 = 160. So the new width for [main] is 160.
160 / ((320 / 240) * (1 / 1)) = 160 / (4 / 3) = 120. So the new
height for [main] is 120.
160 / 120 = 4 / 3 so [main]'s aspect ratio has been maintained while
using [ref]'s width as a reference point.

[ref] is nullsink'd since it is left unchanged by scale2ref (and so
shouldn't need to be tested).

If we were to use "iw/4:-1" in place of "iw/4:ow/mdar":
640 / 4 = 160. So the new width for [main] would be 160.
360 / 4 = 90. So the new height for [main] would be 90.
160 / 90 = 16 / 9 so [main] now has the same aspect ratio as [ref]
which is probably what you do not want.

This is currently the only test for scale2ref.

Signed-off-by: Kevin Mark <kmark937@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-05 01:50:25 +02:00
..
alphamerge_alphaextract_rgb fate: add bitexact flags to alphaextract/alphamerge tests. 2013-04-29 22:28:37 +02:00
alphamerge_alphaextract_yuv fate: add bitexact flags to alphaextract/alphamerge tests. 2013-04-29 22:28:37 +02:00
anequalizer fate: add anequalizer test 2016-06-24 14:54:06 +02:00
channelmap_one_int FATE: add a test for the ONE_STR mapping mode of the channelmap filter 2014-03-16 07:44:03 +01:00
channelmap_one_str FATE: add a test for the ONE_STR mapping mode of the channelmap filter 2014-03-16 07:44:03 +01:00
colorkey fate: Add test for colorkey 2016-01-21 19:26:03 +01:00
compand fate: add test for compand filter 2016-08-12 23:54:04 +02:00
concat fate/filter: move concat filtergraph to a dedicated script. 2013-03-28 17:44:22 +01:00
firequalizer avfilter/af_firequalizer: add fft2 option 2016-11-04 09:45:01 +07:00
gradfun fate/filter: test gradfun timeline. 2013-05-12 13:07:47 +02:00
hqdn3d fate/filter: test hqdn3d timeline. 2013-05-12 13:07:47 +02:00
hstack fate: add hstack and vstack 2016-09-09 12:49:15 +02:00
lavr_mix_output_zero FATE: add a test for the lavr mixing case fixed in fc6a3ef40d 2014-01-03 16:44:03 +01:00
mergeplanes fate: add test for mergeplanes filter 2015-07-18 01:55:44 +00:00
overlay fate/filter: make overlay test bitexact. 2013-03-28 17:55:02 +01:00
overlay_nv12 lavfi/vf_overlay: support NV12 and NV21 2016-10-26 20:13:30 -05:00
overlay_nv21 lavfi/vf_overlay: support NV12 and NV21 2016-10-26 20:13:30 -05:00
overlay_rgb fate: move more tests from lavfi-regression.sh to filter-video.mak. 2013-04-29 20:00:49 +02:00
overlay_yuv420 fate: move more tests from lavfi-regression.sh to filter-video.mak. 2013-04-29 20:00:49 +02:00
overlay_yuv422 lavfi/overlay: add yuv422 format mode 2014-02-02 11:50:21 +01:00
overlay_yuv444 fate: move more tests from lavfi-regression.sh to filter-video.mak. 2013-04-29 20:00:49 +02:00
overlay-dvdsub-2397 fate: Add test for Ticket 2397 (dvdsub) 2016-04-08 21:42:57 +02:00
scale2ref_keep_aspect FATE: Add test for libavfilter/scale2ref 2017-06-05 01:50:25 +02:00
scalenorm fate: move lavd filters tests to the new system. 2013-04-29 21:48:49 +02:00
select-alternate fate: add one select filter test 2013-11-21 13:01:00 +01:00
setpts
vstack fate: add hstack and vstack 2016-09-09 12:49:15 +02:00