Function

GstAudio-1.0GstAudiodsd_convertSince 1.24

  • Converts DSD data from one layout and grouping format to another. num_bytes must be an integer multiple of the width of both input and output format. For example, if the input format is GST_DSD_FORMAT_U32LE, and the output format is GST_DSD_FORMAT_U16BE, then num_bytes must be an integer multiple of both 4 (U32LE width) and 2 (U16BE width).

    reverse_byte_bits is necessary if the bit order within the DSD bytes needs to be reversed. This is rarely necessary, and is not to be confused with the endianness of formats (which determines the ordering of bytes).

    input_plane_offsets must not be NULL if input_layout is set to #GST_AUDIO_LAYOUT_NON_INTERLEAVED. The same applies to output_plane_offsets. These plane offsets define the starting offset of the planes (there is exactly one plane per channel) within input_data and output_data respectively. If GST_AUDIO_LAYOUT_INTERLEAVED is used, the plane offsets are ignored.

    Parameters

    • input_data: string | Uint8Array<ArrayBufferLike>

      the DSD format conversion's input source

    • output_data: string | Uint8Array<ArrayBufferLike>

      the DSD format conversion's output destination

    • input_format: GstAudio.DsdFormat

      DSD format of the input data to convert from

    • output_format: GstAudio.DsdFormat

      DSD format of the output data to convert to

    • input_layout: GstAudio.AudioLayout

      Input data layout

    • output_layout: GstAudio.AudioLayout

      Output data layout

    • input_plane_offsets: (number | bigint)[]

      Plane offsets for non-interleaved input data

    • output_plane_offsets: (number | bigint)[]

      Plane offsets for non-interleaved output data

    • num_dsd_bytes: number | bigint

      How many bytes with DSD data to convert

    • reverse_byte_bits: boolean

      If TRUE, reverse the bits in each DSD byte

    Returns void

    1.24