Reorganization, replacing CPU debayering entirely

This commit is contained in:
Benjamin Schaaf
2021-04-18 23:13:56 +10:00
parent 337526e9b9
commit 91817b167a
48 changed files with 571 additions and 1657 deletions

21
src/gles2_debayer.h Normal file
View File

@@ -0,0 +1,21 @@
#include "camera.h"
#include "gl_util.h"
#include <assert.h>
#include <stdio.h>
typedef struct _GLES2Debayer GLES2Debayer;
GLES2Debayer* gles2_debayer_new(MPPixelFormat format);
void gles2_debayer_free(GLES2Debayer *self);
void gles2_debayer_use(GLES2Debayer *self);
void gles2_debayer_configure(GLES2Debayer *self,
const uint32_t dst_width, const uint32_t dst_height,
const uint32_t src_width, const uint32_t src_height,
const uint32_t rotation,
const bool mirrored,
const float *colormatrix,
const uint8_t blacklevel);
void gles2_debayer_process(GLES2Debayer *self, GLuint dst_id, GLuint source_id);