Split debayer fragment between packed and unpacked, fixing preview for unpacked 10bit bayer formats

This commit is contained in:
Kristian Vos
2024-06-29 22:24:17 +02:00
committed by Martijn Braam
parent db188f2db7
commit 32f168b6d8
4 changed files with 103 additions and 34 deletions

View File

@@ -5,7 +5,8 @@
#include <stdio.h>
#define SHADER_DEBAYER 1
#define SHADER_YUV 2
#define SHADER_DEBAYER_PACKED 2
#define SHADER_YUV 3
typedef struct {
int format;
@@ -47,3 +48,6 @@ void gles2_debayer_set_shading(GLES2Debayer *self,
float blacklevel);
void gles2_debayer_process(GLES2Debayer *self, GLuint dst_id, GLuint source_id);
const char* gles2_shader_to_fragment(int shader);
const char* gles2_shader_to_vertex(int shader);