-
-
Notifications
You must be signed in to change notification settings - Fork 42
ffmpeg: added a method for accessing the raw data of a frame #519
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #519 +/- ##
==========================================
- Coverage 78.96% 78.95% -0.02%
==========================================
Files 327 327
Lines 24383 24343 -40
==========================================
- Hits 19255 19220 -35
+ Misses 5128 5123 -5
... and 3 files with indirect coverage changes
🚀 New features to boost your workflow:
|
|
Hi, thanks for the contributions! Regarding the Release Checks issue: you’ll need to add a changelog entry to your PR, describing the changes you made. There’s an example file in the |
|
In addition to @SimaoMoreira5228 's comments, it may be nice to have a simple test or two to ensure that the output is correct. Since it's returning raw data, using snap would likely prove to be useful here. We have many tests that use snap so feel free to pick any of them as an example to go off of. Thank you for the contribution! |
| } | ||
|
|
||
| /// Returns the entire data buffer | ||
| pub fn get_all(&self) -> &[u8] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a huge fan of the name of this function. I think we should also add a comment about alignment / padding values. Perhaps get_buffer
Since these lines also include the padding values / alignment and is not just the raw frame data.
This new method allows accessing the entire data buffer of a
FrameData. Useful for rendering raw pixel data to the screen.