FFmpeg
Data Fields
DitherContext Struct Reference

#include <swresample_internal.h>

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
 
int 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 isn't possible More...
 
int output_sample_bits
 the number of used output bits, needed to scale dither correctly More...
 

Detailed Description

Definition at line 54 of file dither.c.

Field Documentation

◆ ddsp

DitherDSPContext DitherContext::ddsp

Definition at line 55 of file dither.c.

◆ method [1/2]

enum AVResampleDitherMethod DitherContext::method

Definition at line 56 of file dither.c.

◆ apply_map

int DitherContext::apply_map

Definition at line 57 of file dither.c.

◆ ch_map_info

ChannelMapInfo* DitherContext::ch_map_info

Definition at line 58 of file dither.c.

◆ mute_dither_threshold

int DitherContext::mute_dither_threshold

Definition at line 60 of file dither.c.

◆ mute_reset_threshold

int DitherContext::mute_reset_threshold

Definition at line 61 of file dither.c.

◆ ns_coef_b

const float* DitherContext::ns_coef_b

Definition at line 62 of file dither.c.

◆ ns_coef_a

const float* DitherContext::ns_coef_a

Definition at line 63 of file dither.c.

◆ channels

int DitherContext::channels

Definition at line 65 of file dither.c.

◆ state

DitherState* DitherContext::state

Definition at line 66 of file dither.c.

◆ flt_data

AudioData* DitherContext::flt_data

Definition at line 68 of file dither.c.

◆ s16_data

AudioData* DitherContext::s16_data

Definition at line 69 of file dither.c.

◆ ac_in

AudioConvert* DitherContext::ac_in

Definition at line 70 of file dither.c.

◆ ac_out

AudioConvert* DitherContext::ac_out

Definition at line 71 of file dither.c.

◆ quantize

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

Definition at line 73 of file dither.c.

◆ samples_align

int DitherContext::samples_align

Definition at line 74 of file dither.c.

◆ method [2/2]

int DitherContext::method

Definition at line 56 of file swresample_internal.h.

◆ noise_pos

int DitherContext::noise_pos

Definition at line 57 of file swresample_internal.h.

◆ scale

float DitherContext::scale

Definition at line 58 of file swresample_internal.h.

◆ noise_scale

float DitherContext::noise_scale

Noise scale.

Definition at line 59 of file swresample_internal.h.

◆ ns_taps

int DitherContext::ns_taps

Noise shaping dither taps.

Definition at line 60 of file swresample_internal.h.

◆ ns_scale

float DitherContext::ns_scale

Noise shaping dither scale.

Definition at line 61 of file swresample_internal.h.

◆ ns_scale_1

float DitherContext::ns_scale_1

Noise shaping dither scale^-1.

Definition at line 62 of file swresample_internal.h.

◆ ns_pos

int DitherContext::ns_pos

Noise shaping dither position.

Definition at line 63 of file swresample_internal.h.

◆ ns_coeffs

float DitherContext::ns_coeffs[NS_TAPS]

Noise shaping filter coefficients.

Definition at line 64 of file swresample_internal.h.

◆ ns_errors

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

Definition at line 65 of file swresample_internal.h.

◆ noise

AudioData DitherContext::noise

noise used for dithering

Definition at line 66 of file swresample_internal.h.

◆ temp

AudioData DitherContext::temp

temporary storage when writing into the input buffer isn't possible

Definition at line 67 of file swresample_internal.h.

◆ output_sample_bits

int DitherContext::output_sample_bits

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

Definition at line 68 of file swresample_internal.h.


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