Does the jetson multimedia api actually use hardware accelerated encoding for jpeg calls?

I’m wondering if the call

NvJPEGEncoder::encodeFromBuffer(NvBuffer & buffer, J_COLOR_SPACE color_space,
unsigned char **out_buf, unsigned long &out_buf_size,
int quality)

https://docs.nvidia.com/jetson/l4t-multimedia/classNvJPEGEncoder.html

Actually uses hardware acceleration? It looks like it is a convenience function to use an NV12 buffer with the libjpeg library. Does this actually use cuda, or any other hardware acceleration? Or is it only CPU encoding.

This is on a Xavier NX.

Thanks.

Hi,
It uses hardware engine NVJPG. Please run sudo tegrastats to check it. NVJPG will be shown if it is in-use.

Great thanks! Ill give that a shot.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.