CupvaSamplerInput2D#
Defined in src/device/vpu_runtime/include/cupva_device/sampler.h
- 
struct CupvaSamplerInput2D#
 Configure a 2D input buffer for sampling.
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 data table
- 
CupvaSamplerInputType type#
 Pixel format of lookup table entries
- 
uint32_t width#
 Number of valid entries in the input table, x dimension
- 
uint32_t height#
 Number of valid entries in the input table, y dimension
- 
uint32_t linePitch#
 Line pitch in pixels-> Optional, defaults to width
- 
ptrdiff_t inputAdv#
 The input table base pointer can move every iteration of dim2 or patch. This parameter specifies the offset to the next input table in pixels. Optional, defaults to zero.
- 
CupvaSamplerTaskOutOfRangeHandlingMode outOfRangeMode#
 Specify how to handle lookups to this table which result in out-of-range accesses. Optional, defaults to SAMPLER_OUT_OF_RANGE_CONSTANT.
- 
uint32_t outOfRangeVal#
 If outOfRangeMode is SAMPLER_OUT_OF_RANGE_CONSTANT, this specifies the constant value to use. Otherwise, it is ignored. Optional, defaults to zero.
- 
uint32_t flags#
 Optional flags field. See CupvaSamplerInput2DFlags for valid flag values which can be combined with bitwise OR
- 
void const *data#