Home | History | Annotate | Download | only in webp

Lines Matching refs:mux

27 // Mux API
36 WebPMux* mux = WebPMuxNew();
38 WebPMuxSetImage(mux, &image, copy_data);
40 WebPMuxSetChunk(mux, "ICCP", &icc_profile, copy_data);
42 WebPMuxSetChunk(mux, "XMP ", &xmp, copy_data);
43 // Get data from mux in WebP RIFF format.
44 WebPMuxAssemble(mux, &output_data);
45 WebPMuxDelete(mux);
54 WebPMux* mux = WebPMuxCreate(&data, copy_data);
55 WebPMuxGetFrame(mux, 1, &image);
57 WebPMuxGetChunk(mux, "ICCP", &icc_profile);
59 WebPMuxDelete(mux);
99 // Returns the version number of the mux library, packed in hexadecimal using
104 // Life of a Mux object
109 // Creates an empty mux object.
111 // A pointer to the newly created empty mux object.
117 // Deletes the mux object.
119 // mux - (in/out) object to be deleted
120 WEBP_EXTERN void WebPMuxDelete(WebPMux* mux);
123 // Mux creation.
128 // Creates a mux object from raw data given in WebP RIFF format.
131 // copy_data - (in) value 1 indicates given data WILL be copied to the mux
134 // A pointer to the mux object created from given data - on success.
149 // Adds a chunk with id 'fourcc' and data 'chunk_data' in the mux object.
152 // mux - (in/out) object to which the chunk is to be added
156 // copy_data - (in) value 1 indicates given data WILL be copied to the mux
159 // WEBP_MUX_INVALID_ARGUMENT - if mux, fourcc or chunk_data is NULL
164 WebPMux* mux, const char fourcc[4], const WebPData* chunk_data,
167 // Gets a reference to the data of the chunk with id 'fourcc' in the mux object.
170 // mux - (in) object from which the chunk data is to be fetched
175 // WEBP_MUX_INVALID_ARGUMENT - if mux, fourcc or chunk_data is NULL
177 // WEBP_MUX_NOT_FOUND - If mux does not contain a chunk with the given id.
180 const WebPMux* mux, const char fourcc[4], WebPData* chunk_data);
182 // Deletes the chunk with the given 'fourcc' from the mux object.
184 // mux - (in/out) object from which the chunk is to be deleted
188 // WEBP_MUX_INVALID_ARGUMENT - if mux or fourcc is NULL
190 // WEBP_MUX_NOT_FOUND - If mux does not contain a chunk with the given fourcc.
193 WebPMux* mux, const char fourcc[4]);
213 // Sets the (non-animated) image in the mux object.
216 // mux - (in/out) object in which the image is to be set
219 // copy_data - (in) value 1 indicates given data WILL be copied to the mux
222 // WEBP_MUX_INVALID_ARGUMENT - if mux is NULL or bitstream is NULL.
226 WebPMux* mux, const WebPData* bitstream, int copy_data);
228 // Adds a frame at the end of the mux object.
231 // (3) Type of frame being pushed must be same as the frames in mux.
235 // mux - (in/out) object to which the frame is to be added
237 // copy_data - (in) value 1 indicates given data WILL be copied to the mux
240 // WEBP_MUX_INVALID_ARGUMENT - if mux or frame is NULL
245 WebPMux* mux, const WebPMuxFrameInfo* frame, int copy_data);
247 // Gets the nth frame from the mux object.
249 // owned by the 'mux' object. It MUST be deallocated by the caller by calling
253 // mux - (in) object from which the info is to be fetched
254 // nth - (in) index of the frame in the mux object
257 // WEBP_MUX_INVALID_ARGUMENT - if mux or frame is NULL.
258 // WEBP_MUX_NOT_FOUND - if there are less than nth frames in the mux object.
259 // WEBP_MUX_BAD_DATA - if nth frame chunk in mux is invalid.
263 const WebPMux* mux, uint32_t nth, WebPMuxFrameInfo* frame);
265 // Deletes a frame from the mux object.
268 // mux - (in/out) object from which a frame is to be deleted
271 // WEBP_MUX_INVALID_ARGUMENT - if mux is NULL.
272 // WEBP_MUX_NOT_FOUND - If there are less than nth frames in the mux object
275 WEBP_EXTERN WebPMuxError WebPMuxDeleteFrame(WebPMux* mux, uint32_t nth);
290 // Sets the animation parameters in the mux object. Any existing ANIM chunks
293 // mux - (in/out) object in which ANIM chunk is to be set/added
296 // WEBP_MUX_INVALID_ARGUMENT - if mux or params is NULL.
300 WebPMux* mux, const WebPMuxAnimParams* params);
302 // Gets the animation parameters from the mux object.
304 // mux - (in) object from which the animation parameters to be fetched
307 // WEBP_MUX_INVALID_ARGUMENT - if mux or params is NULL.
308 // WEBP_MUX_NOT_FOUND - if ANIM chunk is not present in mux object.
311 const WebPMux* mux, WebPMuxAnimParams* params);
316 // Sets the canvas size for the mux object. The width and height can be
324 // mux - (in) object to which the canvas size is to be set
328 // WEBP_MUX_INVALID_ARGUMENT - if mux is NULL; or
331 WEBP_EXTERN WebPMuxError WebPMuxSetCanvasSize(WebPMux* mux,
334 // Gets the canvas size from the mux object.
336 // That is, the mux object hasn't been modified since the last call to
339 // mux - (in) object from which the canvas size is to be fetched
343 // WEBP_MUX_INVALID_ARGUMENT - if mux, width or height is NULL.
346 WEBP_EXTERN WebPMuxError WebPMuxGetCanvasSize(const WebPMux* mux,
349 // Gets the feature flags from the mux object.
351 // That is, the mux object hasn't been modified since the last call to
354 // mux - (in) object from which the features are to be fetched
356 // mux object. This will be an OR of various flag values.
359 // WEBP_MUX_INVALID_ARGUMENT - if mux or flags is NULL.
362 WEBP_EXTERN WebPMuxError WebPMuxGetFeatures(const WebPMux* mux,
365 // Gets number of chunks with the given 'id' in the mux object.
367 // mux - (in) object from which the info is to be fetched
371 // WEBP_MUX_INVALID_ARGUMENT - if mux, or num_elements is NULL.
373 WEBP_EXTERN WebPMuxError WebPMuxNumChunks(const WebPMux* mux,
377 // This function also validates the mux object.
380 // owned by the 'mux' object. It MUST be deallocated by the caller by calling
384 // mux - (in/out) object whose chunks are to be assembled
387 // WEBP_MUX_BAD_DATA - if mux object is invalid.
388 // WEBP_MUX_INVALID_ARGUMENT - if mux or assembled_data is NULL.
391 WEBP_EXTERN WebPMuxError WebPMuxAssemble(WebPMux* mux,
414 // Write the 'webp_data' to a file, or re-mux it further.