How to get yuv from jpeg by using cuvid or other hardware api

How to get yuv from jpeg by using cuvid or other hardware api.The example of video SDK is used to decode video, but not picture. I want to decompression the picture with hardware accelerate