how to set compress level when use jpeg encode ?

Hi,

I have use tegra_multimedia_api jpegencode to encode my image data, but how can I set compress level and control image quality ?

Please refer to
https://devtalk.nvidia.com/default/topic/1018988/jetson-tx2/missing-header-file-in-building-hardware-accelerated-gstjpeg-from-source/post/5188588/#5188588