• Home
  • Raw
  • Download

Lines Matching refs:mux

39 static WebPMuxError MuxGet(const WebPMux* const mux, CHUNK_INDEX idx,  in MuxGet()  argument
41 assert(mux != NULL); in MuxGet()
45 SWITCH_ID_LIST(IDX_VP8X, mux->vp8x_); in MuxGet()
46 SWITCH_ID_LIST(IDX_ICCP, mux->iccp_); in MuxGet()
47 SWITCH_ID_LIST(IDX_ANIM, mux->anim_); in MuxGet()
48 SWITCH_ID_LIST(IDX_EXIF, mux->exif_); in MuxGet()
49 SWITCH_ID_LIST(IDX_XMP, mux->xmp_); in MuxGet()
50 SWITCH_ID_LIST(IDX_UNKNOWN, mux->unknown_); in MuxGet()
150 WebPMux* mux = NULL; in WebPMuxCreateInternal() local
173 mux = WebPMuxNew(); in WebPMuxCreateInternal()
174 if (mux == NULL) return NULL; in WebPMuxCreateInternal()
224 if (MuxImagePush(wpi, &mux->images_) != WEBP_MUX_OK) goto Err; in WebPMuxCreateInternal()
239 chunk_list = MuxGetChunkListFromId(mux, id); // List to add this chunk. in WebPMuxCreateInternal()
240 if (chunk_list == NULL) chunk_list = &mux->unknown_; in WebPMuxCreateInternal()
250 if (MuxValidate(mux) != WEBP_MUX_OK) goto Err; in WebPMuxCreateInternal()
253 return mux; // All OK; in WebPMuxCreateInternal()
258 WebPMuxDelete(mux); in WebPMuxCreateInternal()
265 WebPMuxError WebPMuxGetFeatures(const WebPMux* mux, uint32_t* flags) { in WebPMuxGetFeatures() argument
268 if (mux == NULL || flags == NULL) return WEBP_MUX_INVALID_ARGUMENT; in WebPMuxGetFeatures()
272 if (MuxGet(mux, IDX_VP8X, 1, &data) == WEBP_MUX_OK) { in WebPMuxGetFeatures()
276 WebPMuxError err = MuxValidateForImage(mux); // Check for single image. in WebPMuxGetFeatures()
278 if (MuxHasLosslessImages(mux->images_)) { in WebPMuxGetFeatures()
279 const WebPData* const vp8l_data = &mux->images_->img_->data_; in WebPMuxGetFeatures()
349 WebPMuxError WebPMuxGetChunk(const WebPMux* mux, const char fourcc[4], in WebPMuxGetChunk() argument
352 if (mux == NULL || fourcc == NULL || chunk_data == NULL) { in WebPMuxGetChunk()
359 return MuxGet(mux, idx, 1, chunk_data); in WebPMuxGetChunk()
362 ChunkSearchList(mux->unknown_, 1, ChunkGetTagFromFourCC(fourcc)); in WebPMuxGetChunk()
404 const WebPMux* mux, uint32_t nth, WebPMuxFrameInfo* frame) { in WebPMuxGetFrame() argument
409 if (mux == NULL || frame == NULL) { in WebPMuxGetFrame()
414 err = MuxImageGetNth((const WebPMuxImage**)&mux->images_, nth, &wpi); in WebPMuxGetFrame()
425 WebPMuxError WebPMuxGetAnimationParams(const WebPMux* mux, in WebPMuxGetAnimationParams() argument
430 if (mux == NULL || params == NULL) return WEBP_MUX_INVALID_ARGUMENT; in WebPMuxGetAnimationParams()
432 err = MuxGet(mux, IDX_ANIM, 1, &anim); in WebPMuxGetAnimationParams()
463 WebPMuxError WebPMuxNumChunks(const WebPMux* mux, in WebPMuxNumChunks() argument
465 if (mux == NULL || num_elements == NULL) { in WebPMuxNumChunks()
470 *num_elements = MuxImageCount(mux->images_, id); in WebPMuxNumChunks()
472 WebPChunk* const* chunk_list = MuxGetChunkListFromId(mux, id); in WebPMuxNumChunks()