How to decode jpeg raw data to nv12 data with nvjpeg

There are multiple types of yuv. When specifying the output format as yuv when using nvjpeg decoding, what is the specific format. Now I am not sure which format I got . At present I need to decode the jpeg image into nv12 format and put it into the gpu memory. What do I need to do with nvjpeg. anyone can help me? thanks.