-
Notifications
You must be signed in to change notification settings - Fork 66
Implement dav1d-rs's Rust API
#1439
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
Open
leo030303
wants to merge
69
commits into
memorysafety:main
Choose a base branch
from
leo030303:add-rust-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+688
−10
Open
Changes from 65 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
3d6a828
Implement Rust API
leo030303 f616c50
Update src/rust_api.rs
leo030303 14c32b6
Update src/rust_api.rs
leo030303 f5ae0e8
Update src/rust_api.rs
leo030303 1aae7a8
Replaced Error type with Rav1dError and added better enum names and docs
leo030303 7c10775
Changed types to more reasonable ones
leo030303 a654fc4
Update src/rust_api.rs
leo030303 282b6d8
Cleaned up imports, expose DecodeFrameType publicly
leo030303 0b85bd8
Removed option_nonnull
leo030303 391c557
Update src/rust_api.rs
leo030303 fa961b2
Remove TryFromEnumError as its no longer used
leo030303 7895fda
Rename Decoder.dec to Decoder.ctx
leo030303 86c41fb
Cleanup
leo030303 f2fc387
Update src/rust_api.rs
leo030303 fab1bb1
Update src/rust_api.rs
leo030303 3a41838
Update src/rust_api.rs
leo030303 7c69894
Cleanup
leo030303 9953560
Update src/rust_api.rs
leo030303 f0540e8
Removed an unsafe block
leo030303 93b2e68
Removed Drop impl for InnerPicture
leo030303 cc81343
Made offset in Rav1dDataProps an i64
leo030303 b5ae20f
Update src/rust_api.rs
leo030303 72cb0fa
Update src/rust_api.rs
leo030303 06d0269
Move some conversions into TryInto's
leo030303 ab3e04b
Removed panic in From impl for PlanarImageComponent
leo030303 8b43733
Added chrominance and luminance comments
leo030303 ff67750
Added check if stride is negative
leo030303 f07d83b
Make height and width casting more robust on Picture
leo030303 4255b38
Implement Rust API
leo030303 3b20ca1
Fixed CI error
leo030303 1101ea7
Added safety comment for raw slice
leo030303 89aa570
Remove Ok's on conversion functions
leo030303 a4d0309
Export Rav1dError correctly for the rust api
leo030303 12f5743
Clean up casts
leo030303 a9dd1db
Remove unnecessary declarations of 'ret'
leo030303 d6239de
Remove unnecessary InnerPicture struct
leo030303 ff711cf
Rename Settings.rav1_settings to Settings.inner
leo030303 a2da46e
Make n_threads and max_frame_delay on Decoder into InRange types
leo030303 e13f288
Remove unneccesary 'david' module in rust_api
leo030303 0d937a9
Remove Result return type from rav1d_get_frame_delay
leo030303 f5b77e5
Add `is_unspecified` methods to some structs to make conversions more…
leo030303 a87231a
Replace TryInto impls with cleaner From impls
leo030303 1de8568
Revert "Replace TryInto impls with cleaner From impls"
leo030303 fa446a3
Add doc comment to rust-api
leo030303 e6f54cc
Renamed UNKNOWN fields to UNSPECIFIED
leo030303 2eb3ec6
Merge branch 'main' into add-rust-api
leo030303 dee53e9
Fixed enums, replaced TryInto's with From impls
leo030303 9486894
Add safety check
leo030303 3ef2682
Merge branch 'memorysafety:main' into add-rust-api
leo030303 b41fbf8
Merge branch 'main' into add-rust-api
leo030303 8ce9bf7
Fix comments in rust_api
leo030303 55c3e3d
Remove `'static` on send_data
leo030303 29356b6
Fix nit in rust_api
leo030303 9e241d9
Cleaned up a series of code issues
leo030303 3fa4b7a
Replace TryFrom<u8> with new on BitsPerComponent
leo030303 1c0716c
Rename BitsPerComponent::new to from_hbd and add comment
leo030303 9af4d23
Got rid of `Plane`, cleaned up functions in `Picture`
leo030303 8301fad
Fix imports in rust_api.rs
leo030303 739cde4
Fix header comment in rust_api.rs
leo030303 8465178
Handle grayscale images better
leo030303 8acde6d
Add safety comment in rust_api
leo030303 5e31f3a
Improve send_data
leo030303 4d6ec0d
Merge branch 'memorysafety:main' into add-rust-api
leo030303 10e9ee1
Fix some small issues
leo030303 73c5fac
Remove Send Sync assertion from Decoder
leo030303 edcb5a1
Pull error handling out of unsafe block in rust_api
leo030303 2ea4ce6
Fix nit
leo030303 8241252
Merge branch 'memorysafety:main' into add-rust-api
leo030303 3a50834
Add back in Send Sync assertion for Decoder
leo030303 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.