# HG changeset patch # User reimar # Date 1367697698 0 # Node ID 9bcec2bb02b39dd402c92a7f43ff892667a379ef # Parent 17b5ef08fdaa731c535f392ccdbf14b51bf48640 Add some forgotten "const" to function arguments. diff -r 17b5ef08fdaa -r 9bcec2bb02b3 libvo/csputils.c --- 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]; diff -r 17b5ef08fdaa -r 9bcec2bb02b3 libvo/csputils.h --- 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 */