Questions tagged [nv12-nv21]

Use for questions relating to the NV12 and NV21 YUV formats. Also known as YCbCr.

NV12 and NV21

NV12 and NV21 are standards for YUV420 elements ordering.

libyuv description:

NV12 is a biplanar format with a full sized Y plane followed by a single chroma plane with weaved U and V values. NV21 is the same but with weaved V and U values. The 12 in NV12 refers to 12 bits per pixel. NV12 has a half width and half height chroma channel, and therefore is a 420 subsampling.

In context of NV12/NV21, YUV format is mainly referred to as YCbCr.

NV12 and NV21 are detailed by FOURCC standard:

VideoLAN description: NV12/NV21

Microsoft description: NV12

NV12 element ordering example (each element is one byte): YYYYYY
YYYYYY
UVUVUV

NV12

NV21 element ordering example:
YYYYYY
YYYYYY
VUVUVU

33 questions
0
votes
1 answer

Separate Y and UV of a video frame C++

I am receiving a video frame in a GstVideoFrame structure of a gstreamer element which is written in C++. The frame is in YUV420 NV12 format In this gstreamer element, I am trying to copy y-frame and uv-frame in separate buffers. According to…
Akkshay
  • 35
  • 6
0
votes
1 answer

how to do warp affine on NV12 format image

I need to apply a warpping affine model to NV12 image. Here is the format of NV12, the Y is separated from the Cb Cr. Cb Cr is interleaved. The model looks like [a11, a12, xt a21, a22, yt] a** are the rotation, xt yt are the shit. This model is…
BigTree
  • 23
  • 1
  • 4
0
votes
1 answer

How to judge whether a file is a nv12 format file?

I have a file, I want to know whether it is NV12 format, how to judge a file is a nv12 format file? Is there any tool or test code?
Lyric
  • 15
  • 1
  • 5
1 2
3