// use static presets YUV in bccolors.h
#define BC_GL_MATRIX(shader, mat) \
- glUniformMatrix3fv(glGetUniformLocation(shader, #mat), 1, 0, YUV::mat)
+ glUniformMatrix3fv(glGetUniformLocation(shader, #mat), 1, 1, YUV::mat)
#define BC_GL_VECTOR(shader, vec) \
glUniform3fv(glGetUniformLocation(shader, #vec), 1, YUV::vec)
private:
// Called by write_buffer and clear_frame to initialize OpenGL flags
- void init_frame(Playback3DCommand *command);
+ void init_frame(Playback3DCommand *command, int is_yuv=0);
void write_buffer_sync(Playback3DCommand *command);
- void draw_output(Playback3DCommand *command);
+ void draw_output(Playback3DCommand *command, int flip_y);
void clear_output_sync(Playback3DCommand *command);
void clear_input_sync(Playback3DCommand *command);
void overlay_sync(Playback3DCommand *command);