Home | History | Annotate | Download | only in demux

Lines Matching refs:Chunk

37   size_t riff_end_;     // riff chunk end location, can be > end_.
59 typedef struct Chunk {
61 struct Chunk* next_;
62 } Chunk;
75 Chunk* chunks_; // non-image chunks
131 // Return true if 'size' exceeds the end of the RIFF chunk.
177 // Secondary chunk parsing
179 static void AddChunk(WebPDemuxer* const dmux, Chunk* const chunk) {
180 Chunk** c = &dmux->chunks_;
182 *c = chunk;
183 chunk->next_ = NULL;
302 // Parse a 'ANMF' chunk and any image bearing chunks that immediately follow.
303 // 'frame_chunk_size' is the previously validated, padded chunk size.
344 // Parse a 'FRGM' chunk and any image bearing chunks that immediately follow.
345 // 'fragment_chunk_size' is the previously validated, padded chunk size.
379 // General chunk storage, starting with the header at 'start_offset', allowing
385 Chunk* const chunk = (Chunk*)calloc(1, sizeof(*chunk));
386 if (chunk == NULL) return 0;
388 chunk->data_.offset_ = start_offset;
389 chunk->data_.size_ = size;
390 AddChunk(dmux, chunk);
395 // Primary chunk parsing
412 // 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
708 Chunk* c;
718 Chunk* const cur_chunk = c;
872 // Chunk iteration
876 const Chunk* c;
885 static const Chunk* GetChunk(const WebPDemuxer* const dmux,
888 const Chunk* c;
910 const Chunk* const chunk = GetChunk(dmux, fourcc, chunk_num);
911 iter->chunk.bytes = mem_buf + chunk->data_.offset_ + CHUNK_HEADER_SIZE;
912 iter->chunk.size = chunk->data_.size_ - CHUNK_HEADER_SIZE;
933 (const char*)iter->chunk.bytes - CHUNK_HEADER_SIZE;
942 (const char*)iter->chunk.bytes - CHUNK_HEADER_SIZE;