From 654609ef158a33a99c9887a4660c23f135a2a350 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 10 Jul 2023 14:44:58 +0200 Subject: [PATCH] dsd: Fix documentation parameters There were some inconsistencies between documentation and function signatures Part-of: --- girs/GstAudio-1.0.gir | 16 +++++++++++----- .../gst-plugins-base/gst-libs/gst/audio/gstdsd.c | 2 +- .../gst-plugins-base/gst-libs/gst/audio/gstdsd.h | 2 +- .../gst-libs/gst/audio/gstdsdformat.c | 4 ++-- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/girs/GstAudio-1.0.gir b/girs/GstAudio-1.0.gir index 368480ee7a..94e1db365f 100644 --- a/girs/GstAudio-1.0.gir +++ b/girs/GstAudio-1.0.gir @@ -9723,7 +9723,7 @@ in a more readable fashion. 32 DSD bits in 4 bytes, native endianness - Convert the @format string to its #GstDsdFormat. + Convert the DSD format string @str to its #GstDsdFormat. the #GstDsdFormat for @format or GST_DSD_FORMAT_UNKNOWN when the @@ -9732,6 +9732,7 @@ string is not a known format. + a DSD format string @@ -9947,8 +9948,11 @@ Note: This initializes @info first, no values are preserved. the number of channels - - + + the channel positions + + + @@ -11580,13 +11584,14 @@ are ignored. Number of channels (must be at least 1) - + + If TRUE, reverse the bits in each DSD byte - Convert the @format string to its #GstDsdFormat. + Convert the DSD format string @str to its #GstDsdFormat. the #GstDsdFormat for @format or GST_DSD_FORMAT_UNKNOWN when the @@ -11595,6 +11600,7 @@ string is not a known format. + a DSD format string diff --git a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.c b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.c index 62da97ed84..9b17509006 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.c @@ -345,7 +345,7 @@ gst_dsd_info_init (GstDsdInfo * info) * @format: the format * @rate: the DSD rate * @channels: the number of channels - * @position: (array fixed-size=64) (nullable): the channel positions + * @positions: (array fixed-size=64) (nullable): the channel positions * * Set the default info for the DSD info of @format and @rate and @channels. * diff --git a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.h b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.h index 4947c32db1..c59bf433a0 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsd.h @@ -311,7 +311,7 @@ void gst_dsd_convert (const guint8 *input_data, const gsize *output_plane_offsets, gsize num_dsd_bytes, gint num_channels, - gboolean reverse_bytes); + gboolean reverse_byte_bits); /** * gst_dsd_format_is_le: diff --git a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.c b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.c index 8c657b5695..77ec7e5b14 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/audio/gstdsdformat.c @@ -25,9 +25,9 @@ /** * gst_dsd_format_from_string: - * @format: a format string + * @str: a DSD format string * - * Convert the @format string to its #GstDsdFormat. + * Convert the DSD format string @str to its #GstDsdFormat. * * Returns: the #GstDsdFormat for @format or GST_DSD_FORMAT_UNKNOWN when the * string is not a known format.