Lines Matching defs:gbc
48 GetByteContext *gbc = &ctx->gbc;
55 int stream_remaining = bytestream2_get_bytes_left(gbc);
56 ret = ff_hap_parse_section_header(gbc, §ion_size, §ion_type);
60 size -= stream_remaining - bytestream2_get_bytes_left(gbc);
68 ctx->chunks[i].compressor = bytestream2_get_byte(gbc) << 4;
78 ctx->chunks[i].compressed_size = bytestream2_get_le32(gbc);
88 ctx->chunks[i].compressed_offset = bytestream2_get_le32(gbc);
133 GetByteContext *gbc = &ctx->gbc;
139 ret = ff_hap_parse_section_header(gbc, &ctx->texture_section_size, §ion_type);
170 ret = ff_hap_parse_section_header(gbc, §ion_size, §ion_type);
191 if (chunk->compressed_offset + (uint64_t)chunk->compressed_size > bytestream2_get_bytes_left(gbc))
202 bytestream2_init(&gbc_tmp, gbc->buffer + chunk->compressed_offset,
228 GetByteContext gbc;
231 bytestream2_init(&gbc, ctx->gbc.buffer + chunk->compressed_offset, chunk->compressed_size);
238 ret = ff_snappy_uncompress(&gbc, dst, &uncompressed_size);
244 bytestream2_get_buffer(&gbc, dst, chunk->compressed_size);
259 bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size);
263 ret = ff_hap_parse_section_header(&ctx->gbc, §ion_size, §ion_type);
279 bytestream2_seek(&ctx->gbc, start_texture_section, SEEK_SET);
299 ctx->dec[t].tex_data.in = ctx->gbc.buffer;
300 tex_size = FFMIN(ctx->texture_section_size, bytestream2_get_bytes_left(&ctx->gbc));