summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZaggy1024 <zaggy1024@gmail.com>2023-01-30 17:22:41 -0600
committerLinus Groh <mail@linusgroh.de>2023-02-08 18:56:42 +0000
commit25c9dfbf90f65c4886ed82b01c0995c9f4a59e91 (patch)
tree0c6155684c52ec97dbe6f49022cb79525d468b47
parentdf313c3dc5fcc2cf165c476abf2c04dd220d4471 (diff)
downloadserenity-25c9dfbf90f65c4886ed82b01c0995c9f4a59e91.zip
Tests/LibVideo: Test to ensure that VP9 reference vector clamping works
The test file is a short clip from Big Buck Bunny, so a license file was added to the directory to attribute it.
-rw-r--r--Tests/LibVideo/CMakeLists.txt1
-rw-r--r--Tests/LibVideo/FILE_LICENSES.md4
-rw-r--r--Tests/LibVideo/TestVP9Decode.cpp5
-rw-r--r--Tests/LibVideo/vp9_clamp_reference_mvs.webmbin0 -> 375739 bytes
4 files changed, 10 insertions, 0 deletions
diff --git a/Tests/LibVideo/CMakeLists.txt b/Tests/LibVideo/CMakeLists.txt
index 2cecbe8bb9..4c14e2d7c9 100644
--- a/Tests/LibVideo/CMakeLists.txt
+++ b/Tests/LibVideo/CMakeLists.txt
@@ -8,3 +8,4 @@ endforeach()
install(FILES vp9_in_webm.webm DESTINATION usr/Tests/LibVideo)
install(FILES vp9_4k.webm DESTINATION usr/Tests/LibVideo)
+install(FILES vp9_clamp_reference_mvs.webm DESTINATION usr/Tests/LibVideo)
diff --git a/Tests/LibVideo/FILE_LICENSES.md b/Tests/LibVideo/FILE_LICENSES.md
new file mode 100644
index 0000000000..c698995f1d
--- /dev/null
+++ b/Tests/LibVideo/FILE_LICENSES.md
@@ -0,0 +1,4 @@
+## vp9_clamp_reference_mvs.webm
+
+Licensed under [Creative Commons Attribution 3.0](http://creativecommons.org/licenses/by/3.0/)\
+(c) copyright 2008, Blender Foundation / [www.bigbuckbunny.org](https://www.bigbuckbunny.org)
diff --git a/Tests/LibVideo/TestVP9Decode.cpp b/Tests/LibVideo/TestVP9Decode.cpp
index 9db538a861..7b2d8ef527 100644
--- a/Tests/LibVideo/TestVP9Decode.cpp
+++ b/Tests/LibVideo/TestVP9Decode.cpp
@@ -49,3 +49,8 @@ BENCHMARK_CASE(vp9_4k)
{
decode_video("./vp9_4k.webm"sv, 2);
}
+
+BENCHMARK_CASE(vp9_clamp_reference_mvs)
+{
+ decode_video("./vp9_clamp_reference_mvs.webm"sv, 92);
+}
diff --git a/Tests/LibVideo/vp9_clamp_reference_mvs.webm b/Tests/LibVideo/vp9_clamp_reference_mvs.webm
new file mode 100644
index 0000000000..9c627a7ca6
--- /dev/null
+++ b/Tests/LibVideo/vp9_clamp_reference_mvs.webm
Binary files differ