The YUV format is mainly used to optimize the transmission of color video signals.
YUV has three components: Y, U, and V, where Y for brightness, i.e., grayscale value, and U and V for chroma, used to describe the image color and saturation and specify the pixel color.
NV12 belongs to the YUV420SP image format in the YUV color space, where every four Y components share the same set of U and V components, with Y in sequential order and U and V in cross order.
The layout is as follows:
