Regarding 06_jpeg_decode

Hello,

I want to receive jpegs from the network and decode them one by one.
Do I need to create NvVideoConverter every time I decode a single jpeg as follows?

NvVideoConverter::createVideoConverter(“conv”)

I want to initialize and delete the converter only once.
Can you tell me if you have any reason to implement to create and delete converters every time I decode it?

Thank you.

Hi,
You can simply call NvBufferTransform(). It is straightforward and easy to use.

Hi,

You mean to use NvBufferTransform instead of NvVideoConverter?

You mean to use NvBufferTransform instead of NvVideoConverter?
What is the difference between using NvVideoConverter and using NvBufferTransform?

Thank you.

Hi,

Yes. Both uses same hardware converter and NvBufferTransform() is easy to use. Suggest you call the function directly.

1 Like