Skip to content

Support ignoring alpha in imageContentToDecode#3288

Draft
wantehchang wants to merge 1 commit into
AOMediaCodec:mainfrom
wantehchang:support-decode-content-color-only
Draft

Support ignoring alpha in imageContentToDecode#3288
wantehchang wants to merge 1 commit into
AOMediaCodec:mainfrom
wantehchang:support-decode-content-color-only

Conversation

@wantehchang

@wantehchang wantehchang commented Jul 1, 2026

Copy link
Copy Markdown
Member

Add AVIF_IMAGE_CONTENT_COLOR and AVIF_IMAGE_CONTENT_ALPHA and allow
decoding color only. Decoding alpha only is still not supported.

Remove the ignoreAlpha parameter from the avifImageCreateView()
function. If alpha should be ignored, the caller of
avifImageCreateView() is responsible for clearing the
AVIF_IMAGE_CONTENT_ALPHA bit in decoder->imageContentToDecode before
decoding (assuming srcImage is decoder->image).

@wantehchang wantehchang force-pushed the support-decode-content-color-only branch 2 times, most recently from 3ca2859 to b2e64ab Compare July 2, 2026 13:16
@wantehchang wantehchang force-pushed the support-decode-content-color-only branch 2 times, most recently from 1c54d25 to f698134 Compare July 6, 2026 17:38
Add AVIF_IMAGE_CONTENT_COLOR and AVIF_IMAGE_CONTENT_ALPHA and allow
decoding color only. Decoding alpha only is still not supported.

Remove the ignoreAlpha parameter from the avifImageCreateView()
function. If alpha should be ignored, the caller of
avifImageCreateView() is responsible for clearing the
AVIF_IMAGE_CONTENT_ALPHA bit in decoder->imageContentToDecode before
decoding (assuming srcImage is decoder->image).
@wantehchang wantehchang force-pushed the support-decode-content-color-only branch from f698134 to 69e7f17 Compare July 6, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant