Source code of nvbuf_utils

Hi,
Is source code (.cpp file) of nvbuf_utils.h which is part of Multimedia API available somewhere?
I would be interested in logic behind NvBufferCreateEx and NvBufferTransform to see how is DMA buffer created / copied.

Thanks in advance.

Richard

Hi,
The implementation is in

/usr/lib/aarch64-linux-gnu/tegra/libnvbuf_utils.so

Unfortunately the prebuilt lib is not open source. Sorry for it.

1 Like

Hi @DaneLLL , do you know what is happening behind those procedures, just theoretically? To my understanding it should be some dma_buf management, right? Do you have more details? E.g. how does the NvBufferCreateParams affects the DMA buffer, espacially nvbuf_tag and payloadType.

Thank You

Hi,
nvbug_tag is for debugging/tracing purpose. It does not have impact for functionality. But for traceability, suggest set it accordingly.

payloadType is set to NvBufferPayload_SurfArray along with NvBufferColorFormat. There should be no use-case to set to NvBufferPayload_MemHandle.

Most use-cases are demonstrated in the samples. Please take a look at

/usr/src/jetson_multimedia_api/