#include "include/core/SkYUVAPixmaps.h"
#include "include/core/SkAlphaType.h"
#include "include/private/base/SkDebug.h"
#include "src/base/SkRectMemcpy.h"
#include "src/core/SkImageInfoPriv.h"
#include "src/core/SkYUVAInfoLocation.h"
#include <algorithm>
#include <cstdint>
#include <utility>
void SkYUVAPixmapInfo::SupportedDataTypes::enableDataType(DataType type, int numChannels) { … }
std::tuple<int, SkYUVAPixmapInfo::DataType> SkYUVAPixmapInfo::NumChannelsAndDataType(
SkColorType ct) { … }
SkYUVAPixmapInfo::SkYUVAPixmapInfo(const SkYUVAInfo& yuvaInfo,
const SkColorType colorTypes[kMaxPlanes],
const size_t rowBytes[kMaxPlanes])
: … { … }
SkYUVAPixmapInfo::SkYUVAPixmapInfo(const SkYUVAInfo& yuvaInfo,
DataType dataType,
const size_t rowBytes[kMaxPlanes]) { … }
bool SkYUVAPixmapInfo::operator==(const SkYUVAPixmapInfo& that) const { … }
size_t SkYUVAPixmapInfo::computeTotalBytes(size_t planeSizes[kMaxPlanes]) const { … }
bool SkYUVAPixmapInfo::initPixmapsFromSingleAllocation(void* memory,
SkPixmap pixmaps[kMaxPlanes]) const { … }
bool SkYUVAPixmapInfo::isSupported(const SupportedDataTypes& supportedDataTypes) const { … }
SkColorType SkYUVAPixmaps::RecommendedRGBAColorType(DataType dataType) { … }
SkYUVAPixmaps SkYUVAPixmaps::Allocate(const SkYUVAPixmapInfo& yuvaPixmapInfo) { … }
SkYUVAPixmaps SkYUVAPixmaps::FromData(const SkYUVAPixmapInfo& yuvaPixmapInfo, sk_sp<SkData> data) { … }
SkYUVAPixmaps SkYUVAPixmaps::MakeCopy(const SkYUVAPixmaps& src) { … }
SkYUVAPixmaps SkYUVAPixmaps::FromExternalMemory(const SkYUVAPixmapInfo& yuvaPixmapInfo,
void* memory) { … }
SkYUVAPixmaps SkYUVAPixmaps::FromExternalPixmaps(const SkYUVAInfo& yuvaInfo,
const SkPixmap pixmaps[kMaxPlanes]) { … }
SkYUVAPixmaps::SkYUVAPixmaps(const SkYUVAPixmapInfo& yuvaPixmapInfo, sk_sp<SkData> data)
: … { … }
SkYUVAPixmaps::SkYUVAPixmaps(const SkYUVAInfo& yuvaInfo,
DataType dataType,
const SkPixmap pixmaps[kMaxPlanes])
: … { … }
SkYUVAPixmapInfo SkYUVAPixmaps::pixmapsInfo() const { … }
SkYUVAInfo::YUVALocations SkYUVAPixmaps::toYUVALocations() const { … }