#include "third_party/blink/renderer/platform/image-encoders/image_encoder.h"
#include "base/notreached.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <basetsd.h>
#endif
#include <stdio.h>
#include "jpeglib.h"
#include "third_party/libwebp/src/src/webp/encode.h"
namespace blink {
bool ImageEncoder::Encode(Vector<unsigned char>* dst,
const SkPixmap& src,
const SkJpegEncoder::Options& options) { … }
bool ImageEncoder::Encode(Vector<unsigned char>* dst,
const SkPixmap& src,
const SkPngEncoder::Options& options) { … }
bool ImageEncoder::Encode(Vector<unsigned char>* dst,
const SkPixmap& src,
const SkWebpEncoder::Options& options) { … }
std::unique_ptr<ImageEncoder> ImageEncoder::Create(
Vector<unsigned char>* dst,
const SkPixmap& src,
const SkJpegEncoder::Options& options) { … }
std::unique_ptr<ImageEncoder> ImageEncoder::Create(
Vector<unsigned char>* dst,
const SkPixmap& src,
const SkPngEncoder::Options& options) { … }
int ImageEncoder::MaxDimension(ImageEncodingMimeType mime_type) { … }
int ImageEncoder::ComputeJpegQuality(double quality) { … }
SkWebpEncoder::Options ImageEncoder::ComputeWebpOptions(double quality) { … }
}