Skia
2D Graphics Library
GrYUVABackendTextures Class Reference

A set of GrBackendTextures that hold the planar data for an image described a SkYUVAInfo. More...

#include <GrYUVABackendTextures.h>

Public Member Functions

 GrYUVABackendTextures ()=default
 
 GrYUVABackendTextures (const GrYUVABackendTextures &)=delete
 
 GrYUVABackendTextures (GrYUVABackendTextures &&)=default
 
GrYUVABackendTexturesoperator= (const GrYUVABackendTextures &)=delete
 
GrYUVABackendTexturesoperator= (GrYUVABackendTextures &&)=default
 
 GrYUVABackendTextures (const SkYUVAInfo &, const GrBackendTexture[SkYUVAInfo::kMaxPlanes], GrSurfaceOrigin textureOrigin)
 
const std::array< GrBackendTexture, SkYUVAInfo::kMaxPlanes > & textures () const
 
GrBackendTexture texture (int i) const
 
const SkYUVAInfoyuvaInfo () const
 
int numPlanes () const
 
GrSurfaceOrigin textureOrigin () const
 
bool isValid () const
 
SkYUVAInfo::YUVALocations toYUVALocations () const
 Computes a YUVALocations representation of the planar layout. More...
 

Detailed Description

A set of GrBackendTextures that hold the planar data for an image described a SkYUVAInfo.

Constructor & Destructor Documentation

◆ GrYUVABackendTextures() [1/4]

GrYUVABackendTextures::GrYUVABackendTextures ( )
default

◆ GrYUVABackendTextures() [2/4]

GrYUVABackendTextures::GrYUVABackendTextures ( const GrYUVABackendTextures )
delete

◆ GrYUVABackendTextures() [3/4]

GrYUVABackendTextures::GrYUVABackendTextures ( GrYUVABackendTextures &&  )
default

◆ GrYUVABackendTextures() [4/4]

GrYUVABackendTextures::GrYUVABackendTextures ( const SkYUVAInfo ,
const  GrBackendTexture[SkYUVAInfo::kMaxPlanes],
GrSurfaceOrigin  textureOrigin 
)

Member Function Documentation

◆ isValid()

bool GrYUVABackendTextures::isValid ( ) const
inline

◆ numPlanes()

int GrYUVABackendTextures::numPlanes ( ) const
inline

◆ operator=() [1/2]

GrYUVABackendTextures& GrYUVABackendTextures::operator= ( const GrYUVABackendTextures )
delete

◆ operator=() [2/2]

GrYUVABackendTextures& GrYUVABackendTextures::operator= ( GrYUVABackendTextures &&  )
default

◆ texture()

GrBackendTexture GrYUVABackendTextures::texture ( int  i) const
inline

◆ textureOrigin()

GrSurfaceOrigin GrYUVABackendTextures::textureOrigin ( ) const
inline

◆ textures()

const std::array<GrBackendTexture, SkYUVAInfo::kMaxPlanes>& GrYUVABackendTextures::textures ( ) const
inline

◆ toYUVALocations()

SkYUVAInfo::YUVALocations GrYUVABackendTextures::toYUVALocations ( ) const

Computes a YUVALocations representation of the planar layout.

The result is guaranteed to be valid if this->isValid().

◆ yuvaInfo()

const SkYUVAInfo& GrYUVABackendTextures::yuvaInfo ( ) const
inline

The documentation for this class was generated from the following file: