Home | History | Annotate | Download | only in mux

Lines Matching defs:bitstream

125 // Outputs image data given a bitstream. The bitstream can either be a
127 // Also outputs 'is_lossless' to be true if the given bitstream is lossless.
128 static WebPMuxError GetImageData(const WebPData* const bitstream,
132 if (bitstream->size < TAG_SIZE ||
133 memcmp(bitstream->bytes, "RIFF", TAG_SIZE)) {
135 *image = *bitstream;
139 WebPMux* const mux = WebPMuxCreate(bitstream, 0);
213 // Extracts image & alpha data from the given bitstream and then sets wpi.alpha_
216 const WebPData* const bitstream, int copy_data, WebPMuxImage* const wpi) {
219 WebPMuxError err = GetImageData(bitstream, &image, &alpha, &is_lossless);
233 WebPMuxError WebPMuxSetImage(WebPMux* mux, const WebPData* bitstream,
239 if (mux == NULL || bitstream == NULL || bitstream->bytes == NULL ||
240 bitstream->size > MAX_CHUNK_PAYLOAD) {
250 err = SetAlphaAndImageChunks(bitstream, copy_data, &wpi);
269 const WebPData* const bitstream = &info->bitstream;
276 if (bitstream->bytes == NULL || bitstream->size > MAX_CHUNK_PAYLOAD) {
290 err = SetAlphaAndImageChunks(bitstream, copy_data, &wpi);