Skip to content
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

Rename s to dedupStream in WriteColorProperties() #1503

Merged
merged 3 commits into from
Aug 17, 2023

Conversation

y-guyon
Copy link
Collaborator

@y-guyon y-guyon commented Aug 17, 2023

[skip ci]

Copy link
Collaborator

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

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

LGTM.

I would also be fine with renaming the first parameter of avifEncoderWriteExtendedColorProperties() as s. It was just a little odd to see that avifRWStream variable change name as it crosses function boundaries.

It may be better to add comments to explain dedupStream vs. outputStream...

@y-guyon
Copy link
Collaborator Author

y-guyon commented Aug 17, 2023

It may be better to add comments to explain dedupStream vs. outputStream...

Done.

Copy link
Collaborator

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much for adding the new comment.

src/write.c Outdated
@@ -538,6 +538,10 @@ static avifBool avifEncoderDetectChanges(const avifEncoder * encoder, avifEncode
}

// Subset of avifEncoderWriteColorProperties() for the properties clli, pasp, clap, irot, imir.
// outputStream is the final bitstream that will be output by the libavif encoder API.
// dedupStream is either equal to outputStream or to dedup->s which is a temporary stream used
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Add & before dedup->s.

Optional: It might be good to move the new comment closer to avifEncoderWriteColorProperties(), where these variables/parameters are actually used.

@y-guyon y-guyon merged commit bc03410 into AOMediaCodec:main Aug 17, 2023
14 checks passed
@y-guyon y-guyon deleted the rename_s_to_dedupstream branch August 17, 2023 19: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.

2 participants