Lines Matching refs:data_size
116 idec->io_.data_size = MemDataSize(mem); in DoRemap()
165 const uint8_t* const data, size_t data_size) { in AppendToMemBuffer() argument
173 if (data_size > MAX_CHUNK_PAYLOAD) { in AppendToMemBuffer()
179 if (mem->end_ + data_size > mem->buf_size_) { // Need some free memory in AppendToMemBuffer()
182 const uint64_t new_size = (uint64_t)current_size + data_size; in AppendToMemBuffer()
195 memcpy(mem->buf_ + mem->end_, data, data_size); in AppendToMemBuffer()
196 mem->end_ += data_size; in AppendToMemBuffer()
204 const uint8_t* const data, size_t data_size) { in RemapMemBuffer() argument
210 if (data_size < mem->buf_size_) return 0; // can't remap to a shorter buffer! in RemapMemBuffer()
213 mem->end_ = mem->buf_size_ = data_size; in RemapMemBuffer()
295 idec->io_.data_size = MemDataSize(mem); in ChangeState()
307 headers.data_size = curr_size; in DecodeWebPHeaders()
356 idec->io_.data_size = curr_size; in DecodeVP8FrameHeader()
603 WebPIDecoder* WebPIDecode(const uint8_t* data, size_t data_size, in WebPIDecode() argument
608 if (data != NULL && data_size > 0 && config != NULL) { in WebPIDecode()
609 if (WebPGetFeatures(data, data_size, &config->input) != VP8_STATUS_OK) { in WebPIDecode()
736 const uint8_t* data, size_t data_size) { in WebPIAppend() argument
750 if (!AppendToMemBuffer(idec, data, data_size)) { in WebPIAppend()
757 const uint8_t* data, size_t data_size) { in WebPIUpdate() argument
771 if (!RemapMemBuffer(idec, data, data_size)) { in WebPIUpdate()