Color conversion in Blender to RGB565 format
The output pixel color format for rendering in Blender is RGBA in the linear color space. If we need to save the render in RGB565 format, such a format is used, for example, in some old games, the color values of the pixels must be converted.