comparison libass/ass_utils.h @ 28717:7bbe6626f0e0

Support fractional arguments for some override tags. Done by parsing all integers as doubles first and then converting them to the nearest integer. Patch by Grigori G (greg chown ath cx).
author eugeni
date Fri, 27 Feb 2009 23:06:47 +0000
parents 588ce97b44f2
children e3b5070f671d
comparison
equal deleted inserted replaced
28716:0a8b23440a61 28717:7bbe6626f0e0
24 #define LIBASS_UTILS_H 24 #define LIBASS_UTILS_H
25 25
26 #include <stdint.h> 26 #include <stdint.h>
27 27
28 int mystrtoi(char** p, int base, int* res); 28 int mystrtoi(char** p, int base, int* res);
29 int mystrtoll(char** p, int base, long long* res);
29 int mystrtou32(char** p, int base, uint32_t* res); 30 int mystrtou32(char** p, int base, uint32_t* res);
30 int mystrtod(char** p, double* res); 31 int mystrtod(char** p, double* res);
31 int strtocolor(char** q, uint32_t* res); 32 int strtocolor(char** q, uint32_t* res);
32 33
33 static inline int d6_to_int(int x) { 34 static inline int d6_to_int(int x) {