diff options
author | Petru Rares Sincraian <psincraian@outlook.com> | 2016-03-20 09:54:07 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-22 17:24:55 +0100 |
commit | 124526ba1aee5b616b9f6cf2da6b5db85d05711d (patch) | |
tree | 7b1582ad638e8c4812330c9ebbde9ce20f2e3a2b /tests | |
parent | 2aebdfb451bb01165473f9b4d8e6a2c4997e3bf2 (diff) | |
download | ffmpeg-124526ba1aee5b616b9f6cf2da6b5db85d05711d.tar.gz |
Added a selftest to libavutil/display.c
- Check if av_display_rotation_get() gets the correct degrees
- Check if av_display_rotation_set() sets the correct matrix
- Check if av_display_matrix_flip() changes correct the matrix
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/libavutil.mak | 4 | ||||
-rw-r--r-- | tests/ref/fate/display | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/fate/libavutil.mak b/tests/fate/libavutil.mak index 5d8e0e2fdc..7f4fb7a87b 100644 --- a/tests/fate/libavutil.mak +++ b/tests/fate/libavutil.mak @@ -99,6 +99,10 @@ FATE_LIBAVUTIL-$(CONFIG_PIXELUTILS) += fate-pixelutils fate-pixelutils: libavutil/pixelutils-test$(EXESUF) fate-pixelutils: CMD = run libavutil/pixelutils-test +FATE_LIBAVUTIL += fate-display +fate-display: libavutil/display-test$(EXESUF) +fate-display: CMD = run libavutil/display-test + FATE_LIBAVUTIL += fate-random_seed fate-random_seed: libavutil/random_seed-test$(EXESUF) fate-random_seed: CMD = run libavutil/random_seed-test diff --git a/tests/ref/fate/display b/tests/ref/fate/display new file mode 100644 index 0000000000..251e7e0cdf --- /dev/null +++ b/tests/ref/fate/display @@ -0,0 +1,16 @@ +0 65536 0 +-65536 0 0 +0 0 1073741824 +degrees: -90.000000 +46340 -46340 0 +46340 46340 0 +0 0 1073741824 +degrees: 45.000000 +-46340 -46340 0 +-46340 46340 0 +0 0 1073741824 +degrees: 135.000000 +-46340 46340 0 +-46340 -46340 0 +0 0 1073741824 +degrees: -135.000000 |