Lines Matching refs:chunk
37 size_t riff_end_; // riff chunk end location, can be > end_.
61 typedef struct Chunk {
63 struct Chunk* next_;
64 } Chunk;
77 Chunk* chunks_; // non-image chunks
133 // Return true if 'size' exceeds the end of the RIFF chunk.
179 // Secondary chunk parsing
181 static void AddChunk(WebPDemuxer* const dmux, Chunk* const chunk) {
182 Chunk** c = &dmux->chunks_;
184 *c = chunk;
185 chunk->next_ = NULL;
300 // Parse a 'ANMF' chunk and any image bearing chunks that immediately follow.
301 // 'frame_chunk_size' is the previously validated, padded chunk size.
345 // Parse a 'FRGM' chunk and any image bearing chunks that immediately follow.
346 // 'fragment_chunk_size' is the previously validated, padded chunk size.
380 // General chunk storage, starting with the header at 'start_offset', allowing
386 Chunk* const chunk = (Chunk*)calloc(1, sizeof(*chunk));
387 if (chunk == NULL) return 0;
389 chunk->data_.offset_ = start_offset;
390 chunk->data_.size_ = size;
391 AddChunk(dmux, chunk);
396 // Primary chunk parsing
413 // There's no point in reading past the end of the RIFF chunk
562 // Store only the chunk header and unpadded size as only the payload
732 Chunk* c;
742 Chunk* const cur_chunk = c;
898 // Chunk iteration
902 const Chunk* c;
911 static const Chunk* GetChunk(const WebPDemuxer* const dmux,
914 const Chunk* c;
936 const Chunk* const chunk = GetChunk(dmux, fourcc, chunk_num);
937 iter->chunk.bytes = mem_buf + chunk->data_.offset_ + CHUNK_HEADER_SIZE;
938 iter->chunk.size = chunk->data_.size_ - CHUNK_HEADER_SIZE;
959 (const char*)iter->chunk.bytes - CHUNK_HEADER_SIZE;
968 (const char*)iter->chunk.bytes - CHUNK_HEADER_SIZE;