Searched refs:gst_cuda_result (Results 1 – 11 of 11) sorted by relevance
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstcudacontext.c | 161 if (!gst_cuda_result (CuDeviceGetCount (&dev_count)) || dev_count == 0) { in gst_cuda_context_constructed() 167 if (gst_cuda_result (CuDeviceGet (&cdev, i)) && in gst_cuda_context_constructed() 168 gst_cuda_result (CuDeviceGetName (name, sizeof (name), cdev)) && in gst_cuda_context_constructed() 169 gst_cuda_result (CuDeviceGetAttribute (&maj, in gst_cuda_context_constructed() 171 gst_cuda_result (CuDeviceGetAttribute (&min, in gst_cuda_context_constructed() 173 gst_cuda_result (CuDeviceGetAttribute (&tex_align, in gst_cuda_context_constructed() 192 if (!gst_cuda_result (CuCtxCreate (&cuda_ctx, 0, cuda_dev))) { in gst_cuda_context_constructed() 197 if (!gst_cuda_result (CuCtxPopCurrent (&old_ctx))) { in gst_cuda_context_constructed() 235 if (!gst_cuda_result (cuda_ret) || !can_access) { in gst_cuda_context_enable_peer_access() 242 if (gst_cuda_result (CuCtxEnablePeerAccess (peer_priv->context, 0))) { in gst_cuda_context_enable_peer_access() [all …]
|
D | cuda-converter.c | 765 if (!gst_cuda_result (CuModuleGetFunction (&(func), (module), name))) { \ 821 if (!gst_cuda_result (CuModuleLoadData (&convert->cuda_module, convert->ptx))) { in gst_cuda_converter_new() 872 gst_cuda_result (CuModuleUnload (convert->cuda_module)); in gst_cuda_converter_free() 877 gst_cuda_result (CuMemFree (convert->fallback_buffer[i].device_ptr)); in gst_cuda_converter_free() 879 gst_cuda_result (CuMemFree (convert->y444_surface[i].device_ptr)); in gst_cuda_converter_free() 883 gst_cuda_result (CuMemFree (convert->unpack_surface.device_ptr)); in gst_cuda_converter_free() 977 if (!gst_cuda_result (ret)) { in convert_ensure_fallback_memory() 1010 gst_cuda_result (CuStreamSynchronize (cuda_stream)); in convert_create_texture_unchecked() 1013 if (!gst_cuda_result (cuda_ret)) { in convert_create_texture_unchecked() 1065 if (!gst_cuda_result (cuda_ret)) { in convert_create_texture() [all …]
|
D | gstcudamemory.c | 128 ret = gst_cuda_result (CuMemAllocPitch (&data, &stride, width, height, 16)); in gst_cuda_allocator_alloc() 168 gst_cuda_result (CuMemFree (mem->data)); in gst_cuda_allocator_free() 171 gst_cuda_result (CuMemFreeHost (mem->map_alloc_data)); in gst_cuda_allocator_free() 207 if (!gst_cuda_result (CuMemcpy2DAsync (¶m, NULL))) { in gst_cuda_memory_upload_transfer() 213 gst_cuda_result (CuStreamSynchronize (NULL)); in gst_cuda_memory_upload_transfer() 245 if (!gst_cuda_result (CuMemcpy2DAsync (¶m, NULL))) { in gst_cuda_memory_download_transfer() 252 gst_cuda_result (CuStreamSynchronize (NULL)); in gst_cuda_memory_download_transfer() 282 if (!gst_cuda_result (CuMemAllocHost (&data, maxsize))) { in gst_cuda_memory_device_memory_map() 448 if (!gst_cuda_result (CuMemcpy2DAsync (¶m, NULL))) { in cuda_mem_copy() 458 gst_cuda_result (CuStreamSynchronize (NULL)); in cuda_mem_copy()
|
D | gstnvdec.c | 522 if (!gst_cuda_result (CuvidDestroyDecoder (nvdec->decoder))) { in parser_sequence_callback() 552 || !gst_cuda_result (CuvidCreateDecoder (&nvdec->decoder, in parser_sequence_callback() 700 if (!gst_cuda_result (CuvidDecodePicture (nvdec->decoder, params))) { in parser_decode_callback() 895 if (!gst_cuda_result (cuda_ret)) { in gst_nvdec_open() 943 ret = gst_cuda_result (CuvidDestroyDecoder (nvdec->decoder)); in maybe_destroy_decoder_and_parser() 952 if (!gst_cuda_result (CuvidDestroyVideoParser (nvdec->parser))) { in maybe_destroy_decoder_and_parser() 1028 gst_cuda_result (CuStreamDestroy (nvdec->cuda_stream)); in gst_nvdec_close() 1082 if (!gst_cuda_result (CuvidCreateVideoParser (&nvdec->parser, in gst_nvdec_set_format() 1179 if (!gst_cuda_result (CuvidMapVideoFrame (nvdec->decoder, in copy_video_frame_to_gl_textures() 1203 if (!gst_cuda_result (CuGraphicsResourceGetMappedPointer (&cuda_ptr, &size, in copy_video_frame_to_gl_textures() [all …]
|
D | gstcudautils.c | 441 if (!gst_cuda_result (cuda_ret)) in gst_cuda_graphics_resource_register_gl_buffer() 470 gst_cuda_result (CuGraphicsUnregisterResource (resource->resource)); in gst_cuda_graphics_resource_unregister() 499 if (!gst_cuda_result (cuda_ret)) in gst_cuda_graphics_resource_map() 503 if (!gst_cuda_result (cuda_ret)) in gst_cuda_graphics_resource_map() 530 gst_cuda_result (CuGraphicsUnmapResources (1, &resource->resource, stream)); in gst_cuda_graphics_resource_unmap()
|
D | gstnvdecoder.c | 129 gst_cuda_result (CuStreamDestroy (self->cuda_stream)); in gst_nv_decoder_dispose() 218 if (!gst_cuda_result (cuda_ret)) { in gst_nv_decoder_new() 311 ret = gst_cuda_result (CuvidCreateDecoder (&decoder->decoder_handle, in gst_nv_decoder_configure() 384 if (!gst_cuda_result (CuvidMapVideoFrame (self->decoder_handle, in gst_nv_decoder_frame_map() 412 if (!gst_cuda_result (CuvidUnmapVideoFrame (self->decoder_handle, in gst_nv_decoder_frame_unmap() 474 if (!gst_cuda_result (CuvidDecodePicture (decoder->decoder_handle, params))) { in gst_nv_decoder_decode_picture() 631 if (!gst_cuda_result (CuGraphicsResourceGetMappedPointer (&dst_ptr, &size, in gst_nv_decoder_copy_frame_to_gl_internal() 647 if (!gst_cuda_result (CuMemcpy2DAsync (©_params, NULL))) { in gst_nv_decoder_copy_frame_to_gl_internal() 653 gst_cuda_result (CuStreamSynchronize (NULL)); in gst_nv_decoder_copy_frame_to_gl_internal() 717 if (!gst_cuda_result (CuMemcpy2DAsync (©_params, decoder->cuda_stream))) { in gst_nv_decoder_copy_frame_to_system() [all …]
|
D | gstcudabasefilter.c | 238 if (!gst_cuda_result (CuMemcpy2DAsync (¶m, btrans->cuda_stream))) { in gst_cuda_base_filter_transform_frame() 246 gst_cuda_result (CuStreamSynchronize (btrans->cuda_stream)); in gst_cuda_base_filter_transform_frame() 308 if (!gst_cuda_result (CuMemcpy2DAsync (¶m, btrans->cuda_stream))) { in gst_cuda_base_filter_transform_frame() 316 gst_cuda_result (CuStreamSynchronize (btrans->cuda_stream)); in gst_cuda_base_filter_transform_frame()
|
D | gstcudautils.h | 53 #define gst_cuda_result(result) \ macro 70 #define gst_cuda_result(result) \
|
D | gstcudabasetransform.c | 199 if (!gst_cuda_result (cuda_ret)) { in gst_cuda_base_transform_start() 217 gst_cuda_result (CuStreamDestroy (filter->cuda_stream)); in gst_cuda_base_transform_stop() 419 if (!gst_cuda_result (CuMemcpy2DAsync (¶m, filter->cuda_stream))) { in gst_cuda_base_transform_transform_frame_default()
|
D | gstnvbaseenc.c | 484 if (!gst_cuda_result (cuda_ret)) { in gst_nv_base_enc_open() 999 gst_cuda_result (CuStreamDestroy (nvenc->cuda_stream)); in gst_nv_base_enc_close() 1447 if (!gst_cuda_result (cuda_ret)) { in gst_nv_base_enc_free_buffers() 1904 if (!gst_cuda_result (cu_ret)) { in gst_nv_base_enc_set_format() 2183 if (!gst_cuda_result (cuda_ret)) { in _map_gl_input_buffer() 2209 if (!gst_cuda_result (cuda_ret)) { in _map_gl_input_buffer() 2219 gst_cuda_result (CuStreamSynchronize (nvenc->cuda_stream)); in _map_gl_input_buffer() 2267 if (!gst_cuda_result (cuda_ret)) { in gst_nv_base_enc_upload_frame() 2277 gst_cuda_result (CuStreamSynchronize (nvenc->cuda_stream)); in gst_nv_base_enc_upload_frame()
|
/third_party/gstreamer/gstplugins_bad/ |
D | ChangeLog | 36364 nvcodec: Wrap CUDA API return check with gst_cuda_result 36365 The gst_cuda_result macro function is more helpful for debugging 36366 than previous cuda_OK because gst_cuda_result prints the function 36368 gst_cuda_result will print WARNING level debug message with
|