#include <assert.h>
#include <stdlib.h>
#include "src/dec/vp8i_dec.h"
#include "src/dec/webpi_dec.h"
#include "src/dsp/dsp.h"
#include "src/dsp/yuv.h"
#include "src/utils/utils.h"
static int EmitYUV(const VP8Io* const io, WebPDecParams* const p) { … }
static int EmitSampledRGB(const VP8Io* const io, WebPDecParams* const p) { … }
#ifdef FANCY_UPSAMPLING
static int EmitFancyRGB(const VP8Io* const io, WebPDecParams* const p) { … }
#endif
static void FillAlphaPlane(uint8_t* dst, int w, int h, int stride) { … }
static int EmitAlphaYUV(const VP8Io* const io, WebPDecParams* const p,
int expected_num_lines_out) { … }
static int GetAlphaSourceRow(const VP8Io* const io,
const uint8_t** alpha, int* const num_rows) { … }
static int EmitAlphaRGB(const VP8Io* const io, WebPDecParams* const p,
int expected_num_lines_out) { … }
static int EmitAlphaRGBA4444(const VP8Io* const io, WebPDecParams* const p,
int expected_num_lines_out) { … }
#if !defined(WEBP_REDUCE_SIZE)
static int Rescale(const uint8_t* src, int src_stride,
int new_lines, WebPRescaler* const wrk) { … }
static int EmitRescaledYUV(const VP8Io* const io, WebPDecParams* const p) { … }
static int EmitRescaledAlphaYUV(const VP8Io* const io, WebPDecParams* const p,
int expected_num_lines_out) { … }
static int InitYUVRescaler(const VP8Io* const io, WebPDecParams* const p) { … }
static int ExportRGB(WebPDecParams* const p, int y_pos) { … }
static int EmitRescaledRGB(const VP8Io* const io, WebPDecParams* const p) { … }
static int ExportAlpha(WebPDecParams* const p, int y_pos, int max_lines_out) { … }
static int ExportAlphaRGBA4444(WebPDecParams* const p, int y_pos,
int max_lines_out) { … }
static int EmitRescaledAlphaRGB(const VP8Io* const io, WebPDecParams* const p,
int expected_num_out_lines) { … }
static int InitRGBRescaler(const VP8Io* const io, WebPDecParams* const p) { … }
#endif
static int CustomSetup(VP8Io* io) { … }
static int CustomPut(const VP8Io* io) { … }
static void CustomTeardown(const VP8Io* io) { … }
void WebPInitCustomIo(WebPDecParams* const params, VP8Io* const io) { … }