void VideoDecoder::decodePicture(CUVIDPICPARAMS *pPictureParameters, CUcontext *pContext) { // Handle CUDA picture decode (this actually calls the hardware VP/CUDA to decode video frames) CUresult oResult = cuvidDecodePicture(oDecoder_, pPictureParameters); assert(CUDA_SUCCESS == oResult); }
static int CUDAAPI cuvid_handle_picture_decode(void *opaque, CUVIDPICPARAMS* picparams) { AVCodecContext *avctx = opaque; CuvidContext *ctx = avctx->priv_data; av_log(avctx, AV_LOG_TRACE, "pfnDecodePicture\n"); ctx->internal_error = CHECK_CU(cuvidDecodePicture(ctx->cudecoder, picparams)); if (ctx->internal_error < 0) return 0; return 1; }
bool decodePicture(CUVIDPICPARAMS* picParams) { return cuvidDecodePicture(decoder_, picParams) == CUDA_SUCCESS; }
bool doDecodePicture(CUVIDPICPARAMS *cuvidpic) { AutoCtxLock lock(this, vid_ctx_lock); Q_UNUSED(lock); CUDA_ENSURE(cuvidDecodePicture(dec, cuvidpic), false); return true; }