Skip to content

Fix useTuneIq comment in aomCodecEncodeImage()#2999

Merged
y-guyon merged 1 commit intoAOMediaCodec:mainfrom
y-guyon:tune
Feb 6, 2026
Merged

Fix useTuneIq comment in aomCodecEncodeImage()#2999
y-guyon merged 1 commit intoAOMediaCodec:mainfrom
y-guyon:tune

Conversation

@y-guyon
Copy link
Contributor

@y-guyon y-guyon commented Feb 5, 2026

The comment at the end of avifImageUsesTuneIq() already describes that it is only valid for the first frame, so this comment is not necessary, and avifImageUsesTuneIq() will be updated anyway (see #2997).

// False otherwise (including if libaom uses tune=iq by default, which is not the case as of v1.13.1 and earlier versions).
// This is only accurate for the first frame but tune=iq is only supported for still images in libavif and
// for all-intra coding in libaom (at least up to v1.13.1) anyway.
// False otherwise (including if libaom uses tune=iq by default, which is not the case as of v3.13.1 and earlier versions).
Copy link
Collaborator

Choose a reason for hiding this comment

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

@juliobbv-p

I think we need to impose a constraint that the tune option can only be set before encoding starts. Then we can store the result of avifImageUsesTuneIq() in the codec->internal structure.

Copy link

@juliobbv-p juliobbv-p Feb 6, 2026

Choose a reason for hiding this comment

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

100% agreed, I'll take a look at implementing this.

@y-guyon y-guyon merged commit 835d66a into AOMediaCodec:main Feb 6, 2026
@y-guyon y-guyon deleted the tune branch February 6, 2026 07:59
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.

3 participants