From b57c07d5a7d12ba7f55787061de33ab0ef4233e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Oct 2022 10:54:06 +0300 Subject: [PATCH] d3d11: Add/fix various annotations Part-of: --- .../gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp | 2 +- .../gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp index 76d3f2e..3fb5b7a 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp @@ -2884,7 +2884,7 @@ gst_d3d11_converter_setup_processor (GstD3D11Converter * self) * conversion path only for specified method(s) and set @method will be updated * with supported method. * - * Returns: a #GstD3D11Converter or %NULL if conversion is not possible + * Returns: (transfer full) (nullable): a #GstD3D11Converter or %NULL if conversion is not possible * * Since: 1.22 */ diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp index 8ba0169..e28281e 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp @@ -120,7 +120,7 @@ G_DEFINE_BOXED_TYPE_WITH_CODE (GstD3D11AllocationParams, * and #GstD3D11Allocator in order to allocate new ID3D11Texture2D * object with given configuration * - * Returns: a #GstD3D11AllocationParams or %NULL if @info is not supported + * Returns: (transfer full) (nullable): a #GstD3D11AllocationParams or %NULL if @info is not supported * * Since: 1.22 */ @@ -645,7 +645,7 @@ gst_d3d11_memory_init_once (void) * gst_d3d11_memory_get_resource_handle: * @mem: a #GstD3D11Memory * - * Returns: (transfer none): a ID3D11Resource handle. Caller must not release + * Returns: (transfer none) (nullable): a ID3D11Resource handle. Caller must not release * returned handle. * * Since: 1.22 @@ -1527,7 +1527,7 @@ gst_d3d11_allocator_alloc_internal (GstD3D11Allocator * self, * @device: (transfer none): a #GstD3D11Device * @desc: a D3D11_TEXTURE2D_DESC struct * - * Returns: a newly allocated #GstD3D11Memory with given parameters. + * Returns: (transfer full) (nullable): a newly allocated #GstD3D11Memory with given parameters. * * Since: 1.22 */ @@ -1565,7 +1565,7 @@ gst_d3d11_allocator_alloc (GstD3D11Allocator * allocator, * @device: (transfer none): a #GstD3D11Device * @desc: a D3D11_BUFFER_DESC struct * - * Returns: a newly allocated #GstD3D11Memory with given parameters. + * Returns: (transfer full) (nullable): a newly allocated #GstD3D11Memory with given parameters. * * Since: 1.22 */ @@ -1636,7 +1636,7 @@ gst_d3d11_allocator_alloc_buffer (GstD3D11Allocator * allocator, * Caller must not be confused that @size is CPU accessible size, not raw * texture size. * - * Returns: a newly allocated #GstD3D11Memory with given @texture + * Returns: (transfer full) (nullable): a newly allocated #GstD3D11Memory with given @texture * if successful, or %NULL if @texture is not a valid handle or configuration * is not supported. * -- 2.7.4