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

macOS: use YUYV for certain pixel types #193

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

astraw
Copy link

@astraw astraw commented Dec 23, 2024

On macOS, use YUYV for the following pixel types:

  • kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
  • kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
  • kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange

Fixes #100, at least for me (M1 Macbook Pro).

This was suggested by the work of @paviro at
#100 (comment). (Thanks!)

@l1npengtul this is a small patch on the 0.10 branch. Any chance you could merge it and make a quick 0.10.6 release in the meantime before 0.11 arrives? I have been testing this for a couple months on macOS and it has been working fine for me. Thanks for this useful crate!

kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange
kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange

Fixes #100.

This was suggested by the code from @paviro at
#100 (comment).
@l1npengtul
Copy link
Owner

@l1npengtul this is a small patch on the 0.10 branch. Any chance you could merge it and make a quick 0.10.6 release in the meantime before 0.11 arrives? I have been testing this for a couple months on macOS and it has been working fine for me. Thanks for this useful crate!

Yep, I'll merge this and release 0.10.8 once I get home. Thanks for contributing!

@l1npengtul l1npengtul merged commit 45c6a3a into l1npengtul:0.10 Dec 23, 2024
1 check 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