CupvaSamplerTiles#

Defined in src/device/vpu_runtime/include/cupva_device/sampler.h

struct CupvaSamplerTiles#

Configure an array of tile coordinates for sampling 2D patches with bilinear interpolation.

This structure should be used to pass parameters to one of the cupvaSamplerInit() overloads. Where a field is specified as optional, a default value may be used by leaving the relevant entry zero/default initialized.

Public Members

void const *data#

Pointer to input tile data array. Each element should be unsigned 32bit, element layout determined by value provided for type.

CupvaSamplerTileType type#

Format of tile data. Optional, defaults to SAMPLER_TILE_TRANS_ONLY (i.e. x/y coords, no scale)

uint8_t width#

Width of each tile in pixels

uint8_t height#

Height of each tile in pixels

uint16_t count#

Number of tiles in the array

uint8_t fractionalBits#

Number of fractional bits in the tile data. Optional, defaults to zero.

int32_t offsetX#

Constant positive or negative X offset which is applied to all tiles-> Optional, defaults to zero.

int32_t offsetY#

Constant positive or negative Y offset which is applied to all tiles-> Optional, defaults to zero.

CupvaSamplerTileTraversalMode tileTraversalMode#

Order in which tiles are traversed. Optional, defaults to SAMPLER_TRAVERSAL_STANDARD.