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

AVFoundation backend is not passing the frame format #160

Open
vyeevani opened this issue Jan 10, 2024 · 2 comments
Open

AVFoundation backend is not passing the frame format #160

vyeevani opened this issue Jan 10, 2024 · 2 comments

Comments

@vyeevani
Copy link

The pixelbuffer that's returned from the avfoundation callback is not guaranteed to be the same format as the one configured. This means that we have to query the cvpixelbuffer to get the pixel format that's being used by it for the decoder. The channel that's being used to pipe things from the callback to the poll API already has the pixel format but right now it's being hardcoded to grey. This should be dynamic.

@marcpabst
Copy link

Can you point me to the AVFoundation documentation? I think if a different pixel format is returned than requested, this should return an error to be handled by the user.

@valenotary
Copy link

@vyeevani coming across the same issue as you right now. On a 1920*1080 FaceTime HD cam on my Mac, I'm making requests for RGB but for some reason the frame buffer I get back seems to be some sort of two-channel pixel data instead of 3... every image decode fails because the resolution and buffer do not match dimensions.

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

No branches or pull requests

3 participants