How to convert sRGB to NV12 format using NumPy?
问题 NV12 format defines specific color channels ordering of YUV color space with 420 subsampling. NV12 format is mostly used in video encoding/decoding pipeline. libyuv description of NV12: 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