Support rendering YUV formatted frames

This commit is contained in:
Martijn Braam
2023-11-24 16:28:25 +01:00
parent 8a3f1a5540
commit 9d189b88b4
10 changed files with 146 additions and 53 deletions

View File

@@ -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]);