Home
last modified time | relevance | path

Searched refs:CHUNK_HEADER_SIZE (Results 1 – 11 of 11) sorted by relevance

/third_party/skia/third_party/externals/libwebp/src/enc/
Dsyntax_enc.c53 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()
Dvp8l_enc.c1358 uint8_t riff[RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE + VP8L_SIGNATURE_SIZE] = { in WriteRiffHeader()
1395 const size_t riff_size = TAG_SIZE + CHUNK_HEADER_SIZE + vp8l_size + pad; in WriteImage()
1412 *coded_size = CHUNK_HEADER_SIZE + riff_size; in WriteImage()
Dframe_enc.c28 #define HEADER_SIZE_ESTIMATE (RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE + \
/third_party/skia/third_party/externals/libwebp/src/mux/
Dmuxread.c60 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()
198 if (size < RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE) return NULL; in WebPMuxCreateInternal()
200 GetLE32(data + CHUNK_HEADER_SIZE) != MKFOURCC('W', 'E', 'B', 'P')) { in WebPMuxCreateInternal()
220 if (riff_size < CHUNK_HEADER_SIZE) goto Err; in WebPMuxCreateInternal()
223 if (size > riff_size + CHUNK_HEADER_SIZE) { in WebPMuxCreateInternal()
224 size = riff_size + CHUNK_HEADER_SIZE; in WebPMuxCreateInternal()
274 if (data_size < CHUNK_HEADER_SIZE + VP8X_CHUNK_SIZE) goto Err; in WebPMuxCreateInternal()
373 const size_t vp8x_size = CHUNK_HEADER_SIZE + VP8X_CHUNK_SIZE; in EmitVP8XChunk()
[all …]
Dmuxinternal.c196 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()
Dmuxi.h151 return CHUNK_HEADER_SIZE + ((chunk_size + 1) & ~1U); in SizeWithPadding()
/third_party/skia/third_party/externals/libwebp/src/demux/
Ddemux.c214 int done = (MemDataSize(mem) < CHUNK_HEADER_SIZE || in StoreFrame()
233 chunk_size = CHUNK_HEADER_SIZE + payload_available; in StoreFrame()
279 Rewind(mem, CHUNK_HEADER_SIZE); in StoreFrame()
286 } else if (MemDataSize(mem) < CHUNK_HEADER_SIZE) { in StoreFrame()
377 const size_t min_size = RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE; in ReadHeader()
383 memcmp(GetBuffer(mem) + CHUNK_HEADER_SIZE, "WEBP", CHUNK_SIZE_BYTES)) { in ReadHeader()
388 if (riff_size < CHUNK_HEADER_SIZE) return PARSE_ERROR; in ReadHeader()
392 mem->riff_end_ = riff_size + CHUNK_HEADER_SIZE; in ReadHeader()
402 const size_t min_size = CHUNK_HEADER_SIZE; in ParseSingleImage()
475 Rewind(mem, CHUNK_HEADER_SIZE); in ParseVP8XChunks()
[all …]
/third_party/skia/third_party/externals/libwebp/src/dec/
Dwebp_dec.c68 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 …]
/third_party/skia/third_party/externals/libwebp/examples/
Dwebpinfo.c335 size_t data_size = chunk_data->size_ - CHUNK_HEADER_SIZE; in ParseLossyHeader()
347 assert(chunk_data->size_ >= CHUNK_HEADER_SIZE + 10); in ParseLossyHeader()
506 size_t data_size = chunk_data->size_ - CHUNK_HEADER_SIZE; in ParseLosslessHeader()
542 size_t data_size = chunk_data->size_ - CHUNK_HEADER_SIZE; in ParseAlphaHeader()
585 const size_t min_size = RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE; in ParseRIFFHeader()
593 memcmp(GetBuffer(mem) + CHUNK_HEADER_SIZE, "WEBP", CHUNK_SIZE_BYTES)) { in ParseRIFFHeader()
598 if (riff_size < CHUNK_HEADER_SIZE) { in ParseRIFFHeader()
606 riff_size += CHUNK_HEADER_SIZE; in ParseRIFFHeader()
626 if (MemDataSize(mem) < CHUNK_HEADER_SIZE) { in ParseChunk()
634 const size_t chunk_size = CHUNK_HEADER_SIZE + payload_size_padded; in ParseChunk()
[all …]
/third_party/skia/third_party/externals/libwebp/src/webp/
Dformat_constants.h71 #define CHUNK_HEADER_SIZE 8 // Size of a chunk header. macro
85 #define MAX_CHUNK_PAYLOAD (~0U - CHUNK_HEADER_SIZE - 1)
/third_party/ffmpeg/libavcodec/
Dcinepakenc.c52 #define CHUNK_HEADER_SIZE 4 macro
197 …strip_buf_size = STRIP_HEADER_SIZE + 3 * CHUNK_HEADER_SIZE + 2 * VECTOR_MAX * CODEBOOK_MAX + 4 * (… in cinepak_encode_init()
268 … int64_t ret = s->lambda * ((info->v1_size ? CHUNK_HEADER_SIZE + info->v1_size * entry_size : 0) + in calculate_mode_score()
269 … (info->v4_size ? CHUNK_HEADER_SIZE + info->v4_size * entry_size : 0) + in calculate_mode_score()
270 CHUNK_HEADER_SIZE) << 3; in calculate_mode_score()
378 AV_WB24(&buf[1], chunk_size + CHUNK_HEADER_SIZE); in write_chunk_header()
379 return CHUNK_HEADER_SIZE; in write_chunk_header()
580 ret += CHUNK_HEADER_SIZE; in encode_mode()
602 write_chunk_header(buf + header_ofs, 0x30, ret - header_ofs - CHUNK_HEADER_SIZE); in encode_mode()
608 ret += CHUNK_HEADER_SIZE; in encode_mode()
[all …]