Flutter Engine
The Flutter Engine
|
#include <YUVABackendTextures.h>
Public Member Functions | |
YUVABackendTextureInfo ()=default | |
YUVABackendTextureInfo (const YUVABackendTextureInfo &)=default | |
YUVABackendTextureInfo & | operator= (const YUVABackendTextureInfo &)=default |
YUVABackendTextureInfo (const Recorder *, const SkYUVAInfo &, SkSpan< const TextureInfo >, Mipmapped) | |
bool | operator== (const YUVABackendTextureInfo &) const |
bool | operator!= (const YUVABackendTextureInfo &that) const |
const TextureInfo & | planeTextureInfo (int i) const |
const SkYUVAInfo & | yuvaInfo () const |
SkYUVColorSpace | yuvColorSpace () const |
Mipmapped | mipmapped () const |
int | numPlanes () const |
bool | isValid () const |
SkYUVAInfo::YUVALocations | toYUVALocations () const |
Static Public Attributes | |
static constexpr auto | kMaxPlanes = SkYUVAInfo::kMaxPlanes |
A description of a set of BackendTextures that hold the planar data described by a SkYUVAInfo.
Definition at line 23 of file YUVABackendTextures.h.
|
default |
Default YUVABackendTextureInfo is invalid.
|
default |
skgpu::graphite::YUVABackendTextureInfo::YUVABackendTextureInfo | ( | const Recorder * | recorder, |
const SkYUVAInfo & | yuvaInfo, | ||
SkSpan< const TextureInfo > | textureInfo, | ||
Mipmapped | mipmapped | ||
) |
Initializes a YUVABackendTextureInfo to describe a set of textures that can store the planes indicated by the SkYUVAInfo. The texture dimensions are taken from the SkYUVAInfo's plane dimensions. All the described textures share a common origin. The planar image this describes will be mip mapped if all the textures are individually mip mapped as indicated by Mipmapped. This will produce an invalid result (return false from isValid()) if the passed formats' channels don't agree with SkYUVAInfo.
Definition at line 33 of file YUVABackendTextures.cpp.
|
inline |
Returns true if this has been configured with a valid SkYUVAInfo with compatible texture formats.
Definition at line 67 of file YUVABackendTextures.h.
|
inline |
Definition at line 58 of file YUVABackendTextures.h.
|
inline |
The number of planes, 0 if this YUVABackendTextureInfo is invalid.
Definition at line 61 of file YUVABackendTextures.h.
|
inline |
Definition at line 46 of file YUVABackendTextures.h.
|
default |
bool skgpu::graphite::YUVABackendTextureInfo::operator== | ( | const YUVABackendTextureInfo & | that | ) | const |
Definition at line 63 of file YUVABackendTextures.cpp.
|
inline |
TextureInfo for the ith plane, or invalid if i >= numPlanes()
Definition at line 49 of file YUVABackendTextures.h.
SkYUVAInfo::YUVALocations skgpu::graphite::YUVABackendTextureInfo::toYUVALocations | ( | ) | const |
Computes a YUVALocations representation of the planar layout. The result is guaranteed to be valid if this->isValid().
Definition at line 70 of file YUVABackendTextures.cpp.
|
inline |
Definition at line 54 of file YUVABackendTextures.h.
|
inline |
Definition at line 56 of file YUVABackendTextures.h.
|
staticconstexpr |
Definition at line 25 of file YUVABackendTextures.h.