Support rendering YUV formatted frames
This commit is contained in:
@@ -24,6 +24,14 @@ static float XYZD65_to_sRGB[] = {
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
static float YUV_to_RGB[] = {
|
||||
// clang-format off
|
||||
0.299f, 0.587f, 0.114f,
|
||||
-0.299f, -0.587f, 0.886f,
|
||||
0.701f, -0.597f, -0.114f
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
void print_matrix(float m[9]);
|
||||
|
||||
void multiply_matrices(const float a[9], const float b[9], float out[9]);
|
||||
|
||||
Reference in New Issue
Block a user