#include "include/encode/SkWebpEncoder.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkColorType.h"
#include "include/core/SkData.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSpan.h"
#include "include/core/SkStream.h"
#include "include/encode/SkEncoder.h"
#include "include/private/base/SkTemplates.h"
#include "src/core/SkImageInfoPriv.h"
#include "src/encode/SkImageEncoderFns.h"
#include "src/encode/SkImageEncoderPriv.h"
#include "src/image/SkImage_Base.h"
#include <cstddef>
#include <cstdint>
#include <memory>
class GrDirectContext;
class SkImage;
extern "C" {
#include "webp/encode.h"
#include "webp/mux.h"
#include "webp/mux_types.h"
}
static int stream_writer(const uint8_t* data, size_t data_size, const WebPPicture* const picture) { … }
WebPPictureImportProc;
static bool preprocess_webp_picture(WebPPicture* pic,
WebPConfig* webp_config,
const SkPixmap& pixmap,
const SkWebpEncoder::Options& opts) { … }
namespace SkWebpEncoder {
bool Encode(SkWStream* stream, const SkPixmap& pixmap, const Options& opts) { … }
bool EncodeAnimated(SkWStream* stream, SkSpan<const SkEncoder::Frame> frames, const Options& opts) { … }
sk_sp<SkData> Encode(GrDirectContext* ctx, const SkImage* img, const Options& options) { … }
}