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

Add avifROStreamSkipBits() #2438

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Add avifROStreamSkipBits() #2438

merged 1 commit into from
Sep 24, 2024

Conversation

y-guyon
Copy link
Collaborator

@y-guyon y-guyon commented Sep 24, 2024

Rename avifROStreamReadBitsX() to avifROStreamReadBitsUX().
Add avifROStreamReadBitsU16().
Refactor avifParseContentLightLevelInformation() to support unaligned fields.

Rename avifROStreamReadBitsX() to avifROStreamReadBitsUX().
Add avifROStreamReadBitsU16().
Refactor avifParseContentLightLevelInformation() to support unaligned
fields.
@y-guyon y-guyon merged commit 70862dc into AOMediaCodec:main Sep 24, 2024
17 checks passed
@y-guyon y-guyon deleted the readbits branch September 24, 2024 12:37

avifBool avifROStreamReadBitsU8(avifROStream * stream, uint8_t * v, size_t bitCount)
{
assert(bitCount <= sizeof(*v) * 8);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Optional: It seems that these assertions should be replaced by error checking (returning AVIF_FALSE on failure).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done in #2457.

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