Lines Matching refs:tokstart
202 char *tokstart, *tokend, *header_end;
229 for (tokstart = &header[strlen(Y4M_MAGIC) + 1];
230 tokstart < header_end; tokstart++) {
231 if (*tokstart == 0x20)
233 switch (*tokstart++) {
235 width = strtol(tokstart, &tokend, 10);
236 tokstart = tokend;
239 height = strtol(tokstart, &tokend, 10);
240 tokstart = tokend;
243 if (strncmp("420jpeg", tokstart, 7) == 0) {
246 } else if (strncmp("420mpeg2", tokstart, 8) == 0) {
249 } else if (strncmp("420paldv", tokstart, 8) == 0) {
252 } else if (strncmp("411", tokstart, 3) == 0)
254 else if (strncmp("422", tokstart, 3) == 0)
256 else if (strncmp("444alpha", tokstart, 8) == 0 ) {
260 } else if (strncmp("444", tokstart, 3) == 0)
262 else if (strncmp("mono", tokstart, 4) == 0) {
269 while (tokstart < header_end && *tokstart != 0x20)
270 tokstart++;
273 switch (*tokstart++){
297 sscanf(tokstart, "%d:%d", &raten, &rated); // 0:0 if unknown
298 while (tokstart < header_end && *tokstart != 0x20)
299 tokstart++;
302 sscanf(tokstart, "%d:%d", &aspectn, &aspectd); // 0:0 if unknown
303 while (tokstart < header_end && *tokstart != 0x20)
304 tokstart++;
307 if (strncmp("YSCSS=", tokstart, 6) == 0) {
309 tokstart += 6;
310 if (strncmp("420JPEG", tokstart, 7) == 0)
312 else if (strncmp("420MPEG2", tokstart, 8) == 0)
314 else if (strncmp("420PALDV", tokstart, 8) == 0)
316 else if (strncmp("411", tokstart, 3) == 0)
318 else if (strncmp("422", tokstart, 3) == 0)
320 else if (strncmp("444", tokstart, 3) == 0)
323 while (tokstart < header_end && *tokstart != 0x20)
324 tokstart++;