cupvaTensorDataFlowGetBppLog2#

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

inline uint32_t cupvaTensorDataFlowGetBppLog2(
TDFHandler const &handler,
)#

Returns log2(bytes per pixel) for the TDF.

The DMA engine may be configured to transfer 1, 2 or 4 bytes per pixel. This is configured on the host side and may be queried here.

Parameters:

handler – The reference to the TDFHandler object defined in the VMEM

Returns:

log2(bpp) configured for this TDF