Flutter Engine
The Flutter Engine
|
#include <SkYUVAPixmaps.h>
Public Types | |
using | DataType = SkYUVAPixmapInfo::DataType |
Public Member Functions | |
SkYUVAPixmaps ()=default | |
~SkYUVAPixmaps ()=default | |
SkYUVAPixmaps (SkYUVAPixmaps &&that)=default | |
SkYUVAPixmaps & | operator= (SkYUVAPixmaps &&that)=default |
SkYUVAPixmaps (const SkYUVAPixmaps &)=default | |
SkYUVAPixmaps & | operator= (const SkYUVAPixmaps &that)=default |
bool | isValid () const |
const SkYUVAInfo & | yuvaInfo () const |
DataType | dataType () const |
SkYUVAPixmapInfo | pixmapsInfo () const |
int | numPlanes () const |
const std::array< SkPixmap, kMaxPlanes > & | planes () const |
const SkPixmap & | plane (int i) const |
SkYUVAInfo::YUVALocations | toYUVALocations () const |
bool | ownsStorage () const |
Static Public Member Functions | |
static SkColorType | RecommendedRGBAColorType (DataType) |
static SkYUVAPixmaps | Allocate (const SkYUVAPixmapInfo &yuvaPixmapInfo) |
static SkYUVAPixmaps | FromData (const SkYUVAPixmapInfo &, sk_sp< SkData >) |
static SkYUVAPixmaps | MakeCopy (const SkYUVAPixmaps &src) |
static SkYUVAPixmaps | FromExternalMemory (const SkYUVAPixmapInfo &, void *memory) |
static SkYUVAPixmaps | FromExternalPixmaps (const SkYUVAInfo &, const SkPixmap[kMaxPlanes]) |
Static Public Attributes | |
static constexpr auto | kMaxPlanes = SkYUVAPixmapInfo::kMaxPlanes |
Helper to store SkPixmap planes as described by a SkYUVAPixmapInfo. Can be responsible for allocating/freeing memory for pixmaps or use external memory.
Definition at line 172 of file SkYUVAPixmaps.h.
Definition at line 174 of file SkYUVAPixmaps.h.
|
default |
Default SkYUVAPixmaps is invalid.
|
default |
|
default |
|
default |
|
static |
Allocate space for pixmaps' pixels in the SkYUVAPixmaps.
Definition at line 169 of file SkYUVAPixmaps.cpp.
|
inline |
Definition at line 223 of file SkYUVAPixmaps.h.
|
static |
Use storage in SkData as backing store for pixmaps' pixels. SkData is retained by the SkYUVAPixmaps.
Definition at line 177 of file SkYUVAPixmaps.cpp.
|
static |
Use passed in memory as backing store for pixmaps' pixels. Caller must ensure memory remains allocated while pixmaps are in use. There must be at least SkYUVAPixmapInfo::computeTotalBytes() allocated starting at memory.
Definition at line 208 of file SkYUVAPixmaps.cpp.
|
static |
Wraps existing SkPixmaps. The SkYUVAPixmaps will have no ownership of the SkPixmaps' pixel memory so the caller must ensure it remains valid. Will return an invalid SkYUVAPixmaps if the SkYUVAInfo isn't compatible with the SkPixmap array (number of planes, plane dimensions, sufficient color channels in planes, ...).
Definition at line 218 of file SkYUVAPixmaps.cpp.
|
inline |
Does have initialized pixmaps compatible with its SkYUVAInfo.
Definition at line 219 of file SkYUVAPixmaps.h.
|
static |
Makes a deep copy of the src SkYUVAPixmaps. The returned SkYUVAPixmaps owns its planes' backing stores.
Definition at line 187 of file SkYUVAPixmaps.cpp.
|
inline |
Number of pixmap planes or 0 if this SkYUVAPixmaps is invalid.
Definition at line 228 of file SkYUVAPixmaps.h.
|
default |
|
default |
|
inline |
Does this SkPixmaps own the backing store of the planes?
Definition at line 249 of file SkYUVAPixmaps.h.
SkYUVAPixmapInfo SkYUVAPixmaps::pixmapsInfo | ( | ) | const |
Definition at line 251 of file SkYUVAPixmaps.cpp.
Get the ith SkPixmap plane. SkPixmap will be default initialized if i >= numPlanes or this SkYUVAPixmaps is invalid.
Definition at line 240 of file SkYUVAPixmaps.h.
|
inline |
Access the SkPixmap planes. They are default initialized if this is not a valid SkYUVAPixmaps.
Definition at line 234 of file SkYUVAPixmaps.h.
|
static |
Definition at line 157 of file SkYUVAPixmaps.cpp.
SkYUVAInfo::YUVALocations SkYUVAPixmaps::toYUVALocations | ( | ) | const |
Computes a YUVALocations representation of the planar layout. The result is guaranteed to be valid if this->isValid().
Definition at line 265 of file SkYUVAPixmaps.cpp.
|
inline |
Definition at line 221 of file SkYUVAPixmaps.h.
|
staticconstexpr |
Definition at line 175 of file SkYUVAPixmaps.h.