-
Notifications
You must be signed in to change notification settings - Fork 208
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
Refactor read.c with avifTileGroup #1291
Refactor read.c with avifTileGroup #1291
Conversation
Yannis: I will review this pull request tomorrow. Sorry about the delay. |
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.
Yannis: I am still reviewing this pull request. This pull request contains some independent changes. It would be good to break it into smaller pull requests for easier code review. I don't want to make you do extra work, so I will only describe the independent pieces that I have identified.
I suggest we start with these two:
- The
AVIF_CHECKRES
macro in internal.h. - The changes to write.c.
You can put these two in one pull request. I first publish my comments on these two.
Done in #1294. |
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.
Yannis: The next independent part of this pull request is avifImageCopySamples()
and the code that uses it. It would be good to split this part to a separate pull request.
Here are my comments on this part.
Done in #1300. |
c96d900
to
a9e6c1b
Compare
a9e6c1b
to
725c8be
Compare
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.
Yannis: This looks good. I suggest some changes. The naming changes you can consider and decide if you want to accept them.
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 checked the code carefully this time.
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!
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. There is a find-and-replace error. Please correct that and merge this pull request. Thank you.
Yannis: Are you planning to merge this pull request? |
Yes, sorry about that. I thought I already merged it. |
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.
Add avifImageCopySamples().
Add AVIF_CHECKRES().
Add AVIF_ENCODER_NO_CHANGE.
Refactor write.c.
This should be easier to add more items besides primary color and auxiliary alpha in the future, such as in #1215.