Skip to content

feat: Properly report YUV range (-full or -video) on Android#4034

Merged
mrousavy merged 6 commits into
mainfrom
fix/properly-expose-range
Jun 22, 2026
Merged

feat: Properly report YUV range (-full or -video) on Android#4034
mrousavy merged 6 commits into
mainfrom
fix/properly-expose-range

Conversation

@mrousavy

@mrousavy mrousavy commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Previously, we just assumed all YUV buffers on Android are in -full range (e.g. yuv-420-8-bit-full).

This is wrong, since it technically can be a different range (like -video), but that wasn't encoded in the ImageProxy.format enum, so we had no way of telling.

Turns out, there is DataSpace which tells us stuff like transfer function, or pixel range.

So now with this PR we use that - and actually tell the user if a Frame is in full or video range.

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview, Comment Jun 22, 2026 2:07pm

Request Review

@mrousavy mrousavy changed the title feat: Add 'yuv-444-8-bit-full' feat: Properly report YUV range (-full or -video) on Android Jun 22, 2026
@mrousavy mrousavy marked this pull request as ready for review June 22, 2026 14:36
@mrousavy mrousavy merged commit fd23573 into main Jun 22, 2026
8 of 10 checks passed
@mrousavy mrousavy deleted the fix/properly-expose-range branch June 22, 2026 14:36
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.

1 participant