diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-31 18:07:37 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-12-31 18:07:37 +0000 |
commit | c4c806a9d743ec917450515db15b270981930259 (patch) | |
tree | e21bb720e33029b0ecfe0dbe27513fd804bb3147 /libvo/gl_common.h | |
parent | 8fb7d45abd13b0d8a427f44f19e338d8b4fb9cc0 (diff) | |
download | mpv-c4c806a9d743ec917450515db15b270981930259.tar.bz2 mpv-c4c806a9d743ec917450515db15b270981930259.tar.xz |
Put the colourspace-related variables into a separate struct to ease
extracting the code and sharing with other vos.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30149 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r-- | libvo/gl_common.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h index 23a78c24a0..8410c4c954 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -327,9 +327,8 @@ 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) /** \} */ -typedef struct { - GLenum target; - int type; + +struct mp_csp_params { float brightness; float contrast; float hue; @@ -337,6 +336,12 @@ typedef struct { float rgamma; float ggamma; float bgamma; +}; + +typedef struct { + GLenum target; + int type; + struct mp_csp_params csp_params; int texw; int texh; int chrom_texw; |