comparison libmpcodecs/vf_eq2.c @ 8087:610976c39408

locale fix
author nexus
date Sun, 03 Nov 2002 17:20:58 +0000
parents b667328dc62e
children 916d5392dcc9
comparison
equal deleted inserted replaced
8086:51cab3e229d4 8087:610976c39408
16 #include "../mp_msg.h" 16 #include "../mp_msg.h"
17 17
18 #include "img_format.h" 18 #include "img_format.h"
19 #include "mp_image.h" 19 #include "mp_image.h"
20 #include "vf.h" 20 #include "vf.h"
21
22 #ifdef USE_SETLOCALE
23 #include <locale.h>
24 #endif
21 25
22 26
23 typedef struct vf_priv_s { 27 typedef struct vf_priv_s {
24 unsigned char *buf; 28 unsigned char *buf;
25 int buf_w; 29 int buf_w;
217 eq2->gamma = 1.0; 221 eq2->gamma = 1.0;
218 eq2->contrast = 1.0; 222 eq2->contrast = 1.0;
219 eq2->bright = 0.0; 223 eq2->bright = 0.0;
220 224
221 if (args != NULL) { 225 if (args != NULL) {
226 #ifdef USE_SETLOCALE
227 setlocale( LC_NUMERIC, "C" );
228 #endif
222 sscanf (args, "%lf:%lf:%lf", &eq2->gamma, &eq2->contrast, &eq2->bright); 229 sscanf (args, "%lf:%lf:%lf", &eq2->gamma, &eq2->contrast, &eq2->bright);
230 #ifdef USE_SETLOCALE
231 setlocale( LC_NUMERIC, "" );
232 #endif
223 } 233 }
224 234
225 create_lut (eq2); 235 create_lut (eq2);
226 236
227 return 1; 237 return 1;