X Tutup
Skip to content

TESTBED: Add test suite for image decoders#6454

Merged
bluegr merged 2 commits intoscummvm:masterfrom
OMGPizzaGuy:testbed-image
Feb 27, 2025
Merged

TESTBED: Add test suite for image decoders#6454
bluegr merged 2 commits intoscummvm:masterfrom
OMGPizzaGuy:testbed-image

Conversation

@OMGPizzaGuy
Copy link
Member

Adds test for image decoders using image created from the PM5544 test pattern using ImageMagick.
The pcx-24bpp seems to be rendered incorrectly with the wrong colors in this test. I'm not sure if there exist a specific configuration for PCX that would be correct or if a bug exists.

This test suite was built to test a few of the decoders altered in #6447

@bluegr
Copy link
Member

bluegr commented Feb 26, 2025

One odd thing I spotted: why are the test image files placed in a folder named "engine-data/testbed-audiocd-files/image"?

The "testbed-audiocd-files" folder is defined in testbed/sound.cpp. It would make more sense if these image files were placed in a more generic directory, e.g. "engine-data/testbed-files/image"

@OMGPizzaGuy
Copy link
Member Author

One odd thing I spotted: why are the test image files placed in a folder named "engine-data/testbed-audiocd-files/image"?

The "testbed-audiocd-files" folder is defined in testbed/sound.cpp. It would make more sense if these image files were placed in a more generic directory, e.g. "engine-data/testbed-files/image"

I agree it is odd, but I believe it was never changed as it's used for the scummvm.ini [testbed] path and moving it would require devs to update their config files
The directory also contains an "imagealbum" directory used by MiscTests::testImageAlbum

@bluegr
Copy link
Member

bluegr commented Feb 27, 2025

Thanks! Merging

@bluegr bluegr merged commit b8000d3 into scummvm:master Feb 27, 2025
8 checks passed
@OMGPizzaGuy OMGPizzaGuy deleted the testbed-image branch July 1, 2025 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup