-
Notifications
You must be signed in to change notification settings - Fork 200
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
Conversation
There was a problem hiding this 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
...
Done. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
[skip ci]