Skip to content

Add support for RAW YUV format NV15/NV20/NV30 - #699

Open
windowsair wants to merge 1 commit into
IENT:developfrom
windowsair:feature/NV15
Open

windowsair wants to merge 1 commit into
IENT:developfrom
windowsair:feature/NV15

Conversation

@windowsair

Copy link
Copy Markdown

As specified in Linux DRM 0, NV15/NV20/NV30 is a 2-plane YUV format. Its memory layout is as follows:

index 0 = Y plane, [39:0] Y3:Y2:Y1:Y0 little endian index 1 = Cr:Cb plane, [39:0] Cr1:Cb1:Cr0:Cb0 little endian

  • NV15: 2x2 subsampled Cr:Cb plane (yuv420)
  • NV20: 2x1 subsampled Cr:Cb plane (yuv422)
  • NV30: non-subsampled Cr:Cb plane (yuv444)

Add support for these format.

As specified in Linux DRM [0], NV15/NV20/NV30 is a 2-plane YUV format.
Its memory layout is as follows:

index 0 = Y plane, [39:0] Y3:Y2:Y1:Y0 little endian
index 1 = Cr:Cb plane, [39:0] Cr1:Cb1:Cr0:Cb0 little endian

- NV15: 2x2 subsampled Cr:Cb plane (yuv420)
- NV20: 2x1 subsampled Cr:Cb plane (yuv422)
- NV30: non-subsampled Cr:Cb plane (yuv444)

Add support for these format.

[0]: https://github.com/torvalds/linux/blob/master/include/uapi/drm/drm_fourcc.h

Assisted-by: GLM-5.3
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