Searched refs:cuda_ret (Results 1 – 8 of 8) sorted by relevance
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | plugin.c | 53 CUresult cuda_ret; in plugin_init() local 92 cuda_ret = CuInit (0); in plugin_init() 93 if (cuda_ret != CUDA_SUCCESS) { in plugin_init() 94 GST_WARNING ("Failed to init cuda, ret: 0x%x", (gint) cuda_ret); in plugin_init() 99 GST_WARNING ("No available device, ret: 0x%x", (gint) cuda_ret); in plugin_init() 134 cuda_ret = CuDeviceGet (&cuda_device, i); in plugin_init() 135 if (cuda_ret != CUDA_SUCCESS) { in plugin_init() 137 (gint) cuda_ret); in plugin_init() 141 cuda_ret = CuCtxCreate (&cuda_ctx, 0, cuda_device); in plugin_init() 142 if (cuda_ret != CUDA_SUCCESS) { in plugin_init() [all …]
|
D | cuda-converter.c | 994 CUresult cuda_ret; in convert_create_texture_unchecked() local 1011 cuda_ret = CuTexObjectCreate (&texture, &resource_desc, &texture_desc, NULL); in convert_create_texture_unchecked() 1013 if (!gst_cuda_result (cuda_ret)) { in convert_create_texture_unchecked() 1030 CUresult cuda_ret; in convert_create_texture() local 1064 cuda_ret = CuMemcpy2DAsync (©_params, cuda_stream); in convert_create_texture() 1065 if (!gst_cuda_result (cuda_ret)) { in convert_create_texture() 1094 CUresult cuda_ret; in convert_YUV_TO_YUV() local 1129 cuda_ret = in convert_YUV_TO_YUV() 1134 if (!gst_cuda_result (cuda_ret)) { in convert_YUV_TO_YUV() 1158 CUresult cuda_ret; in convert_YUV_TO_RGB() local [all …]
|
D | gstcudautils.c | 432 CUresult cuda_ret; in gst_cuda_graphics_resource_register_gl_buffer() local 439 cuda_ret = CuGraphicsGLRegisterBuffer (&resource->resource, buffer, flags); in gst_cuda_graphics_resource_register_gl_buffer() 441 if (!gst_cuda_result (cuda_ret)) in gst_cuda_graphics_resource_register_gl_buffer() 491 CUresult cuda_ret; in gst_cuda_graphics_resource_map() local 498 cuda_ret = CuGraphicsResourceSetMapFlags (resource->resource, flags); in gst_cuda_graphics_resource_map() 499 if (!gst_cuda_result (cuda_ret)) in gst_cuda_graphics_resource_map() 502 cuda_ret = CuGraphicsMapResources (1, &resource->resource, stream); in gst_cuda_graphics_resource_map() 503 if (!gst_cuda_result (cuda_ret)) in gst_cuda_graphics_resource_map()
|
D | gstnvdecoder.c | 216 CUresult cuda_ret; in gst_nv_decoder_new() local 217 cuda_ret = CuStreamCreate (&self->cuda_stream, CU_STREAM_DEFAULT); in gst_nv_decoder_new() 218 if (!gst_cuda_result (cuda_ret)) { in gst_nv_decoder_new() 1059 CUresult cuda_ret; in gst_nv_decoder_check_device_caps() local 1144 cuda_ret = CuvidGetDecoderCaps (&decoder_caps); in gst_nv_decoder_check_device_caps() 1145 if (cuda_ret != CUDA_SUCCESS) { in gst_nv_decoder_check_device_caps() 1147 codec_map->codec_name, cuda_ret); in gst_nv_decoder_check_device_caps() 1355 CUresult cuda_ret; in gst_nv_decoder_check_cuda_device_from_context() local 1359 cuda_ret = CuGLGetDevices (&device_count, in gst_nv_decoder_check_cuda_device_from_context() 1362 if (!gst_cuda_result (cuda_ret) || device_count == 0) in gst_nv_decoder_check_cuda_device_from_context()
|
D | gstnvbaseenc.c | 474 CUresult cuda_ret; in gst_nv_base_enc_open() local 483 cuda_ret = CuStreamCreate (&nvenc->cuda_stream, CU_STREAM_DEFAULT); in gst_nv_base_enc_open() 484 if (!gst_cuda_result (cuda_ret)) { in gst_nv_base_enc_open() 1408 CUresult cuda_ret; in gst_nv_base_enc_free_buffers() local 1446 cuda_ret = CuMemFree (in_buf->cuda_pointer); in gst_nv_base_enc_free_buffers() 1447 if (!gst_cuda_result (cuda_ret)) { in gst_nv_base_enc_free_buffers() 1449 cuda_ret); in gst_nv_base_enc_free_buffers() 2123 CUresult cuda_ret; in _map_gl_input_buffer() local 2179 cuda_ret = in _map_gl_input_buffer() 2183 if (!gst_cuda_result (cuda_ret)) { in _map_gl_input_buffer() [all …]
|
D | gstcudacontext.c | 230 CUresult cuda_ret; in gst_cuda_context_enable_peer_access() local 233 cuda_ret = CuDeviceCanAccessPeer (&can_access, device, other_dev); in gst_cuda_context_enable_peer_access() 235 if (!gst_cuda_result (cuda_ret) || !can_access) { in gst_cuda_context_enable_peer_access()
|
D | gstcudabasetransform.c | 189 CUresult cuda_ret; in gst_cuda_base_transform_start() local 198 cuda_ret = CuStreamCreate (&filter->cuda_stream, CU_STREAM_DEFAULT); in gst_cuda_base_transform_start() 199 if (!gst_cuda_result (cuda_ret)) { in gst_cuda_base_transform_start()
|
D | gstnvdec.c | 883 CUresult cuda_ret; in gst_nvdec_open() local 894 cuda_ret = CuStreamCreate (&nvdec->cuda_stream, CU_STREAM_DEFAULT); in gst_nvdec_open() 895 if (!gst_cuda_result (cuda_ret)) { in gst_nvdec_open() 1763 CUresult cuda_ret; in gst_nvdec_check_cuda_device_from_context() local 1767 cuda_ret = CuGLGetDevices (&device_count, in gst_nvdec_check_cuda_device_from_context() 1770 if (!gst_cuda_result (cuda_ret) || device_count == 0) in gst_nvdec_check_cuda_device_from_context()
|