CupvaSamplerOutput#

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

struct CupvaSamplerOutput#

Configure a buffer for sampler output.

This structure should be used to pass parameters to one of the cupvaSamplerInit() overloads.

Public Members

void *data#

Pointer to output data buffer for sampler result

uint16_t pitch#

Pitch of the output data buffer in pixels. If transMode is TRANS_MODE_NONE, the output will advance by pitch for each row of input indices sampled, or for each tile sampled in tile sampling mode. Otherwise, if transMode is TRANS_MODE_1, the output will advance by pitch for each pixel sampled within a row/tile, and will advance by 1 pixel between rows/tiles. If transMode is TRANS_MODE_1, pitch must satisfy pitch = 64 / sizeof(PIXEL) * k + 1 for some integer k >= 0.

TranspositionMode transMode#

Transposition mode to apply to output-> Optional, defaults to TRANS_MODE_NONE. For 8B data, only TRANS_MODE_NONE is supported. For other data, TRANS_MODE_NONE and TRANS_MODE_1 are supported.