Skip to content

Remove ignoreGainMap param of avifImageCreateView#3292

Merged
wantehchang merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:remove-ignoreGainMap-from-avifImageCreateView
Jul 2, 2026
Merged

Remove ignoreGainMap param of avifImageCreateView#3292
wantehchang merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:remove-ignoreGainMap-from-avifImageCreateView

Conversation

@wantehchang

Copy link
Copy Markdown
Member

Remove the ignoreGainMap parameter of the avifImageCreateView() function.

All the callers of avifImageCreateView() pass ignoreGainMap=false to the function. (The only exception is the recursive call on the gain map image, but the gain map image cannot have its own gain map image, so it doesn't really matter.)

Remove the ignoreGainMap parameter of the avifImageCreateView()
function.

All the callers of avifImageCreateView() pass ignoreGainMap=false to the
function. (The only exception is the recursive call on the gain map
image, but the gain map image cannot have its own gain map image, so it
doesn't really matter.)
@wantehchang wantehchang requested a review from maryla-uc July 2, 2026 14:26
Comment thread apps/shared/avifutil.h
// a view of the original gain map.
// 'dstImage' should be an empty image. It will not own the pixel data.
avifResult avifImageCreateView(avifImage * dstImage, const avifImage * srcImage, avifBool ignoreColorProfile, avifBool ignoreAlpha, avifBool ignoreGainMap);
avifResult avifImageCreateView(avifImage * dstImage, const avifImage * srcImage, avifBool ignoreColorProfile, avifBool ignoreAlpha);

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 PR is the first of a series of PRs.

The three ignore* parameters can be removed from `avifImageCreateView(). I am removing them in three steps.

After all this is done, we will be able to remove some of the avifImageCreateView() calls.

@wantehchang wantehchang merged commit 5a7fef6 into AOMediaCodec:main Jul 2, 2026
27 of 28 checks passed
@wantehchang wantehchang deleted the remove-ignoreGainMap-from-avifImageCreateView branch July 2, 2026 15:13
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