1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-12 19:18:44 +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
alphamerge_alphaextract_yuv
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
firequalizer avfilter/af_firequalizer: add fft2 option 2016-11-04 09:45:01 +07:00
gradfun
hqdn3d
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
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
overlay_yuv420
overlay_yuv422 lavfi/overlay: add yuv422 format mode 2014-02-02 11:50:21 +01:00
overlay_yuv444
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
select-alternate
setpts
vstack fate: add hstack and vstack 2016-09-09 12:49:15 +02:00