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

struct Rav1dFrameData::{mvs,ref_mvs}: Arcify with Option<DisjointMutArcSlice<refmvs_temporal_block>>s #984

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

kkysen
Copy link
Collaborator

@kkysen kkysen commented Apr 19, 2024

@kkysen kkysen force-pushed the kkysen/struct-RefMvsFrame-rp_ref-field-remove branch from 233f0ae to d3f252e Compare April 19, 2024 01:40
Comment on lines +4899 to 4903
f.mvs = Some(
(0..f.sb128h as usize * 16 * (f.b4_stride >> 1) as usize)
.map(|_| Default::default())
.collect(),
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This took way too long to debug, so annoying. I forgot the Some here, which may the .collect() and Default::default() use Option's impl FromIterator instead of into an Arc<[_]>.

@kkysen kkysen removed the request for review from rinon April 19, 2024 02:10
@kkysen
Copy link
Collaborator Author

kkysen commented Apr 19, 2024

Figured out the bugs now, so only need one person to review it.

@kkysen kkysen force-pushed the kkysen/mvs-Arc branch 2 times, most recently from 9bfcd01 to 6f0cc65 Compare April 19, 2024 03:17
…ntMutArcSlice<refmvs_temporal_block>>`s.
…vs_pool` now that `mvs`s have been `Arc`ified.
Base automatically changed from kkysen/struct-RefMvsFrame-rp_ref-field-remove to main April 19, 2024 19:50
@kkysen kkysen merged commit d5c1619 into main Apr 19, 2024
19 checks passed
@kkysen kkysen deleted the kkysen/mvs-Arc branch April 19, 2024 19:51
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.

2 participants