Lines Matching defs:dl_fn
39 #define CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x)
282 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
287 ret = cuda_load_functions(&dl_fn->cuda_dl, avctx);
291 ret = nvenc_load_functions(&dl_fn->nvenc_dl, avctx);
297 err = dl_fn->nvenc_dl->NvEncodeAPIGetMaxSupportedVersion(&nvenc_max_ver);
312 dl_fn->nvenc_funcs.version = NV_ENCODE_API_FUNCTION_LIST_VER;
314 err = dl_fn->nvenc_dl->NvEncodeAPICreateInstance(&dl_fn->nvenc_funcs);
326 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
331 return CHECK_CU(dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context));
337 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
343 return CHECK_CU(dl_fn->cuda_dl->cuCtxPopCurrent(&dummy));
577 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
578 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
587 ret = CHECK_CU(dl_fn->cuda_dl->cuDeviceGet(&cu_device, idx));
591 ret = CHECK_CU(dl_fn->cuda_dl->cuDeviceGetName(name, sizeof(name), cu_device));
595 ret = CHECK_CU(dl_fn->cuda_dl->cuDeviceComputeCapability(&major, &minor, cu_device));
608 ret = CHECK_CU(dl_fn->cuda_dl->cuCtxCreate(&ctx->cu_context_internal, 0, cu_device));
626 dl_fn->nvenc_device_count++;
642 CHECK_CU(dl_fn->cuda_dl->cuCtxDestroy(ctx->cu_context_internal));
652 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
726 if (CHECK_CU(dl_fn->cuda_dl->cuInit(0)) < 0)
729 if (CHECK_CU(dl_fn->cuda_dl->cuDeviceGetCount(&nb_devices)) < 0)
739 dl_fn->nvenc_device_count = 0;
748 if (!dl_fn->nvenc_device_count) {
1341 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
1342 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
1535 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
1536 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
1632 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
1633 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
1665 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
1666 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
1721 CHECK_CU(dl_fn->cuda_dl->cuCtxDestroy(ctx->cu_context_internal));
1731 nvenc_free_functions(&dl_fn->nvenc_dl);
1732 cuda_free_functions(&dl_fn->cuda_dl);
1734 dl_fn->nvenc_device_count = 0;
1832 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
1833 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
1866 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
1867 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
1921 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
1922 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
2043 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
2044 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
2372 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
2373 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;