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 from dav1d 1.2.0: picture: allow storing an array of Dav1dITUTT35 entries #993

Merged
merged 6 commits into from
Apr 23, 2024

Conversation

kkysen
Copy link
Collaborator

@kkysen kkysen commented Apr 23, 2024

Reopening #528 since it got closed because I deleted the target branch, which I guess happens when the PR branch is on a fork.

jamrial and others added 3 commits April 22, 2024 17:54
Nothing in the spec prevents a Temporal Unit from having more than one Metadata
OBU of type ITU-T T.35, so export them as an array instead of only exporting
the last one we parse.
This is backwards compatible with the previous implementation, as users unaware
of this change can ignore the n_itut_t35 field and still access the first (or
only) entry in the array as they have been doing until now.
@kkysen kkysen requested a review from randomPoison April 23, 2024 00:57
Copy link
Collaborator

@rinon rinon left a comment

Choose a reason for hiding this comment

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

Everything other than the addition of TryLock LGTM

Cargo.toml Outdated Show resolved Hide resolved
@rinon rinon self-assigned this Apr 23, 2024
@kkysen kkysen force-pushed the kkysen/backport-itutt35-vec branch from 9fbd679 to d2ae68a Compare April 23, 2024 19:02
kkysen and others added 3 commits April 23, 2024 12:05
…g it an `Arc<Mutex<DRav1d<Vec<_>, Vec<_>>>>`.

Due to the now shared access to the `itut_t35` `Vec` to push new ones during parsing,
I added a zero-contention `Mutex` around it.

This also adds a lot of explicit initialization that was previously just zero initialized,
since the `Arc` is not all zeros.

Co-authored-by: Frank Bossen <[email protected]>
…`Box<[_]>`s since the mutation only happens on `Rav1dContext::itut_t35`.
@kkysen kkysen force-pushed the kkysen/backport-itutt35-vec branch from d2ae68a to 1c24cee Compare April 23, 2024 19:05
@kkysen kkysen merged commit be8c0e6 into main Apr 23, 2024
18 of 19 checks passed
@kkysen kkysen deleted the kkysen/backport-itutt35-vec branch April 23, 2024 19:20
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