mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
audio-quantize: update docs
Update docs Add another flag for the quantizer
This commit is contained in:
parent
1635bc0a45
commit
59db8ce542
2 changed files with 24 additions and 2 deletions
|
@ -420,6 +420,9 @@ count_power (guint v)
|
|||
* Output samples will be quantized to a multiple of @quantizer. Better
|
||||
* performance is achieved when @quantizer is a power of 2.
|
||||
*
|
||||
* Dithering and noise-shaping can be performed during quantization with
|
||||
* the @dither and @ns parameters.
|
||||
*
|
||||
* Returns: a new #GstAudioQuantize. Free with gst_audio_quantize_free().
|
||||
*/
|
||||
GstAudioQuantize *
|
||||
|
@ -472,6 +475,18 @@ gst_audio_quantize_free (GstAudioQuantize * quant)
|
|||
g_slice_free (GstAudioQuantize, quant);
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_audio_quantize_samples:
|
||||
* @quant: a #GstAudioQuantize
|
||||
* @src: source samples
|
||||
* @dst: output samples
|
||||
* @samples: number of samples
|
||||
*
|
||||
* Perform quantization on @samples in @src and write the result to @dst.
|
||||
*
|
||||
* @src and @dst may point to the same memory location, in which case samples will be
|
||||
* modified in-place.
|
||||
*/
|
||||
void
|
||||
gst_audio_quantize_samples (GstAudioQuantize * quant,
|
||||
const gpointer src, gpointer dst, guint samples)
|
||||
|
|
|
@ -65,10 +65,17 @@ typedef enum
|
|||
GST_AUDIO_NOISE_SHAPING_HIGH
|
||||
} GstAudioNoiseShapingMethod;
|
||||
|
||||
|
||||
/**
|
||||
* GstAudioQuantizeFlags:
|
||||
* @GST_AUDIO_QUANTIZE_FLAG_NONE: no flags
|
||||
* @GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED: samples are non-interleaved
|
||||
*
|
||||
* Extra flags that can be passed to gst_audio_quantize_new()
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GST_AUDIO_QUANTIZE_FLAG_NONE = 0
|
||||
GST_AUDIO_QUANTIZE_FLAG_NONE = 0,
|
||||
GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED = (1 << 0)
|
||||
} GstAudioQuantizeFlags;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue