Lines Matching defs:SkYUVAPixmapInfo
26 class SK_API SkYUVAPixmapInfo {
89 /** Default SkYUVAPixmapInfo is invalid. */
90 SkYUVAPixmapInfo() = default;
93 * Initializes the SkYUVAPixmapInfo from a SkYUVAInfo with per-plane color types and row bytes.
101 SkYUVAPixmapInfo(const SkYUVAInfo&,
108 SkYUVAPixmapInfo(const SkYUVAInfo&, DataType, const size_t rowBytes[kMaxPlanes]);
110 SkYUVAPixmapInfo(const SkYUVAPixmapInfo&) = default;
112 SkYUVAPixmapInfo& operator=(const SkYUVAPixmapInfo&) = default;
114 bool operator==(const SkYUVAPixmapInfo&) const;
115 bool operator!=(const SkYUVAPixmapInfo& that) const { return !(*this == that); }
121 /** The number of SkPixmap planes, 0 if this SkYUVAPixmapInfo is invalid. */
128 * Row bytes for the ith plane. Returns zero if i >= numPlanes() or this SkYUVAPixmapInfo is
139 * to SIZE_MAX. Returns 0 and fills planesSizes with 0 if this SkYUVAPixmapInfo is not valid.
146 * entries of pixmaps are default initialized. Fails if this SkYUVAPixmapInfo not valid.
168 * Helper to store SkPixmap planes as described by a SkYUVAPixmapInfo. Can be responsible for
173 using DataType = SkYUVAPixmapInfo::DataType;
174 static constexpr auto kMaxPlanes = SkYUVAPixmapInfo::kMaxPlanes;
179 static SkYUVAPixmaps Allocate(const SkYUVAPixmapInfo& yuvaPixmapInfo);
185 static SkYUVAPixmaps FromData(const SkYUVAPixmapInfo&, sk_sp<SkData>);
196 * SkYUVAPixmapInfo::computeTotalBytes() allocated starting at memory.
198 static SkYUVAPixmaps FromExternalMemory(const SkYUVAPixmapInfo&, void* memory);
224 SkYUVAPixmapInfo pixmapsInfo() const;
251 SkYUVAPixmaps(const SkYUVAPixmapInfo&, sk_sp<SkData>);
262 constexpr SkYUVAPixmapInfo::SupportedDataTypes SkYUVAPixmapInfo::SupportedDataTypes::All() {
278 constexpr bool SkYUVAPixmapInfo::SupportedDataTypes::supported(PlaneConfig config,
292 constexpr SkColorType SkYUVAPixmapInfo::DefaultColorTypeForDataType(DataType dataType,