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

add Bayer pixel formats #1755

Merged
merged 6 commits into from
Feb 6, 2025
Merged

add Bayer pixel formats #1755

merged 6 commits into from
Feb 6, 2025

Conversation

z-khan
Copy link
Contributor

@z-khan z-khan commented Feb 5, 2025

This PR extends support for Bayer pixel formats in VideoFrame.
The enhancement makes it easier to work with Bayer formatted data in computer vision and video processing workflows.

  • Create Bayer VideoFrame from ndarray or bytes
  • Convert Bayer VideoFrame to ndarray
  • Check if a VideoFormat is a Bayer-like with its is_bayer property
8-bit 16-bit (little-endian) 16-bit (big-endian)
bayer_bggr8 bayer_bggr16le bayer_bggr16be
bayer_rggb8 bayer_rggb16le bayer_rggb16be
bayer_gbrg8 bayer_gbrg16le bayer_gbrg16be
bayer_grbg8 bayer_grbg16le bayer_grbg16be

@WyattBlue WyattBlue merged commit 796d8af into PyAV-Org:main Feb 6, 2025
8 checks passed
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