Mercurial > mplayer.hg
comparison libvo/vo_vdpau.c @ 28728:c9b2f40aaf18
Make VdpVideoMixerAttribute attributes[] static const.
Suggested by Reimar.
author | cehoyos |
---|---|
date | Sat, 28 Feb 2009 15:42:17 +0000 |
parents | b9c26620ada7 |
children | bbf7f7100e91 |
comparison
equal
deleted
inserted
replaced
28727:36c24e376f79 | 28728:c9b2f40aaf18 |
---|---|
1048 } | 1048 } |
1049 | 1049 |
1050 static int set_equalizer(char *name, int value) { | 1050 static int set_equalizer(char *name, int value) { |
1051 VdpStatus vdp_st; | 1051 VdpStatus vdp_st; |
1052 VdpCSCMatrix matrix; | 1052 VdpCSCMatrix matrix; |
1053 VdpVideoMixerAttribute attributes[] = {VDP_VIDEO_MIXER_ATTRIBUTE_CSC_MATRIX}; | 1053 static const VdpVideoMixerAttribute attributes[] = {VDP_VIDEO_MIXER_ATTRIBUTE_CSC_MATRIX}; |
1054 const void *attribute_values[] = {&matrix}; | 1054 const void *attribute_values[] = {&matrix}; |
1055 | 1055 |
1056 if (!strcasecmp(name, "brightness")) | 1056 if (!strcasecmp(name, "brightness")) |
1057 procamp.brightness = value / 100.0; | 1057 procamp.brightness = value / 100.0; |
1058 else if (!strcasecmp(name, "contrast")) | 1058 else if (!strcasecmp(name, "contrast")) |