#include <assert.h>
#include "src/mux/muxi.h"
#include "src/utils/utils.h"
static void MuxInit(WebPMux* const mux) { … }
WebPMux* WebPNewInternal(int version) { … }
static void DeleteAllImages(WebPMuxImage** const wpi_list) { … }
static void MuxRelease(WebPMux* const mux) { … }
void WebPMuxDelete(WebPMux* mux) { … }
#define SWITCH_ID_LIST …
static WebPMuxError MuxSet(WebPMux* const mux, uint32_t tag,
const WebPData* const data, int copy_data) { … }
#undef SWITCH_ID_LIST
static WebPMuxError CreateFrameData(
int width, int height, const WebPMuxFrameInfo* const info,
WebPData* const frame) { … }
static WebPMuxError GetImageData(const WebPData* const bitstream,
WebPData* const image, WebPData* const alpha,
int* const is_lossless) { … }
static WebPMuxError DeleteChunks(WebPChunk** chunk_list, uint32_t tag) { … }
static WebPMuxError MuxDeleteAllNamedData(WebPMux* const mux, uint32_t tag) { … }
WebPMuxError WebPMuxSetChunk(WebPMux* mux, const char fourcc[4],
const WebPData* chunk_data, int copy_data) { … }
static WebPMuxError AddDataToChunkList(
const WebPData* const data, int copy_data, uint32_t tag,
WebPChunk** chunk_list) { … }
static WebPMuxError SetAlphaAndImageChunks(
const WebPData* const bitstream, int copy_data, WebPMuxImage* const wpi) { … }
WebPMuxError WebPMuxSetImage(WebPMux* mux, const WebPData* bitstream,
int copy_data) { … }
WebPMuxError WebPMuxPushFrame(WebPMux* mux, const WebPMuxFrameInfo* info,
int copy_data) { … }
WebPMuxError WebPMuxSetAnimationParams(WebPMux* mux,
const WebPMuxAnimParams* params) { … }
WebPMuxError WebPMuxSetCanvasSize(WebPMux* mux,
int width, int height) { … }
WebPMuxError WebPMuxDeleteChunk(WebPMux* mux, const char fourcc[4]) { … }
WebPMuxError WebPMuxDeleteFrame(WebPMux* mux, uint32_t nth) { … }
static WebPMuxError GetFrameInfo(
const WebPChunk* const frame_chunk,
int* const x_offset, int* const y_offset, int* const duration) { … }
static WebPMuxError GetImageInfo(const WebPMuxImage* const wpi,
int* const x_offset, int* const y_offset,
int* const duration,
int* const width, int* const height) { … }
static WebPMuxError GetAdjustedCanvasSize(const WebPMux* const mux,
int* const width, int* const height) { … }
static WebPMuxError CreateVP8XChunk(WebPMux* const mux) { … }
static WebPMuxError MuxCleanup(WebPMux* const mux) { … }
static size_t ImageListDiskSize(const WebPMuxImage* wpi_list) { … }
static uint8_t* ImageListEmit(const WebPMuxImage* wpi_list, uint8_t* dst) { … }
WebPMuxError WebPMuxAssemble(WebPMux* mux, WebPData* assembled_data) { … }