Lines Matching defs:dest
113 typedef int (*ASSConvertFunc)(void *dest, const char *buf, int len);
115 static int convert_str(void *dest, const char *buf, int len)
121 if (*(void **)dest)
122 av_free(*(void **)dest);
123 *(char **)dest = str;
127 static int convert_int(void *dest, const char *buf, int len)
129 return sscanf(buf, "%d", (int *)dest) == 1;
131 static int convert_flt(void *dest, const char *buf, int len)
133 return sscanf(buf, "%f", (float *)dest) == 1;
135 static int convert_color(void *dest, const char *buf, int len)
137 return sscanf(buf, "&H%8x", (int *)dest) == 1 ||
138 sscanf(buf, "%d", (int *)dest) == 1;
140 static int convert_timestamp(void *dest, const char *buf, int len)
144 *(int *)dest = 360000*h + 6000*m + 100*s + cs;
147 static int convert_alignment(void *dest, const char *buf, int len)
152 *(int *)dest = a + ((a&4) >> 1) - 5*!!(a&8);