Lines Matching refs:mux
435 WebPChunk** MuxGetChunkListFromId(const WebPMux* mux, WebPChunkId id) { in MuxGetChunkListFromId() argument
436 assert(mux != NULL); in MuxGetChunkListFromId()
438 case WEBP_CHUNK_VP8X: return (WebPChunk**)&mux->vp8x_; in MuxGetChunkListFromId()
439 case WEBP_CHUNK_ICCP: return (WebPChunk**)&mux->iccp_; in MuxGetChunkListFromId()
440 case WEBP_CHUNK_ANIM: return (WebPChunk**)&mux->anim_; in MuxGetChunkListFromId()
441 case WEBP_CHUNK_EXIF: return (WebPChunk**)&mux->exif_; in MuxGetChunkListFromId()
442 case WEBP_CHUNK_XMP: return (WebPChunk**)&mux->xmp_; in MuxGetChunkListFromId()
443 case WEBP_CHUNK_UNKNOWN: return (WebPChunk**)&mux->unknown_; in MuxGetChunkListFromId()
448 WebPMuxError MuxValidateForImage(const WebPMux* const mux) { in MuxValidateForImage() argument
449 const int num_images = MuxImageCount(mux->images_, WEBP_CHUNK_IMAGE); in MuxValidateForImage()
450 const int num_frames = MuxImageCount(mux->images_, WEBP_CHUNK_ANMF); in MuxValidateForImage()
451 const int num_fragments = MuxImageCount(mux->images_, WEBP_CHUNK_FRGM); in MuxValidateForImage()
475 static WebPMuxError ValidateChunk(const WebPMux* const mux, CHUNK_INDEX idx, in ValidateChunk() argument
480 WebPMuxNumChunks(mux, kChunks[idx].id, num); in ValidateChunk()
489 WebPMuxError MuxValidate(const WebPMux* const mux) { in MuxValidate() argument
503 if (mux == NULL) return WEBP_MUX_INVALID_ARGUMENT; in MuxValidate()
506 if (mux->images_ == NULL) return WEBP_MUX_INVALID_ARGUMENT; in MuxValidate()
508 err = WebPMuxGetFeatures(mux, &flags); in MuxValidate()
512 err = ValidateChunk(mux, IDX_ICCP, ICCP_FLAG, flags, 1, &num_iccp); in MuxValidate()
516 err = ValidateChunk(mux, IDX_EXIF, EXIF_FLAG, flags, 1, &num_exif); in MuxValidate()
520 err = ValidateChunk(mux, IDX_XMP, XMP_FLAG, flags, 1, &num_xmp); in MuxValidate()
525 err = ValidateChunk(mux, IDX_ANIM, NO_FLAG, flags, 1, &num_anim); in MuxValidate()
527 err = ValidateChunk(mux, IDX_ANMF, NO_FLAG, flags, -1, &num_frames); in MuxValidate()
541 err = ValidateChunk(mux, IDX_FRGM, FRAGMENTS_FLAG, flags, -1, &num_fragments); in MuxValidate()
546 err = ValidateChunk(mux, IDX_VP8X, NO_FLAG, flags, 1, &num_vp8x); in MuxValidate()
548 err = ValidateChunk(mux, IDX_VP8, NO_FLAG, flags, -1, &num_images); in MuxValidate()
553 if (MuxHasLosslessImages(mux->images_)) { in MuxValidate()
559 err = ValidateChunk(mux, IDX_ALPHA, ALPHA_FLAG, flags, -1, &num_alpha); in MuxValidate()