DitherContext Struct Reference

#include <swresample_internal.h>

Collaboration diagram for DitherContext:
Collaboration graph

Data Fields

DitherDSPContext ddsp
 
enum AVResampleDitherMethod method
 
int apply_map
 
ChannelMapInfoch_map_info
 
int mute_dither_threshold
 
int mute_reset_threshold
 
const float * ns_coef_b
 
const float * ns_coef_a
 
int channels
 
DitherStatestate
 
AudioDataflt_data
 
AudioDatas16_data
 
AudioConvertac_in
 
AudioConvertac_out
 
void(* quantize )(int16_t *dst, const float *src, float *dither, int len)
 
int samples_align
 
enum SwrDitherType method
 
int noise_pos
 
float scale
 
float noise_scale
 Noise scale. More...
 
int ns_taps
 Noise shaping dither taps. More...
 
float ns_scale
 Noise shaping dither scale. More...
 
float ns_scale_1
 Noise shaping dither scale^-1. More...
 
int ns_pos
 Noise shaping dither position. More...
 
float ns_coeffs [NS_TAPS]
 Noise shaping filter coefficients. More...
 
float ns_errors [SWR_CH_MAX][2 *NS_TAPS]
 
AudioData noise
 noise used for dithering More...
 
AudioData temp
 temporary storage when writing into the input buffer isnt possible More...
 
int output_sample_bits
 the number of used output bits, needed to scale dither correctly More...
 

Detailed Description

Definition at line 53 of file libavresample/dither.c.

Field Documentation

AudioConvert* DitherContext::ac_in

Definition at line 69 of file libavresample/dither.c.

Referenced by ff_convert_dither(), ff_dither_alloc(), and ff_dither_free().

AudioConvert* DitherContext::ac_out

Definition at line 70 of file libavresample/dither.c.

Referenced by ff_convert_dither(), ff_dither_alloc(), and ff_dither_free().

int DitherContext::apply_map

Definition at line 56 of file libavresample/dither.c.

Referenced by ff_convert_dither(), and ff_dither_alloc().

ChannelMapInfo* DitherContext::ch_map_info

Definition at line 57 of file libavresample/dither.c.

Referenced by ff_convert_dither(), and ff_dither_alloc().

int DitherContext::channels

Definition at line 64 of file libavresample/dither.c.

Referenced by ff_dither_alloc(), and ff_dither_free().

DitherDSPContext DitherContext::ddsp
AudioData* DitherContext::flt_data

Definition at line 67 of file libavresample/dither.c.

Referenced by ff_convert_dither(), ff_dither_alloc(), and ff_dither_free().

int DitherContext::mute_dither_threshold

Definition at line 59 of file libavresample/dither.c.

Referenced by ff_dither_alloc(), and quantize_triangular_ns().

int DitherContext::mute_reset_threshold

Definition at line 60 of file libavresample/dither.c.

Referenced by ff_dither_alloc(), and quantize_triangular_ns().

AudioData DitherContext::noise

noise used for dithering

Definition at line 64 of file swresample_internal.h.

Referenced by swr_convert_internal(), swr_free(), swr_init(), and swri_dither_init().

int DitherContext::noise_pos

Definition at line 55 of file swresample_internal.h.

Referenced by swr_convert_internal().

float DitherContext::noise_scale

Noise scale.

Definition at line 57 of file swresample_internal.h.

Referenced by swri_dither_init(), and swri_get_dither().

const float* DitherContext::ns_coef_a

Definition at line 62 of file libavresample/dither.c.

Referenced by ff_dither_alloc(), and quantize_triangular_ns().

const float* DitherContext::ns_coef_b

Definition at line 61 of file libavresample/dither.c.

Referenced by ff_dither_alloc(), and quantize_triangular_ns().

float DitherContext::ns_coeffs[NS_TAPS]

Noise shaping filter coefficients.

Definition at line 62 of file swresample_internal.h.

Referenced by swri_dither_init().

float DitherContext::ns_errors[SWR_CH_MAX][2 *NS_TAPS]

Definition at line 63 of file swresample_internal.h.

Referenced by swri_dither_init().

int DitherContext::ns_pos

Noise shaping dither position.

Definition at line 61 of file swresample_internal.h.

Referenced by swri_dither_init().

float DitherContext::ns_scale

Noise shaping dither scale.

Definition at line 59 of file swresample_internal.h.

Referenced by swri_dither_init().

float DitherContext::ns_scale_1

Noise shaping dither scale^-1.

Definition at line 60 of file swresample_internal.h.

Referenced by swri_dither_init().

int DitherContext::ns_taps

Noise shaping dither taps.

Definition at line 58 of file swresample_internal.h.

Referenced by swri_dither_init().

int DitherContext::output_sample_bits

the number of used output bits, needed to scale dither correctly

Definition at line 66 of file swresample_internal.h.

Referenced by swri_dither_init().

void(* DitherContext::quantize) (int16_t *dst, const float *src, float *dither, int len)

Definition at line 72 of file libavresample/dither.c.

Referenced by convert_samples(), and ff_convert_dither().

AudioData* DitherContext::s16_data

Definition at line 68 of file libavresample/dither.c.

Referenced by ff_convert_dither(), ff_dither_alloc(), and ff_dither_free().

int DitherContext::samples_align

Definition at line 73 of file libavresample/dither.c.

Referenced by convert_samples(), and ff_convert_dither().

float DitherContext::scale

Definition at line 56 of file swresample_internal.h.

Referenced by swri_dither_init().

DitherState* DitherContext::state

Definition at line 65 of file libavresample/dither.c.

Referenced by convert_samples(), ff_dither_alloc(), and ff_dither_free().

AudioData DitherContext::temp

temporary storage when writing into the input buffer isnt possible

Definition at line 65 of file swresample_internal.h.

Referenced by swr_convert_internal(), swr_free(), swr_init(), and swri_dither_init().


The documentation for this struct was generated from the following files: