#include <GrYUVABackendTextures.h>
A set of GrBackendTextures that hold the planar data for an image described a SkYUVAInfo.
Definition at line 82 of file GrYUVABackendTextures.h.
◆ GrYUVABackendTextures() [1/4]
GrYUVABackendTextures::GrYUVABackendTextures |
( |
| ) |
|
|
default |
◆ GrYUVABackendTextures() [2/4]
◆ GrYUVABackendTextures() [3/4]
◆ GrYUVABackendTextures() [4/4]
Definition at line 79 of file GrYUVABackendTextures.cpp.
85 return;
86 }
92 textures[
i].dimensions() != planeDimensions[
i] ||
95 *this = {};
96 return;
97 }
99 }
100}
static int num_channels(const GrBackendFormat &format)
const SkYUVAInfo & yuvaInfo() const
const std::array< GrBackendTexture, SkYUVAInfo::kMaxPlanes > & textures() const
GrSurfaceOrigin textureOrigin() const
static constexpr int kMaxPlanes
int planeDimensions(SkISize planeDimensions[kMaxPlanes]) const
int numChannelsInPlane(int i) const
◆ isValid()
bool GrYUVABackendTextures::isValid |
( |
| ) |
const |
|
inline |
◆ numPlanes()
int GrYUVABackendTextures::numPlanes |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ texture()
◆ textureOrigin()
◆ textures()
◆ toYUVALocations()
Computes a YUVALocations representation of the planar layout. The result is guaranteed to be valid if this->isValid().
Definition at line 102 of file GrYUVABackendTextures.cpp.
102 {
103 uint32_t channelFlags[] = {fTextures[0].getBackendFormat().channelMask(),
104 fTextures[1].getBackendFormat().channelMask(),
105 fTextures[2].getBackendFormat().channelMask(),
106 fTextures[3].getBackendFormat().channelMask()};
112}
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
YUVALocations toYUVALocations(const uint32_t *channelFlags) const
static bool AreValidLocations(const SkYUVAInfo::YUVALocations &locations, int *numPlanes=nullptr)
◆ yuvaInfo()
const SkYUVAInfo & GrYUVABackendTextures::yuvaInfo |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: