Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize image type support for media & screenshots (4K, stereo rendering) #262

Open
jueank opened this issue Dec 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jueank
Copy link

jueank commented Dec 29, 2024

It would be great if PinballY could modernize its support for image types for media and screenshot functionality.
Nowadays, 4K is regularly used for playfield and backglass monitors. Also - stereo rendering is an available option in VPX (anaglyphic or interlaced). Which brings with the 'striped' image data and additional challenge for the compression.
For a 4K playfield screenshot in interlaced display mode, the typical filesize is between 15 and 20 MB for a PNG file.
This tends to make navigation in PinballY slightly sluggish. So, the decoding speed is a concern, even when the screenshots are loaded from an SSD.
JXL could be one of the best options to take, because to my knowledge, it leads both in compression efficiency, as well as decoding speed (utilizing multiple CPU cores efficiently).
Also, it would be nice if the user could choose between lossless compression and lossy compression per use-case (playfield, backglass, ...)
https://github.com/libjxl/libjxl

Alternatively: For interlaced playfield screenshots, a lossy compression with very high quality settings could be an option.
So, even if no new image format is being added, JPG, instead of PNG could be an option (with chroma subsampling being set to 4:4:4) for taking screenshots. --> Let the user chose, which image format to use and with which compression parameters.

Alien Star (Gottlieb 1984)_cr

@jueank jueank added the enhancement New feature or request label Dec 29, 2024
@worksasdesigned
Copy link

I simply used mass picture change from MS powertoys to resize all pictures in a minute or n the media folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants