Home | History | Annotate | Download | only in mux

Lines Matching defs:bitstream

151 // Outputs image data given a bitstream. The bitstream can either be a
153 // Also outputs 'is_lossless' to be true if the given bitstream is lossless.
154 static WebPMuxError GetImageData(const WebPData* const bitstream,
158 if (bitstream->size < TAG_SIZE ||
159 memcmp(bitstream->bytes, "RIFF", TAG_SIZE)) {
161 *image = *bitstream;
165 WebPMux* const mux = WebPMuxCreate(bitstream, 0);
247 // Extracts image & alpha data from the given bitstream and then sets wpi.alpha_
250 const WebPData* const bitstream, int copy_data, WebPMuxImage* const wpi) {
253 WebPMuxError err = GetImageData(bitstream, &image, &alpha, &is_lossless);
265 WebPMuxError WebPMuxSetImage(WebPMux* mux, const WebPData* bitstream,
271 if (mux == NULL || bitstream == NULL || bitstream->bytes == NULL ||
272 bitstream->size > MAX_CHUNK_PAYLOAD) {
282 err = SetAlphaAndImageChunks(bitstream, copy_data, &wpi);
302 const WebPData* const bitstream = &frame->bitstream;
317 if (bitstream->bytes == NULL || bitstream->size > MAX_CHUNK_PAYLOAD) {
331 err = SetAlphaAndImageChunks(bitstream, copy_data, &wpi);