how can I just use cuvidDecodePicture to decode h264

I don’t want to use cuvidParseVideoData to parse h264. I need parse h264 file by myself, and after get a frame, how can I just use cuvidDecodePicture to decode it;
So who can share me some samples. Thanks all~

You have to use cuvidParseVideoData() to pass data to the decoder. But you can package the data as you like. Just get a buffer with your full frame in it and then call with the appropriate length:

pkt.payload_size = (unsigned long) len;
pkt.payload = buf;
CUresult res = cuvidParseVideoData(Session.cuParser, &pkt);

Note that you will likely not get a display callback right away, due to the display delay, frame re-ordering, etc. But you can certainly package things as you like. Just keep injecting frames and pace things on the display side.