#include <assert.h>
#include "src/mux/muxi.h"
#include "src/utils/utils.h"
#define SWITCH_ID_LIST …
static WebPMuxError MuxGet(const WebPMux* const mux, CHUNK_INDEX idx,
uint32_t nth, WebPData* const data) { … }
#undef SWITCH_ID_LIST
static WebPMuxError ChunkVerifyAndAssign(WebPChunk* chunk,
const uint8_t* data, size_t data_size,
size_t riff_size, int copy_data) { … }
int MuxImageFinalize(WebPMuxImage* const wpi) { … }
static int MuxImageParse(const WebPChunk* const chunk, int copy_data,
WebPMuxImage* const wpi) { … }
WebPMux* WebPMuxCreateInternal(const WebPData* bitstream, int copy_data,
int version) { … }
static WebPMuxError ValidateForSingleImage(const WebPMux* const mux) { … }
static WebPMuxError MuxGetCanvasInfo(const WebPMux* const mux,
int* width, int* height, uint32_t* flags) { … }
WebPMuxError WebPMuxGetCanvasSize(const WebPMux* mux, int* width, int* height) { … }
WebPMuxError WebPMuxGetFeatures(const WebPMux* mux, uint32_t* flags) { … }
static uint8_t* EmitVP8XChunk(uint8_t* const dst, int width,
int height, uint32_t flags) { … }
static WebPMuxError SynthesizeBitstream(const WebPMuxImage* const wpi,
WebPData* const bitstream) { … }
WebPMuxError WebPMuxGetChunk(const WebPMux* mux, const char fourcc[4],
WebPData* chunk_data) { … }
static WebPMuxError MuxGetImageInternal(const WebPMuxImage* const wpi,
WebPMuxFrameInfo* const info) { … }
static WebPMuxError MuxGetFrameInternal(const WebPMuxImage* const wpi,
WebPMuxFrameInfo* const frame) { … }
WebPMuxError WebPMuxGetFrame(
const WebPMux* mux, uint32_t nth, WebPMuxFrameInfo* frame) { … }
WebPMuxError WebPMuxGetAnimationParams(const WebPMux* mux,
WebPMuxAnimParams* params) { … }
static CHUNK_INDEX ChunkGetIndexFromId(WebPChunkId id) { … }
static int CountChunks(const WebPChunk* const chunk_list, uint32_t tag) { … }
WebPMuxError WebPMuxNumChunks(const WebPMux* mux,
WebPChunkId id, int* num_elements) { … }