Lines Matching refs:data_size

55                                size_t* const data_size, int have_all_data,  in ParseRIFF()  argument
58 assert(data_size != NULL); in ParseRIFF()
62 if (*data_size >= RIFF_HEADER_SIZE && !memcmp(*data, "RIFF", TAG_SIZE)) { in ParseRIFF()
74 if (have_all_data && (size > *data_size - CHUNK_HEADER_SIZE)) { in ParseRIFF()
80 *data_size -= RIFF_HEADER_SIZE; in ParseRIFF()
94 size_t* const data_size, in ParseVP8X() argument
100 assert(data_size != NULL); in ParseVP8X()
105 if (*data_size < CHUNK_HEADER_SIZE) { in ParseVP8X()
118 if (*data_size < vp8x_size) { in ParseVP8X()
133 *data_size -= vp8x_size; in ParseVP8X()
147 size_t* const data_size, in ParseOptionalChunks() argument
157 assert(data_size != NULL); in ParseOptionalChunks()
159 buf_size = *data_size; in ParseOptionalChunks()
171 *data_size = buf_size; in ParseOptionalChunks()
223 size_t* const data_size, int have_all_data, in ParseVP8Header() argument
233 assert(data_size != NULL); in ParseVP8Header()
237 if (*data_size < CHUNK_HEADER_SIZE) { in ParseVP8Header()
247 if (have_all_data && (size > *data_size - CHUNK_HEADER_SIZE)) { in ParseVP8Header()
253 *data_size -= CHUNK_HEADER_SIZE; in ParseVP8Header()
257 *is_lossless = VP8LCheckSignature(data, *data_size); in ParseVP8Header()
258 *chunk_size = *data_size; in ParseVP8Header()
278 size_t data_size, in ParseHeadersInternal() argument
298 if (data == NULL || data_size < RIFF_HEADER_SIZE) { in ParseHeadersInternal()
303 hdrs.data_size = data_size; in ParseHeadersInternal()
306 status = ParseRIFF(&data, &data_size, have_all_data, &hdrs.riff_size); in ParseHeadersInternal()
315 status = ParseVP8X(&data, &data_size, &found_vp8x, in ParseHeadersInternal()
340 if (data_size < TAG_SIZE) { in ParseHeadersInternal()
348 status = ParseOptionalChunks(&data, &data_size, hdrs.riff_size, in ParseHeadersInternal()
356 status = ParseVP8Header(&data, &data_size, have_all_data, hdrs.riff_size, in ParseHeadersInternal()
370 if (data_size < VP8_FRAME_HEADER_SIZE) { in ParseHeadersInternal()
375 if (!VP8GetInfo(data, data_size, (uint32_t)hdrs.compressed_size, in ParseHeadersInternal()
380 if (data_size < VP8L_FRAME_HEADER_SIZE) { in ParseHeadersInternal()
385 if (!VP8LGetInfo(data, data_size, &image_width, &image_height, has_alpha)) { in ParseHeadersInternal()
399 assert(headers->offset == headers->data_size - data_size); in ParseHeadersInternal()
423 status = ParseHeadersInternal(headers->data, headers->data_size, in WebPParseHeaders()
448 static VP8StatusCode DecodeInto(const uint8_t* const data, size_t data_size, in DecodeInto() argument
455 headers.data_size = data_size; in DecodeInto()
465 io.data_size = headers.data_size - headers.offset; in DecodeInto()
527 size_t data_size, in DecodeIntoRGBABuffer() argument
543 if (DecodeInto(data, data_size, &params) != VP8_STATUS_OK) { in DecodeIntoRGBABuffer()
549 uint8_t* WebPDecodeRGBInto(const uint8_t* data, size_t data_size, in WebPDecodeRGBInto() argument
551 return DecodeIntoRGBABuffer(MODE_RGB, data, data_size, output, stride, size); in WebPDecodeRGBInto()
554 uint8_t* WebPDecodeRGBAInto(const uint8_t* data, size_t data_size, in WebPDecodeRGBAInto() argument
556 return DecodeIntoRGBABuffer(MODE_RGBA, data, data_size, output, stride, size); in WebPDecodeRGBAInto()
559 uint8_t* WebPDecodeARGBInto(const uint8_t* data, size_t data_size, in WebPDecodeARGBInto() argument
561 return DecodeIntoRGBABuffer(MODE_ARGB, data, data_size, output, stride, size); in WebPDecodeARGBInto()
564 uint8_t* WebPDecodeBGRInto(const uint8_t* data, size_t data_size, in WebPDecodeBGRInto() argument
566 return DecodeIntoRGBABuffer(MODE_BGR, data, data_size, output, stride, size); in WebPDecodeBGRInto()
569 uint8_t* WebPDecodeBGRAInto(const uint8_t* data, size_t data_size, in WebPDecodeBGRAInto() argument
571 return DecodeIntoRGBABuffer(MODE_BGRA, data, data_size, output, stride, size); in WebPDecodeBGRAInto()
574 uint8_t* WebPDecodeYUVInto(const uint8_t* data, size_t data_size, in WebPDecodeYUVInto() argument
595 if (DecodeInto(data, data_size, &params) != VP8_STATUS_OK) { in WebPDecodeYUVInto()
604 size_t data_size, int* const width, int* const height, in Decode() argument
615 if (!WebPGetInfo(data, data_size, &output.width, &output.height)) { in Decode()
622 if (DecodeInto(data, data_size, &params) != VP8_STATUS_OK) { in Decode()
632 uint8_t* WebPDecodeRGB(const uint8_t* data, size_t data_size, in WebPDecodeRGB() argument
634 return Decode(MODE_RGB, data, data_size, width, height, NULL); in WebPDecodeRGB()
637 uint8_t* WebPDecodeRGBA(const uint8_t* data, size_t data_size, in WebPDecodeRGBA() argument
639 return Decode(MODE_RGBA, data, data_size, width, height, NULL); in WebPDecodeRGBA()
642 uint8_t* WebPDecodeARGB(const uint8_t* data, size_t data_size, in WebPDecodeARGB() argument
644 return Decode(MODE_ARGB, data, data_size, width, height, NULL); in WebPDecodeARGB()
647 uint8_t* WebPDecodeBGR(const uint8_t* data, size_t data_size, in WebPDecodeBGR() argument
649 return Decode(MODE_BGR, data, data_size, width, height, NULL); in WebPDecodeBGR()
652 uint8_t* WebPDecodeBGRA(const uint8_t* data, size_t data_size, in WebPDecodeBGRA() argument
654 return Decode(MODE_BGRA, data, data_size, width, height, NULL); in WebPDecodeBGRA()
657 uint8_t* WebPDecodeYUV(const uint8_t* data, size_t data_size, in WebPDecodeYUV() argument
661 uint8_t* const out = Decode(MODE_YUV, data, data_size, in WebPDecodeYUV()
680 static VP8StatusCode GetFeatures(const uint8_t* const data, size_t data_size, in GetFeatures() argument
688 return ParseHeadersInternal(data, data_size, in GetFeatures()
697 int WebPGetInfo(const uint8_t* data, size_t data_size, in WebPGetInfo() argument
701 if (GetFeatures(data, data_size, &features) != VP8_STATUS_OK) { in WebPGetInfo()
732 VP8StatusCode WebPGetFeaturesInternal(const uint8_t* data, size_t data_size, in WebPGetFeaturesInternal() argument
741 return GetFeatures(data, data_size, features); in WebPGetFeaturesInternal()
744 VP8StatusCode WebPDecode(const uint8_t* data, size_t data_size, in WebPDecode() argument
753 status = GetFeatures(data, data_size, &config->input); in WebPDecode()
764 status = DecodeInto(data, data_size, &params); in WebPDecode()