Flutter Engine
The Flutter Engine
|
#include <YUVABackendTextures.h>
Public Member Functions | |
YUVABackendTextures ()=default | |
YUVABackendTextures (const YUVABackendTextures &)=delete | |
YUVABackendTextures & | operator= (const YUVABackendTextures &)=delete |
YUVABackendTextures (const Recorder *, const SkYUVAInfo &, SkSpan< const BackendTexture >) | |
SkSpan< const BackendTexture > | planeTextures () const |
BackendTexture | planeTexture (int i) const |
const SkYUVAInfo & | yuvaInfo () const |
SkYUVColorSpace | yuvColorSpace () const |
int | numPlanes () const |
bool | isValid () const |
SkYUVAInfo::YUVALocations | toYUVALocations () const |
Static Public Attributes | |
static constexpr auto | kMaxPlanes = SkYUVAInfo::kMaxPlanes |
A set of BackendTextures that hold the planar data for an image described a SkYUVAInfo.
Definition at line 85 of file YUVABackendTextures.h.
|
default |
|
delete |
skgpu::graphite::YUVABackendTextures::YUVABackendTextures | ( | const Recorder * | recorder, |
const SkYUVAInfo & | yuvaInfo, | ||
SkSpan< const BackendTexture > | textures | ||
) |
Initializes a YUVABackendTextures object from a set of textures that store the planes indicated by the SkYUVAInfo. This will produce an invalid result (return false from isValid()) if the passed texture formats' channels don't agree with SkYUVAInfo.
Definition at line 80 of file YUVABackendTextures.cpp.
|
inline |
Returns true if this has been configured with a valid SkYUVAInfo with compatible texture formats.
Definition at line 123 of file YUVABackendTextures.h.
|
inline |
The number of planes, 0 if this YUVABackendTextureInfo is invalid.
Definition at line 117 of file YUVABackendTextures.h.
|
delete |
|
inline |
BackendTexture for the ith plane, or invalid if i >= numPlanes()
Definition at line 107 of file YUVABackendTextures.h.
|
inline |
Definition at line 102 of file YUVABackendTextures.h.
SkYUVAInfo::YUVALocations skgpu::graphite::YUVABackendTextures::toYUVALocations | ( | ) | const |
Computes a YUVALocations representation of the planar layout. The result is guaranteed to be valid if this->isValid().
Definition at line 111 of file YUVABackendTextures.cpp.
|
inline |
Definition at line 112 of file YUVABackendTextures.h.
|
inline |
Definition at line 114 of file YUVABackendTextures.h.
|
staticconstexpr |
Definition at line 87 of file YUVABackendTextures.h.