Color conversion
Color conversion is the process of converting data from one color space to another. There are many different color spaces, such as RGB32, YUV420, NV12, etc. Each of them has its own characteristics and is used in certain cases. For example, video codecs use YUV420, and video renderers on video cards use NV12. Accordingly, for the correct display of the decoded frame, you need to convert YUV420 to NV12. Color conversions have different standards and may differ from each other. For example, the RGB <-> YCbCr conversion is performed using matrix coefficients that are defined by several standards BT. 601, BT.709, BT.2020.