Skip to content

gainmap.c: Omit unneeded avifImageAllocatePlanes - #3360

Merged
wantehchang merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:omit-unneeded-allocate_planes
Sep 28, 2026
Merged

wantehchang merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:omit-unneeded-allocate_planes

Conversation

@wantehchang

Copy link
Copy Markdown
Member

Omit the unneeded avifImageAllocatePlanes() call in avifRGBImageComputeGainMap(). The avifImage is passed to avifImageRGBToYUV(), which will call avifImageAllocatePlanes().

Omit the unneeded avifImageAllocatePlanes() call in
avifRGBImageComputeGainMap(). The avifImage is passed to
avifImageRGBToYUV(), which will call avifImageAllocatePlanes().
Comment thread src/gainmap.c
}
}

res = avifImageRGBToYUV(gainMapImage, &gainMapRGB);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This avifImageRGBToYUV() call will call avifImageAllocatePlanes().

@maryla-uc maryla-uc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@wantehchang
wantehchang merged commit ef43c7b into AOMediaCodec:main Sep 28, 2026
25 checks passed
@wantehchang
wantehchang deleted the omit-unneeded-allocate_planes branch September 28, 2026 15:33
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.

2 participants