Lines Matching defs:buf
86 if (AV_RB64(p->buf) != SCD_MAGIC)
119 uint8_t buf[SCD_OFFSET_HEADER_SIZE];
121 if ((ret = avio_read(s->pb, buf, SCD_OFFSET_HEADER_SIZE)) < 0)
124 ctx->hdr.table0.count = AV_RB16(buf + 0);
125 ctx->hdr.table1.count = AV_RB16(buf + 2);
126 ctx->hdr.table2.count = AV_RB16(buf + 4);
127 ctx->hdr.unk2 = AV_RB16(buf + 6);
128 ctx->hdr.table0.offset = AV_RB32(buf + 8);
129 ctx->hdr.table1.offset = AV_RB32(buf + 12);
130 ctx->hdr.table2.offset = AV_RB32(buf + 16);
131 ctx->hdr.unk3 = AV_RB32(buf + 20);
132 ctx->hdr.unk4 = AV_RB32(buf + 24);
153 uint8_t buf[SCD_TRACK_HEADER_SIZE];
168 if ((ret = avio_read(s->pb, buf, SCD_TRACK_HEADER_SIZE)) < 0)
171 track->length = AV_RB32(buf + 0);
172 track->num_channels = AV_RB32(buf + 4);
173 track->sample_rate = AV_RB32(buf + 8);
174 track->data_type = AV_RB32(buf + 12);
175 track->loop_start = AV_RB32(buf + 16);
176 track->loop_end = AV_RB32(buf + 20);
177 track->data_offset = AV_RB32(buf + 24);
178 track->aux_count = AV_RB32(buf + 28);
241 uint8_t buf[SCD_MIN_HEADER_SIZE];
243 if ((ret = avio_read(s->pb, buf, SCD_MIN_HEADER_SIZE)) < 0)
246 ctx->hdr.magic = AV_RB64(buf + 0);
247 ctx->hdr.version = AV_RB32(buf + 8);
248 ctx->hdr.unk1 = AV_RB16(buf + 12);
249 ctx->hdr.header_size = AV_RB16(buf + 14);
250 ctx->hdr.file_size = AV_RB32(buf + 16);