-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
libheif: support for shared auxl alpha images #1148
libheif: support for shared auxl alpha images #1148
Conversation
I see the same issue for
Presumably the same holds for |
Yes (and a bit lower for the region case too). Not too hard to fix.
This (and depth images) will require a bit more refactoring. |
26dbaf3
to
8cfeb40
Compare
Looks like I need to address the fuzzing issue.... |
8cfeb40
to
9138f32
Compare
This should now fully address #1147 Also cleans up some unused members that made the problem look more complicated. |
Hi @bradh! Do you have a time-line for when this will land? |
I think it is complete but cannot progress it beyond this point. |
Yes, I know I'm the bottleneck. I'm currently completely blocked by other projects. Will have a look as soon as I can spend time on this. |
@farindk I think you should only do libheif when it suits you. Better that it gets done right, and that the long term for both you and the code is healthy and happy. So no rush from me! Sorry if it looked like criticism. |
Got it, no worries. Was just wondering what the plan was and whether there was anything spec or info-wise that was blocking you. |
No worries at all. I didn't think that for a single second. |
Thanks, this is great. One thing: I'm not sure if libheif should automatically scale the alpha channel. It is not clear what scaling filter should be used and whether the user wants this. At least, we might want to enable this as a decoding option. But we'll probably have to postpone this since currently, even libheif assumes that the alpha channel has the same resolution. |
Initial work (for discussion / review) on support for shared alpha images.
Relates #1147
I've shown some commented out code that returns an error if the alpha requires scaling (which is valid in HEIF). Until we support that, the options are silently ignoring the alpha plane, or not supporting the image at all.
We do have some scaling code, but my attempt to apply it failed - its designed for an image, not an image plane, and the refactoring got away.
Fixes / suggestions appreciated.