CUPVA_DOUBLE_BUFFER_LENGTH#
Defined in src/device/vpu_runtime/include/cupva_device/device_core.h
-
CUPVA_DOUBLE_BUFFER_LENGTH(tw, th, ...)#
Calculate the VMEM buffer length (in pixel) of double layout according to different configurations.
The buffer length will be 64-pixel aligned.
- Deprecated:
This macro is deprecated due to memory usage increases while the BPP > 1, and replaced with RDF_DOUBLE.
- Parameters:
tw – Tile width in pixel (arena width, if RasterDataFlow::tileArena() API will be used)
th – Tile height in pixel (arena height, if RasterDataFlow::tileArena() API will be used)
... – Optional arguments, specified in the following order:
haloX gives horizontal halo in pixel, defaults to 0
haloY gives vertical halo in pixel, defaults to 0
type gives the pixel data type, ignored if transposition mode is TRANS_MODE_NONE
mode gives the transposition mode, defaults to TRANS_MODE_NONE