Rewrite YUV processing pipeline.

Use a 4-channel texture instead for packed YUV data so
every pixel in the texture has all the 4:2:2 color data
available.
This commit is contained in:
Martijn Braam
2024-12-23 17:29:46 +01:00
parent 1b5a871641
commit 8fbea82b2b
5 changed files with 55 additions and 37 deletions

View File

@@ -8,10 +8,14 @@
#define SHADER_DEBAYER_PACKED 2
#define SHADER_YUV 3
#define TEXTURE_BAYER 1
#define TEXTURE_YUV 2
typedef struct {
int format;
int shader;
float forward_matrix[9];
int texture_mode;
GLuint frame_buffer;
GLuint program;