#include "src/codec/SkCodecImageGenerator.h"
#include "include/codec/SkEncodedOrigin.h"
#include "include/codec/SkPixmapUtils.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkData.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkStream.h"
#include "include/core/SkTypes.h"
#include "src/codec/SkPixmapUtilsPriv.h"
#include <utility>
std::unique_ptr<SkImageGenerator> SkCodecImageGenerator::MakeFromEncodedCodec(
sk_sp<SkData> data, std::optional<SkAlphaType> at) { … }
std::unique_ptr<SkImageGenerator> SkCodecImageGenerator::MakeFromCodec(
std::unique_ptr<SkCodec> codec, std::optional<SkAlphaType> at) { … }
static SkImageInfo adjust_info(SkCodec* codec, std::optional<SkAlphaType> at) { … }
SkCodecImageGenerator::SkCodecImageGenerator(std::unique_ptr<SkCodec> codec,
std::optional<SkAlphaType> at)
: … { … }
sk_sp<SkData> SkCodecImageGenerator::onRefEncodedData() { … }
bool SkCodecImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const SkCodec::Options* options) { … }
bool SkCodecImageGenerator::onGetPixels(const SkImageInfo& requestInfo, void* requestPixels,
size_t requestRowBytes, const Options& options) { … }
bool SkCodecImageGenerator::onQueryYUVAInfo(
const SkYUVAPixmapInfo::SupportedDataTypes& supportedDataTypes,
SkYUVAPixmapInfo* yuvaPixmapInfo) const { … }
bool SkCodecImageGenerator::onGetYUVAPlanes(const SkYUVAPixmaps& yuvaPixmaps) { … }
SkISize SkCodecImageGenerator::getScaledDimensions(float desiredScale) const { … }