Lines Matching defs:dest
150 typedef int (*ASSConvertFunc)(void *dest, const char *buf, int len);
152 static int convert_str(void *dest, const char *buf, int len)
158 if (*(void **)dest)
159 av_free(*(void **)dest);
160 *(char **)dest = str;
164 static int convert_int(void *dest, const char *buf, int len)
166 return sscanf(buf, "%d", (int *)dest) == 1;
168 static int convert_flt(void *dest, const char *buf, int len)
170 return sscanf(buf, "%f", (float *)dest) == 1;
172 static int convert_color(void *dest, const char *buf, int len)
174 return sscanf(buf, "&H%8x", (int *)dest) == 1 ||
175 sscanf(buf, "%d", (int *)dest) == 1;
177 static int convert_timestamp(void *dest, const char *buf, int len)
181 *(int *)dest = 360000*h + 6000*m + 100*s + cs;
184 static int convert_alignment(void *dest, const char *buf, int len)
189 *(int *)dest = a + ((a&4) >> 1) - 5*!!(a&8);