changeset 36133:9bcec2bb02b3

Add some forgotten "const" to function arguments.
author reimar
date Sat, 04 May 2013 20:01:38 +0000
parents 17b5ef08fdaa
children 2b742d298c68
files libvo/csputils.c libvo/csputils.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/csputils.c	Sat May 04 20:01:38 2013 +0000
+++ b/libvo/csputils.c	Sat May 04 20:01:38 2013 +0000
@@ -61,7 +61,7 @@
  * Note: contrast, hue and saturation will only work as expected with YUV formats,
  * not with e.g. MP_CSP_XYZ
  */
-void mp_get_yuv2rgb_coeffs(struct mp_csp_params *params, float yuv2rgb[3][4]) {
+void mp_get_yuv2rgb_coeffs(const struct mp_csp_params *params, float yuv2rgb[3][4]) {
   float depth_multiplier = params->input_shift >= 0 ?
                            (1 << params->input_shift) :
                            (1.0 / (1 << -params->input_shift));
@@ -151,7 +151,7 @@
  * \param map where to store map. Must provide space for size^3 elements
  * \param size size of the map
  */
-void mp_gen_yuv2rgb_map(struct mp_csp_params *params, unsigned char *map, int size) {
+void mp_gen_yuv2rgb_map(const struct mp_csp_params *params, unsigned char *map, int size) {
   int i, j, k, l;
   float yuv2rgb[3][4];
   unsigned char gmaps[3][GMAP_SIZE];
--- a/libvo/csputils.h	Sat May 04 20:01:38 2013 +0000
+++ b/libvo/csputils.h	Sat May 04 20:01:38 2013 +0000
@@ -64,7 +64,7 @@
 #define COL_U 1
 #define COL_V 2
 #define COL_C 3
-void mp_get_yuv2rgb_coeffs(struct mp_csp_params *params, float yuv2rgb[3][4]);
-void mp_gen_yuv2rgb_map(struct mp_csp_params *params, uint8_t *map, int size);
+void mp_get_yuv2rgb_coeffs(const struct mp_csp_params *params, float yuv2rgb[3][4]);
+void mp_gen_yuv2rgb_map(const struct mp_csp_params *params, uint8_t *map, int size);
 
 #endif /* MPLAYER_CSPUTILS_H */