Lines Matching refs:dl_fn
39 #define CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x)
264 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_load_libraries() local
269 ret = cuda_load_functions(&dl_fn->cuda_dl, avctx); in nvenc_load_libraries()
273 ret = nvenc_load_functions(&dl_fn->nvenc_dl, avctx); in nvenc_load_libraries()
279 err = dl_fn->nvenc_dl->NvEncodeAPIGetMaxSupportedVersion(&nvenc_max_ver); in nvenc_load_libraries()
294 dl_fn->nvenc_funcs.version = NV_ENCODE_API_FUNCTION_LIST_VER; in nvenc_load_libraries()
296 err = dl_fn->nvenc_dl->NvEncodeAPICreateInstance(&dl_fn->nvenc_funcs); in nvenc_load_libraries()
308 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_push_context() local
313 return CHECK_CU(dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context)); in nvenc_push_context()
319 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_pop_context() local
325 return CHECK_CU(dl_fn->cuda_dl->cuCtxPopCurrent(&dummy)); in nvenc_pop_context()
527 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_check_device() local
528 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_check_device()
537 ret = CHECK_CU(dl_fn->cuda_dl->cuDeviceGet(&cu_device, idx)); in nvenc_check_device()
541 ret = CHECK_CU(dl_fn->cuda_dl->cuDeviceGetName(name, sizeof(name), cu_device)); in nvenc_check_device()
545 ret = CHECK_CU(dl_fn->cuda_dl->cuDeviceComputeCapability(&major, &minor, cu_device)); in nvenc_check_device()
558 ret = CHECK_CU(dl_fn->cuda_dl->cuCtxCreate(&ctx->cu_context_internal, 0, cu_device)); in nvenc_check_device()
576 dl_fn->nvenc_device_count++; in nvenc_check_device()
592 CHECK_CU(dl_fn->cuda_dl->cuCtxDestroy(ctx->cu_context_internal)); in nvenc_check_device()
602 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_setup_device() local
676 if (CHECK_CU(dl_fn->cuda_dl->cuInit(0)) < 0) in nvenc_setup_device()
679 if (CHECK_CU(dl_fn->cuda_dl->cuDeviceGetCount(&nb_devices)) < 0) in nvenc_setup_device()
689 dl_fn->nvenc_device_count = 0; in nvenc_setup_device()
698 if (!dl_fn->nvenc_device_count) { in nvenc_setup_device()
1250 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_setup_encoder() local
1251 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_setup_encoder()
1429 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_alloc_surface() local
1430 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_alloc_surface()
1526 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_setup_extradata() local
1527 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_setup_extradata()
1559 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in ff_nvenc_encode_close() local
1560 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in ff_nvenc_encode_close()
1613 CHECK_CU(dl_fn->cuda_dl->cuCtxDestroy(ctx->cu_context_internal)); in ff_nvenc_encode_close()
1623 nvenc_free_functions(&dl_fn->nvenc_dl); in ff_nvenc_encode_close()
1624 cuda_free_functions(&dl_fn->cuda_dl); in ff_nvenc_encode_close()
1626 dl_fn->nvenc_device_count = 0; in ff_nvenc_encode_close()
1725 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_find_free_reg_resource() local
1726 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_find_free_reg_resource()
1759 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_register_frame() local
1760 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_register_frame()
1814 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_upload_frame() local
1815 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_upload_frame()
1936 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in process_output_surface() local
1937 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in process_output_surface()
2174 NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; in nvenc_send_frame() local
2175 NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; in nvenc_send_frame()