Lines Matching defs:DitherContext
55 struct DitherContext { struct
56 int method;
57 int noise_pos;
58 float scale;
59 float noise_scale; ///< Noise scale
60 int ns_taps; ///< Noise shaping dither taps
61 float ns_scale; ///< Noise shaping dither scale
62 float ns_scale_1; ///< Noise shaping dither scale^-1
63 int ns_pos; ///< Noise shaping dither position
64 float ns_coeffs[NS_TAPS]; ///< Noise shaping filter coefficients
65 float ns_errors[SWR_CH_MAX][2*NS_TAPS];
66 AudioData noise; ///< noise used for dithering
67 … ///< temporary storage when writing into the input buffer isn't possible
68 …bits; ///< the number of used output bits, needed to scale dither correctly