Searched refs:CHUNK_HEADER_SIZE (Results 1 – 11 of 11) sorted by relevance
/external/webp/src/enc/ |
D | syntax_enc.c | 53 uint8_t vp8x[CHUNK_HEADER_SIZE + VP8X_CHUNK_SIZE] = { in PutVP8XHeader() 67 PutLE32(vp8x + CHUNK_HEADER_SIZE, flags); in PutVP8XHeader() 68 PutLE24(vp8x + CHUNK_HEADER_SIZE + 4, pic->width - 1); in PutVP8XHeader() 69 PutLE24(vp8x + CHUNK_HEADER_SIZE + 7, pic->height - 1); in PutVP8XHeader() 78 uint8_t alpha_chunk_hdr[CHUNK_HEADER_SIZE] = { in PutAlphaChunk() 104 uint8_t vp8_chunk_hdr[CHUNK_HEADER_SIZE] = { in PutVP8Header() 343 riff_size = TAG_SIZE + CHUNK_HEADER_SIZE + vp8_size; in VP8EncWrite() 345 riff_size += CHUNK_HEADER_SIZE + VP8X_CHUNK_SIZE; in VP8EncWrite() 350 riff_size += CHUNK_HEADER_SIZE + padded_alpha_size; in VP8EncWrite() 382 enc->coded_size_ = (int)(CHUNK_HEADER_SIZE + riff_size); in VP8EncWrite()
|
D | vp8l_enc.c | 1139 uint8_t riff[RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE + VP8L_SIGNATURE_SIZE] = { in WriteRiffHeader() 1176 const size_t riff_size = TAG_SIZE + CHUNK_HEADER_SIZE + vp8l_size + pad; in WriteImage() 1193 *coded_size = CHUNK_HEADER_SIZE + riff_size; in WriteImage()
|
D | frame_enc.c | 28 #define HEADER_SIZE_ESTIMATE (RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE + \
|
/external/webp/src/mux/ |
D | muxread.c | 60 if (data_size < CHUNK_HEADER_SIZE) return WEBP_MUX_NOT_ENOUGH_DATA; in ChunkVerifyAndAssign() 71 chunk_data.bytes = data + CHUNK_HEADER_SIZE; in ChunkVerifyAndAssign() 125 subchunk_size = ChunkDiskSize(&subchunk) - CHUNK_HEADER_SIZE; in MuxImageParse() 199 if (size < RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE) return NULL; in WebPMuxCreateInternal() 201 GetLE32(data + CHUNK_HEADER_SIZE) != MKFOURCC('W', 'E', 'B', 'P')) { in WebPMuxCreateInternal() 221 if (riff_size < CHUNK_HEADER_SIZE) goto Err; in WebPMuxCreateInternal() 224 if (size > riff_size + CHUNK_HEADER_SIZE) { in WebPMuxCreateInternal() 225 size = riff_size + CHUNK_HEADER_SIZE; in WebPMuxCreateInternal() 275 if (data_size < CHUNK_HEADER_SIZE + VP8X_CHUNK_SIZE) goto Err; in WebPMuxCreateInternal() 374 const size_t vp8x_size = CHUNK_HEADER_SIZE + VP8X_CHUNK_SIZE; in EmitVP8XChunk() [all …]
|
D | muxinternal.c | 196 memcpy(dst + CHUNK_HEADER_SIZE, chunk->data_.bytes, chunk_size); in ChunkEmit() 198 dst[CHUNK_HEADER_SIZE + chunk_size] = 0; // Add padding. in ChunkEmit() 374 const size_t offset_to_next = total_size - CHUNK_HEADER_SIZE; in ChunkEmitSpecial() 379 memcpy(dst + CHUNK_HEADER_SIZE, header->data_.bytes, header_size); in ChunkEmitSpecial() 381 dst[CHUNK_HEADER_SIZE + header_size] = 0; // Add padding. in ChunkEmitSpecial() 414 PutLE32(data + TAG_SIZE, (uint32_t)size - CHUNK_HEADER_SIZE); in MuxEmitRiffHeader()
|
D | muxi.h | 151 return CHUNK_HEADER_SIZE + ((chunk_size + 1) & ~1U); in SizeWithPadding()
|
/external/webp/src/demux/ |
D | demux.c | 214 int done = (MemDataSize(mem) < CHUNK_HEADER_SIZE || in StoreFrame() 227 const size_t chunk_size = CHUNK_HEADER_SIZE + payload_available; in StoreFrame() 275 Rewind(mem, CHUNK_HEADER_SIZE); in StoreFrame() 282 } else if (MemDataSize(mem) < CHUNK_HEADER_SIZE) { in StoreFrame() 373 const size_t min_size = RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE; in ReadHeader() 379 memcmp(GetBuffer(mem) + CHUNK_HEADER_SIZE, "WEBP", CHUNK_SIZE_BYTES)) { in ReadHeader() 384 if (riff_size < CHUNK_HEADER_SIZE) return PARSE_ERROR; in ReadHeader() 388 mem->riff_end_ = riff_size + CHUNK_HEADER_SIZE; in ReadHeader() 398 const size_t min_size = CHUNK_HEADER_SIZE; in ParseSingleImage() 469 Rewind(mem, CHUNK_HEADER_SIZE); in ParseVP8XChunks() [all …]
|
/external/webp/src/dec/ |
D | webp_dec.c | 68 if (size < TAG_SIZE + CHUNK_HEADER_SIZE) { in ParseRIFF() 74 if (have_all_data && (size > *data_size - CHUNK_HEADER_SIZE)) { in ParseRIFF() 98 const uint32_t vp8x_size = CHUNK_HEADER_SIZE + VP8X_CHUNK_SIZE; in ParseVP8X() 105 if (*data_size < CHUNK_HEADER_SIZE) { in ParseVP8X() 154 CHUNK_HEADER_SIZE + // "VP8Xnnnn". in ParseOptionalChunks() 173 if (buf_size < CHUNK_HEADER_SIZE) { // Insufficient data. in ParseOptionalChunks() 182 disk_chunk_size = (CHUNK_HEADER_SIZE + chunk_size + 1) & ~1; in ParseOptionalChunks() 204 *alpha_data = buf + CHUNK_HEADER_SIZE; in ParseOptionalChunks() 230 TAG_SIZE + CHUNK_HEADER_SIZE; // "WEBP" + "VP8 nnnn" OR in ParseVP8Header() 237 if (*data_size < CHUNK_HEADER_SIZE) { in ParseVP8Header() [all …]
|
/external/webp/include/webp/ |
D | format_constants.h | 71 #define CHUNK_HEADER_SIZE 8 // Size of a chunk header. macro 85 #define MAX_CHUNK_PAYLOAD (~0U - CHUNK_HEADER_SIZE - 1)
|
/external/webp/src/webp/ |
D | format_constants.h | 71 #define CHUNK_HEADER_SIZE 8 // Size of a chunk header. macro 85 #define MAX_CHUNK_PAYLOAD (~0U - CHUNK_HEADER_SIZE - 1)
|
/external/ImageMagick/coders/ |
D | webp.c | 178 #define CHUNK_HEADER_SIZE 8 in IsWEBPImageLossless() macro 179 #define MAX_CHUNK_PAYLOAD (~0U-CHUNK_HEADER_SIZE-1) in IsWEBPImageLossless() 204 chunk_size_pad=(CHUNK_HEADER_SIZE+chunk_size+1) & ~1; in IsWEBPImageLossless()
|