#include <rsCppStructs.h>
Data Structures | |
class | Builder |
Public Member Functions | |
RSYuvFormat | getYuvFormat () const |
sp< const Element > | getElement () const |
uint32_t | getX () const |
uint32_t | getY () const |
uint32_t | getZ () const |
bool | hasMipmaps () const |
bool | hasFaces () const |
size_t | getCount () const |
size_t | getSizeBytes () const |
Static Public Member Functions | |
static sp< const Type > | create (sp< RS > rs, sp< const Element > e, uint32_t dimX, uint32_t dimY, uint32_t dimZ) |
A Type describes the Element and dimensions used for an Allocation or a parallel operation.
A Type always includes an Element and an X dimension. A Type may be multidimensional, up to three dimensions. A nonzero value in the Y or Z dimensions indicates that the dimension is present. Note that a Type with only a given X dimension and a Type with the same X dimension but Y = 1 are not equivalent.
A Type also supports inclusion of level of detail (LOD) or cube map faces. LOD and cube map faces are booleans to indicate present or not present.
A Type also supports YUV format information to support an Allocation in a YUV format. The YUV formats supported are YV12 and NV21.
Definition at line 1188 of file rsCppStructs.h.
size_t android::RSC::Type::getCount | ( | ) | const [inline] |
Returns number of accessible Elements in the Allocation
Definition at line 1268 of file rsCppStructs.h.
sp<const Element> android::RSC::Type::getElement | ( | ) | const [inline] |
Returns the Element of the Allocation.
Definition at line 1220 of file rsCppStructs.h.
size_t android::RSC::Type::getSizeBytes | ( | ) | const [inline] |
Returns size in bytes of all Elements in the Allocation
Definition at line 1276 of file rsCppStructs.h.
uint32_t android::RSC::Type::getX | ( | ) | const [inline] |
Returns the X dimension of the Allocation.
Definition at line 1228 of file rsCppStructs.h.
uint32_t android::RSC::Type::getY | ( | ) | const [inline] |
Returns the Y dimension of the Allocation.
Definition at line 1236 of file rsCppStructs.h.
RSYuvFormat android::RSC::Type::getYuvFormat | ( | ) | const [inline] |
Returns the YUV format.
Definition at line 1212 of file rsCppStructs.h.
uint32_t android::RSC::Type::getZ | ( | ) | const [inline] |
Returns the Z dimension of the Allocation.
Definition at line 1244 of file rsCppStructs.h.
bool android::RSC::Type::hasFaces | ( | ) | const [inline] |
Returns true if the Allocation is a cube map
Definition at line 1260 of file rsCppStructs.h.
bool android::RSC::Type::hasMipmaps | ( | ) | const [inline] |
Returns true if the Allocation has mipmaps.
Definition at line 1252 of file rsCppStructs.h.