-
Notifications
You must be signed in to change notification settings - Fork 229
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
native jpg decoding #144
Comments
Could be nice in combination with storing the actual pixel data in YCbCr, like JPEG, instead of the reversible YCoCg we're using by default. |
Interesting. What quality are those JPEG originals? I would expect the ratio to be different depending on the JPEG quality. Obviously encoding compression artifacts has a cost, while it is "free" for the format that produces the artifacts :). Also, it would be interesting to see a comparison between partial FLIF files and JPEG files w.r.t. some perceptual metrics like SSIM. I.e. take a lossless original, compress it with FLIF, compress it with JPEG at various quality settings, decode truncated versions of the FLIF file, and plot the results (bits per pixel on the x-axis, SSIM on the y-axis or something like that). |
I'm using various images (300) I've got from a homemade sharing files website. There's drawings, pictures, screenshots, fractals, memes, scans, etc... I'll sort images by bit-per-pixel. I also attach the log file: |
uncmpJPG can be used to extract the raw DCT coefficients (I think those are 12 bit signed ints or something like that) from a JPEG file: https://github.com/packjpg/JPEG-Developers-Package/tree/master/uncmpJPG We could use FLIF to store the raw DCT coefficients. Maybe store it internally as an animation with 64 frames (one for each DCT coefficient), or something like that. |
It might be nice to have jpg reading support.
Currently flif does not accept jpgs.
While converting jpg to flif is obviously not something desirable since jpg already implies loss of information in most cases, having to convert jpg to png and then png to flif (if there are no losseless originals of the jpgs available) is not very comfortable either...
The text was updated successfully, but these errors were encountered: