CupvaSamplerIndices2D#
Defined in src/device/vpu_runtime/include/cupva_device/sampler.h
- 
struct CupvaSamplerIndices2D#
 Configure a 2D array of indices for sampling into a 2D input buffer.
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 indices table
- 
CupvaSamplerIndexType type#
 Data type of indices
- 
uint16_t width#
 Width of indices table in indexes
- 
uint16_t height#
 Height of indices table in rows
- 
uint16_t linePitch#
 Line pitch of indices table in indices-> Optional, defaults to width
- 
uint8_t fractionalBits#
 Number of fractional bits in the indices-> Optional, defaults to zero.
- 
CupvaSamplerIndexRoundingMode fractionalHandling#
 Fractional handling mode for indices with fractional components. Optional, defaults to SAMPLER_FRAC_HANDLING_TRUNCATE
- 
int32_t offsetX#
 Constant positive or negative X offset which is applied to all indices-> Optional, defaults to zero.
- 
int32_t offsetY#
 Constant positive or negative Y offset which is applied to all indices-> Optional, defaults to zero.
- 
CupvaSamplerIndexInterleavingMode interleaving#
 Index interleaving mode. Optional, defaults to SAMPLER_INTERLEAVING_ELEMENTS.
- 
void const *data#