Lines Matching refs:data_size
62 size_t* const data_size, int have_all_data,
65 assert(data_size != NULL);
69 if (*data_size >= RIFF_HEADER_SIZE && !memcmp(*data, "RIFF", TAG_SIZE)) {
81 if (have_all_data && (size > *data_size - CHUNK_HEADER_SIZE)) {
87 *data_size -= RIFF_HEADER_SIZE;
101 size_t* const data_size,
107 assert(data_size != NULL);
112 if (*data_size < CHUNK_HEADER_SIZE) {
125 if (*data_size < vp8x_size) {
140 *data_size -= vp8x_size;
154 size_t* const data_size,
164 assert(data_size != NULL);
166 buf_size = *data_size;
178 *data_size = buf_size;
230 size_t* const data_size, int have_all_data,
240 assert(data_size != NULL);
244 if (*data_size < CHUNK_HEADER_SIZE) {
254 if (have_all_data && (size > *data_size - CHUNK_HEADER_SIZE)) {
260 *data_size -= CHUNK_HEADER_SIZE;
264 *is_lossless = VP8LCheckSignature(data, *data_size);
265 *chunk_size = *data_size;
285 size_t data_size,
305 if (data == NULL || data_size < RIFF_HEADER_SIZE) {
310 hdrs.data_size = data_size;
313 status = ParseRIFF(&data, &data_size, have_all_data, &hdrs.riff_size);
322 status = ParseVP8X(&data, &data_size, &found_vp8x,
347 if (data_size < TAG_SIZE) {
355 status = ParseOptionalChunks(&data, &data_size, hdrs.riff_size,
363 status = ParseVP8Header(&data, &data_size, have_all_data, hdrs.riff_size,
377 if (data_size < VP8_FRAME_HEADER_SIZE) {
382 if (!VP8GetInfo(data, data_size, (uint32_t)hdrs.compressed_size,
387 if (data_size < VP8L_FRAME_HEADER_SIZE) {
392 if (!VP8LGetInfo(data, data_size, &image_width, &image_height, has_alpha)) {
406 assert(headers->offset == headers->data_size - data_size);
429 data_size,
454 static VP8StatusCode DecodeInto(const uint8_t* const data, size_t data_size,
461 headers.data_size = data_size;
471 io.data_size = headers.data_size - headers.offset;
535 size_t data_size,
551 if (DecodeInto(data, data_size, ¶ms) != VP8_STATUS_OK) {
557 uint8_t* WebPDecodeRGBInto(const uint8_t* data, size_t data_size,
559 return DecodeIntoRGBABuffer(MODE_RGB, data, data_size, output, stride, size);
562 uint8_t* WebPDecodeRGBAInto(const uint8_t* data, size_t data_size,
564 return DecodeIntoRGBABuffer(MODE_RGBA, data, data_size, output, stride, size);
567 uint8_t* WebPDecodeARGBInto(const uint8_t* data, size_t data_size,
569 return DecodeIntoRGBABuffer(MODE_ARGB, data, data_size, output, stride, size);
572 uint8_t* WebPDecodeBGRInto(const uint8_t* data, size_t data_size,
574 return DecodeIntoRGBABuffer(MODE_BGR, data, data_size, output, stride, size);
577 uint8_t* WebPDecodeBGRAInto(const uint8_t* data, size_t data_size,
579 return DecodeIntoRGBABuffer(MODE_BGRA, data, data_size, output, stride, size);
582 uint8_t* WebPDecodeYUVInto(const uint8_t* data, size_t data_size,
603 if (DecodeInto(data, data_size, ¶ms) != VP8_STATUS_OK) {
612 size_t data_size, int* const width, int* const height,
623 if (!WebPGetInfo(data, data_size, &output.width, &output.height)) {
630 if (DecodeInto(data, data_size, ¶ms) != VP8_STATUS_OK) {
640 uint8_t* WebPDecodeRGB(const uint8_t* data, size_t data_size,
642 return Decode(MODE_RGB, data, data_size, width, height, NULL);
645 uint8_t* WebPDecodeRGBA(const uint8_t* data, size_t data_size,
647 return Decode(MODE_RGBA, data, data_size, width, height, NULL);
650 uint8_t* WebPDecodeARGB(const uint8_t* data, size_t data_size,
652 return Decode(MODE_ARGB, data, data_size, width, height, NULL);
655 uint8_t* WebPDecodeBGR(const uint8_t* data, size_t data_size,
657 return Decode(MODE_BGR, data, data_size, width, height, NULL);
660 uint8_t* WebPDecodeBGRA(const uint8_t* data, size_t data_size,
662 return Decode(MODE_BGRA, data, data_size, width, height, NULL);
665 uint8_t* WebPDecodeYUV(const uint8_t* data, size_t data_size,
669 uint8_t* const out = Decode(MODE_YUV, data, data_size,
688 static VP8StatusCode GetFeatures(const uint8_t* const data, size_t data_size,
696 return ParseHeadersInternal(data, data_size,
705 int WebPGetInfo(const uint8_t* data, size_t data_size,
709 if (GetFeatures(data, data_size, &features) != VP8_STATUS_OK) {
740 VP8StatusCode WebPGetFeaturesInternal(const uint8_t* data, size_t data_size,
749 return GetFeatures(data, data_size, features);
752 VP8StatusCode WebPDecode(const uint8_t* data, size_t data_size,
761 status = GetFeatures(data, data_size, &config->input);
772 status = DecodeInto(data, data_size, ¶ms);