mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:07:34 +00:00
Utilities: Add test-jpeg-roundtrip
This creates a bitmap filled with a fixed color, then (in memory) saves it as jpeg and loads it again, and repeats that until the color of the bitmap no longer changes. It then reports how many iterations that took, and what the final color was. It does this for a couple of colors. This is for quality assessment of the jpeg codec. Ideally, it should converge quickly (in one iteration), and on a color not very far from the original input color.
This commit is contained in:
parent
9d4278ad9a
commit
5a47e71604
3 changed files with 72 additions and 0 deletions
|
@ -701,6 +701,11 @@ if (BUILD_LAGOM)
|
|||
# It is therefore not reasonable to run it on Lagom, and we only run the Regex test
|
||||
lagom_test(../../Tests/LibRegex/Regex.cpp LIBS LibRegex WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../Tests/LibRegex)
|
||||
|
||||
# test-jpeg-roundtrip
|
||||
add_executable(test-jpeg-roundtrip
|
||||
../../Userland/Utilities/test-jpeg-roundtrip.cpp)
|
||||
target_link_libraries(test-jpeg-roundtrip LibGfx LibMain)
|
||||
|
||||
# JavaScriptTestRunner + LibTest tests
|
||||
# test-js
|
||||
add_executable(test-js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue