From 815b1dfb4a81052eaa7fb5ebbb82bab40969d6aa Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 13 Aug 2023 00:55:46 +0900 Subject: [PATCH] cuda: Update gir Part-of: --- girs/CudaGst-1.0.gir | 160 +++++++++++++++++++++++++++++++++++++++++++ girs/GstCuda-1.0.gir | 146 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 306 insertions(+) diff --git a/girs/CudaGst-1.0.gir b/girs/CudaGst-1.0.gir index 35c1fe5fb8..921f7b76b5 100644 --- a/girs/CudaGst-1.0.gir +++ b/girs/CudaGst-1.0.gir @@ -19,6 +19,10 @@ and/or use gtk-doc annotations. --> + + + + @@ -27,6 +31,10 @@ and/or use gtk-doc annotations. --> + + + + @@ -238,6 +246,10 @@ and/or use gtk-doc annotations. --> + + + + @@ -268,10 +280,31 @@ and/or use gtk-doc annotations. --> + + + + + + + + + + + + + + + + + + + + + @@ -302,6 +335,129 @@ and/or use gtk-doc annotations. --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -333,6 +489,10 @@ and/or use gtk-doc annotations. --> + + + + diff --git a/girs/GstCuda-1.0.gir b/girs/GstCuda-1.0.gir index 77c0c04585..6e08fdf886 100644 --- a/girs/GstCuda-1.0.gir +++ b/girs/GstCuda-1.0.gir @@ -263,6 +263,41 @@ This method is conceptually identical to gst_buffer_pool_set_active method. + + Allocates new #GstMemory object with CUDA virtual memory. + + + a newly allocated memory object or +%NULL if allocation is not supported + + + + + a #GstCudaAllocator + + + + a #GstCudaContext + + + + a #GstCudaStream + + + + a #GstVideoInfo + + + + allocation property + + + + allocation flags + + + + @@ -462,6 +497,14 @@ so all CUDA functions that operate on the current context are affected. + + OS handle supportability in virtual memory management + + + + Virtual memory management supportability + + @@ -645,6 +688,43 @@ Free with gst_cuda_graphics_resource_free + + Exports virtual memory handle to OS specific handle. + +On Windows, @os_handle should be pointer to HANDLE (i.e., void **), and +pointer to file descriptor (i.e., int *) on Linux. + +The returned @os_handle is owned by @mem and therefore caller shouldn't +close the handle. + + + %TRUE if successful + + + + + a #GstCudaMemory + + + + a pointer to OS handle + + + + + + Query allocation method + + + + + + + a #GstCudaMemory + + + + Gets CUDA stream object associated with @mem @@ -765,6 +845,15 @@ CUDA stream is in use + + CUDA memory allocation method + + + + + + + @@ -803,6 +892,34 @@ CUDA stream is in use + + Creates a new #GstCudaPoolAllocator instance for virtual memory allocation. + + + a new #GstCudaPoolAllocator instance + + + + + a #GstCudaContext + + + + a #GstCudaStream + + + + a #GstVideoInfo + + + + + + + + + + Acquires a #GstMemory from @allocator. @memory should point to a memory location that can hold a pointer to the new #GstMemory. @@ -1011,6 +1128,19 @@ CUDA device/host memory + + Gets configured allocation method + + + + + + + a buffer pool config + + + + @@ -1025,6 +1155,22 @@ on @config or %NULL if @config doesn't hold #GstCudaStream + + Sets allocation method + + + + + + + a buffer pool config + + + + + + + Sets @stream on @config