* 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 *
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)
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;