示例#1
0
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);
}
示例#2
0
文件: cuvid.c 项目: kinetiknz/FFmpeg
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;
}
示例#3
0
 bool decodePicture(CUVIDPICPARAMS* picParams)
 {
     return cuvidDecodePicture(decoder_, picParams) == CUDA_SUCCESS;
 }
示例#4
0
 bool doDecodePicture(CUVIDPICPARAMS *cuvidpic) {
     AutoCtxLock lock(this, vid_ctx_lock);
     Q_UNUSED(lock);
     CUDA_ENSURE(cuvidDecodePicture(dec, cuvidpic), false);
     return true;
 }