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

VideoFrame.as_array() supports more pixel formats #10

Merged
merged 9 commits into from
Jul 19, 2023

Conversation

crnbaker
Copy link
Collaborator

@crnbaker crnbaker commented May 24, 2023

Fixes #7

VideoFrame.as_array() can now decode all RGB/BGR formats including RGB10 and BGR10, as well as grayscale formats.

There are some new optional keyword arguments to control the order of the channels in the resulting array.

The decoding is implemeneted in Python. However, for testing purposes it is now possible to generate mock frames (using MockProCaptureDevice) in formats other than RGB24, but this requires ffmpeg be installed. Since this functionality is only intended for testing, ffmpeg has not been included as a requirement.

@crnbaker crnbaker force-pushed the 7_rgb_video_decoding branch from 57a6ae6 to 26f6a0a Compare July 19, 2023 14:08
@crnbaker crnbaker merged commit 0675639 into main Jul 19, 2023
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.

Feature request: I see only 8-bit is supported. Is there a plan to support 10, 12-bit?
1 participant