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

perf: Use the truly native pixel format on iOS if available #2200

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Nov 22, 2023

What

According to the videoSettings documentation, the truly native format is used when videoSettings is set to [:] - so this adds a path where this can happen (hdr is false, buffer compression is not enabled or available, and pixelFormat is native)

Not sure if this makes any difference, I think I already pick the format that is truly native for that format.

Before merging this PR, let's confirm that the pixelFormat is now different when calling CMSampleBufferGetFormatDescription(frame.buffer) in a FP Plugin.

Changes

Tested on

Related issues

Copy link

vercel bot commented Nov 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2023 3:56pm

@mrousavy mrousavy changed the title feat: Use the truly native pixel format on iOS if available perf: Use the truly native pixel format on iOS if available Nov 22, 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.

None yet

1 participant