Lines Matching refs:Chunk
33 size_t riff_end_; // riff chunk end location, can be > end_.
56 typedef struct Chunk {
58 struct Chunk* next_;
59 } Chunk;
72 Chunk* chunks_; // non-image chunks
73 Chunk** chunks_tail_;
129 // Return true if 'size' exceeds the end of the RIFF chunk.
175 // Secondary chunk parsing
177 static void AddChunk(WebPDemuxer* const dmux, Chunk* const chunk) {
178 *dmux->chunks_tail_ = chunk;
179 chunk->next_ = NULL;
180 dmux->chunks_tail_ = &chunk->next_;
303 // Parse a 'ANMF' chunk and any image bearing chunks that immediately follow.
304 // 'frame_chunk_size' is the previously validated, padded chunk size.
347 // General chunk storage, starting with the header at 'start_offset', allowing
353 Chunk* const chunk = (Chunk*)WebPSafeCalloc(1ULL, sizeof(*chunk));
354 if (chunk == NULL) return 0;
356 chunk->data_.offset_ = start_offset;
357 chunk->data_.size_ = size;
358 AddChunk(dmux, chunk);
363 // Primary chunk parsing
380 // There's no point in reading past the end of the RIFF chunk
503 // Store only the chunk header and unpadded size as only the payload
756 Chunk* c;
766 Chunk* const cur_chunk = c;
887 // Chunk iteration
891 const Chunk* c;
900 static const Chunk* GetChunk(const WebPDemuxer* const dmux,
903 const Chunk* c;
925 const Chunk* const chunk = GetChunk(dmux, fourcc, chunk_num);
926 iter->chunk.bytes = mem_buf + chunk->data_.offset_ + CHUNK_HEADER_SIZE;
927 iter->chunk.size = chunk->data_.size_ - CHUNK_HEADER_SIZE;
948 (const char*)iter->chunk.bytes - CHUNK_HEADER_SIZE;
957 (const char*)iter->chunk.bytes - CHUNK_HEADER_SIZE;