-
Notifications
You must be signed in to change notification settings - Fork 4
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
Detect Colorspace and Chroma Before Decode #81
Comments
I was able to fix the encoding for the JPEF image and it looks correct to me. The integration test pass with the updated encoder, which is a good sign. See image below To keep track of this work I have pushed up a branch that has the working code. https://github.com/FileOnQ/Imaging.Heif/tree/perf. This branch is not ready to be PRed but here is the general idea of the updated implementation strategy
|
This is a great find and a substantial improvement. Have you by chance found any listing of standards for image setup across common devices? That could help identify which we optimize for vs those that we fall back for |
Ditto to Mitch's comment, anything we can do to improve performance and memory allocation we will take advantage of it! |
Description
When decoding and writing images to jpeg libheif performs a conversion from the native colorspace and chroma to the expected YUV (colorspace) and 420 (chroma). This operation takes about .5s - 1.2s in debug mode. If we detect this prior to attempting a decode and keep it in the same format we may be able to shave time off our image processing. This will require updating our jpeg encoder to handle a variety of colorspace/chromas and have a fallback strategy
The text was updated successfully, but these errors were encountered: