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
Rename NV12 format #4840
Comments
I would suggest |
I think that sounds good, but we should also specify the number of planes.
|
Shouldn't 4:2:0 imply that there are two planes? 1 Plane full-width and height for luma, and 1 plane half-width and height for chroma, at least as far as I understand. |
No, there's NV12 (2 planes, Y and UV) and YUV420 (3 planes, Y, U and V), both are 4:2:0 btw, once NV12 is settled, I'll be preparing a PR to add P010 format (same as NV12 but 10-bit) and probably a few others, including 4:2:2 ones (P210) and possibly some 4:4:4 |
Vulkan has a bunch of formats, the scheme I posted above should work for all. |
The scheme @teoxoy posted sounds good! |
The NV12 name isn't a very wgpu-ey name. I don't know what exactly it should be, but some options:
R8gb8Planar420
P0r8Hp1gb8
R8Plane0gb8HalfPlane1
Suggestions welcome
The text was updated successfully, but these errors were encountered: