Lines Matching refs:wpi
138 const WebPMuxImage* wpi; in GetImageData() local
141 wpi = mux->images_; in GetImageData()
142 assert(wpi != NULL && wpi->img_ != NULL); in GetImageData()
143 *image = wpi->img_->data_; in GetImageData()
144 if (wpi->alpha_ != NULL) { in GetImageData()
145 *alpha = wpi->alpha_->data_; in GetImageData()
216 const WebPData* const bitstream, int copy_data, WebPMuxImage* const wpi) { in SetAlphaAndImageChunks() argument
225 &wpi->alpha_); in SetAlphaAndImageChunks()
228 err = AddDataToChunkList(&image, copy_data, image_tag, &wpi->img_); in SetAlphaAndImageChunks()
230 return MuxImageFinalize(wpi) ? WEBP_MUX_OK : WEBP_MUX_INVALID_ARGUMENT; in SetAlphaAndImageChunks()
235 WebPMuxImage wpi; in WebPMuxSetImage() local
249 MuxImageInit(&wpi); in WebPMuxSetImage()
250 err = SetAlphaAndImageChunks(bitstream, copy_data, &wpi); in WebPMuxSetImage()
254 err = MuxImagePush(&wpi, &mux->images_); in WebPMuxSetImage()
261 MuxImageRelease(&wpi); in WebPMuxSetImage()
267 WebPMuxImage wpi; in WebPMuxPushFrame() local
289 MuxImageInit(&wpi); in WebPMuxPushFrame()
290 err = SetAlphaAndImageChunks(&info->bitstream, copy_data, &wpi); in WebPMuxPushFrame()
292 assert(wpi.img_ != NULL); // As SetAlphaAndImageChunks() was successful. in WebPMuxPushFrame()
307 err = CreateFrameData(wpi.width_, wpi.height_, &tmp, &frame); in WebPMuxPushFrame()
310 err = AddDataToChunkList(&frame, 1, tag, &wpi.header_); in WebPMuxPushFrame()
316 err = MuxImagePush(&wpi, &mux->images_); in WebPMuxPushFrame()
323 MuxImageRelease(&wpi); in WebPMuxPushFrame()
405 static WebPMuxError GetImageInfo(const WebPMuxImage* const wpi, in GetImageInfo() argument
409 const WebPChunk* const frame_chunk = wpi->header_; in GetImageInfo()
411 assert(wpi != NULL); in GetImageInfo()
419 if (width != NULL) *width = wpi->width_; in GetImageInfo()
420 if (height != NULL) *height = wpi->height_; in GetImageInfo()
427 WebPMuxImage* wpi = NULL; in GetAdjustedCanvasSize() local
431 wpi = mux->images_; in GetAdjustedCanvasSize()
432 assert(wpi != NULL); in GetAdjustedCanvasSize()
433 assert(wpi->img_ != NULL); in GetAdjustedCanvasSize()
435 if (wpi->next_ != NULL) { in GetAdjustedCanvasSize()
438 assert(wpi->header_ != NULL); in GetAdjustedCanvasSize()
440 for (; wpi != NULL; wpi = wpi->next_) { in GetAdjustedCanvasSize()
442 const WebPMuxError err = GetImageInfo(wpi, &x_offset, &y_offset, in GetAdjustedCanvasSize()
457 *width = wpi->width_; in GetAdjustedCanvasSize()
458 *height = wpi->height_; in GetAdjustedCanvasSize()