-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Heif decoding processing speed is degraded in V1.7.0 or later version. #472
Comments
Could you please time the color conversion part, so that we can see whether it is really the color conversion that is slowing this down? libheif/libheif/heif_colorconversion.cc Line 3134 in dd993f3
|
@farindk
*The measurement image is the same set of 100 images as last time. |
I'll have to think about this a bit more. Our color-conversions are not optimized. Either we speed up the color conversions or we find a way to avoid them. It might be possible to pass-thru images that do not need RGB processing (MIAF compatible images), but then, it would be the burden of the user to handle the color profiles. |
Please consider speeding up color conversion.
Please tell me specifically what the user has to do with the color profiles process. |
A separate function for raw access to any low-level single image and a bit of metadata about it might be the way to go, with no transformations or even alpha-blending. The more I use the library, the more I'm grateful for how it transparently deals with so many of the incredibly nitpicky things that most apps get wrong or aren't prepared for, and I don't know if there's a good balance between raw access and end-to-end conversion. Since it's LGPL, would adding already-optimized conversions from ffmpeg be acceptable? |
@farindk |
I'm also wondering if decoding and/or color conversion speed can be improved. As I have 4k input images but only need a 1k resolution afterwards, it would be great if there was a way to open at half or quarter resolution and potentially speeding up decoding and color conversion significantly. |
I'm currently using the v1.6.2 version, but upgrading to v1.10.0 slowed down the heif decoding process by about 2.8 times.
I think the cause is that the internal processing was changed from YCbCr processing to RGB processing in the correction of v1.7.0.
I would like to use the latest version.
Is it possible to improve the processing speed to the same level as v1.6.2.
The measurement conditions are as follows.
Images: 8 million pixels to 24 million pixels (100 images)
Processing time: 742msec(v1.6.2) -> 2080msec(v1.10.0) (Average of 100 images. Only the call part of heif_decode_image() )
Environment: Windows10 Enterprise 64bit, CPU Intel (R) Core ™ i7-4790 3.6GHz, RAM 32GB
Implementation of the calling part of the decoding process(Exclude error handling)
The text was updated successfully, but these errors were encountered: