Home | History | Annotate | Download | only in mux

Lines Matching defs:wpi

164     const WebPMuxImage* wpi;
167 wpi = mux->images_;
168 assert(wpi != NULL && wpi->img_ != NULL);
169 *image = wpi->img_->data_;
170 if (wpi->alpha_ != NULL) {
171 *alpha = wpi->alpha_->data_;
247 // Extracts image & alpha data from the given bitstream and then sets wpi.alpha_
248 // and wpi.img_ appropriately.
250 const WebPData* const bitstream, int copy_data, WebPMuxImage* const wpi) {
259 &wpi->alpha_);
262 return AddDataToChunkList(&image, copy_data, image_tag, &wpi->img_);
267 WebPMuxImage wpi;
281 MuxImageInit(&wpi);
282 err = SetAlphaAndImageChunks(bitstream, copy_data, &wpi);
286 err = MuxImagePush(&wpi, &mux->images_);
293 MuxImageRelease(&wpi);
299 WebPMuxImage wpi;
330 MuxImageInit(&wpi);
331 err = SetAlphaAndImageChunks(bitstream, copy_data, &wpi);
333 assert(wpi.img_ != NULL); // As SetAlphaAndImageChunks() was successful.
336 const int is_lossless = (wpi.img_->tag_ == kChunks[IDX_VP8L].tag);
351 err = CreateFrameFragmentData(&wpi.img_->data_, x_offset, y_offset,
356 err = AddDataToChunkList(&frame_frgm, 1, tag, &wpi.header_);
357 WebPDataClear(&frame_frgm); // frame_frgm owned by wpi.header_ now.
362 err = MuxImagePush(&wpi, &mux->images_);
369 MuxImageRelease(&wpi);
447 static WebPMuxError GetImageInfo(const WebPMuxImage* const wpi,
451 const WebPChunk* const image_chunk = wpi->img_;
452 const WebPChunk* const frame_frgm_chunk = wpi->header_;
466 WebPMuxImage* wpi = NULL;
470 wpi = mux->images_;
471 assert(wpi != NULL);
472 assert(wpi->img_ != NULL);
474 if (wpi->next_) {
479 for (; wpi != NULL; wpi = wpi->next_) {
481 const WebPMuxError err = GetImageInfo(wpi, &x_offset, &y_offset,
507 const WebPChunk* const image_chunk = wpi->img_;