#include <assert.h>
#include "src/utils/utils.h"
#include "src/webp/format_constants.h"
#include "src/webp/mux_types.h"
#include "src/enc/vp8i_enc.h"
static int IsVP8XNeeded(const VP8Encoder* const enc) { … }
static int PutPaddingByte(const WebPPicture* const pic) { … }
static WebPEncodingError PutRIFFHeader(const VP8Encoder* const enc,
size_t riff_size) { … }
static WebPEncodingError PutVP8XHeader(const VP8Encoder* const enc) { … }
static WebPEncodingError PutAlphaChunk(const VP8Encoder* const enc) { … }
static WebPEncodingError PutVP8Header(const WebPPicture* const pic,
size_t vp8_size) { … }
static WebPEncodingError PutVP8FrameHeader(const WebPPicture* const pic,
int profile, size_t size0) { … }
static int PutWebPHeaders(const VP8Encoder* const enc, size_t size0,
size_t vp8_size, size_t riff_size) { … }
static void PutSegmentHeader(VP8BitWriter* const bw,
const VP8Encoder* const enc) { … }
static void PutFilterHeader(VP8BitWriter* const bw,
const VP8EncFilterHeader* const hdr) { … }
static void PutQuant(VP8BitWriter* const bw,
const VP8Encoder* const enc) { … }
static int EmitPartitionsSize(const VP8Encoder* const enc,
WebPPicture* const pic) { … }
static int GeneratePartition0(VP8Encoder* const enc) { … }
void VP8EncFreeBitWriters(VP8Encoder* const enc) { … }
int VP8EncWrite(VP8Encoder* const enc) { … }