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

Backport type changes for time_scale, num_units_in_tick, and num_units_in_decoding_tick from dav1d 1.3.0 #1002

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

fbossen
Copy link
Collaborator

@fbossen fbossen commented Apr 24, 2024

…_tick unsigned

All of them are 32 bits values that shall be > 0

Signed-off-by: James Almer <jamrial@gmail.com>
@@ -82,7 +82,7 @@ pub struct Dav1dPicture {
pub mastering_display: Option<NonNull<Rav1dMasteringDisplay>>,
pub itut_t35: Option<NonNull<Dav1dITUTT35>>,
pub n_itut_t35: usize,
pub reserved: [uintptr_t; 3],
pub reserved: [uintptr_t; 4],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm curious where this extra room came from.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't know. This was reduced to 3 when n_itut_t35 was added and now it's changed back to 4.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah I saw it was reduced then which made sense because the new field used up one of them, but the change here doesn't change the size.

Copy link
Collaborator

@kkysen kkysen left a comment

Choose a reason for hiding this comment

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

Oh, actually could you add doc comments to each saying they're all > 0? That's what their commit message says, and that'd be helpful to know later if we ever want to make them NonZero* types.

@kkysen kkysen merged commit 541dd9e into memorysafety:main Apr 24, 2024
21 checks passed
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