Lines Matching defs:scratch
282 unsigned char scratch[1024];
384 if (avio_read(pb, scratch, opcode_size) !=
389 s->frame_pts_inc = ((uint64_t)AV_RL32(&scratch[0])) * AV_RL16(&scratch[4]);
399 if (avio_read(pb, scratch, opcode_size) !=
404 s->audio_sample_rate = AV_RL16(&scratch[4]);
405 audio_flags = AV_RL16(&scratch[2]);
438 if (avio_read(pb, scratch, opcode_size) !=
443 width = AV_RL16(&scratch[0]) * 8;
444 height = AV_RL16(&scratch[2]) * 8;
453 if (opcode_version < 2 || !AV_RL16(&scratch[6])) {
509 if (avio_read(pb, scratch, opcode_size) != opcode_size) {
515 first_color = AV_RL16(&scratch[0]);
516 last_color = first_color + AV_RL16(&scratch[2]) - 1;
529 r = scratch[j++] * 4;
530 g = scratch[j++] * 4;
531 b = scratch[j++] * 4;