summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r--libvo/gl_common.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h
index 05d1bde862..a7a4f8c2b1 100644
--- a/libvo/gl_common.h
+++ b/libvo/gl_common.h
@@ -263,11 +263,22 @@ int loadGPUProgram(GLenum target, char *prog);
//! extract chrominance scaler out of type
#define YUV_CHROM_SCALER(t) ((t >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK)
/** \} */
-void glSetupYUVConversion(GLenum target, int type,
- float brightness, float contrast,
- float hue, float saturation,
- float rgamma, float ggamma, float bgamma,
- int texw, int texh);
+typedef struct {
+ GLenum target;
+ int type;
+ float brightness;
+ float contrast;
+ float hue;
+ float saturation;
+ float rgamma;
+ float ggamma;
+ float bgamma;
+ int texw;
+ int texh;
+ float filter_strength;
+} gl_conversion_params_t;
+
+void glSetupYUVConversion(gl_conversion_params_t *params);
void glEnableYUVConversion(GLenum target, int type);
void glDisableYUVConversion(GLenum target, int type);