FFmpeg
Public Attributes | List of all members
DitherDSPContext Struct Reference

Public Attributes

void(* quantize )(int16_t *dst, const float *src, float *dither, int len)
 Convert samples from flt to s16 with added dither noise. More...
 
int ptr_align
 src and dst constraints for quantize()
 
int samples_align
 len constraints for quantize()
 
void(* dither_int_to_float )(float *dst, int *src0, int len)
 Convert dither noise from int to float with triangular distribution. More...
 

Member Data Documentation

§ dither_int_to_float

void(* DitherDSPContext::dither_int_to_float) (float *dst, int *src0, int len)

Convert dither noise from int to float with triangular distribution.

Parameters
dstdestination float array, range -0.5 to 0.5 constraints: 32-byte aligned
src0source int array, range INT_MIN to INT_MAX. the array size is len * 2 constraints: 32-byte aligned
lennumber of output noise samples constraints: multiple of 16

§ quantize

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

Convert samples from flt to s16 with added dither noise.

Parameters
dstdestination float array, range -0.5 to 0.5
srcsource int array, range INT_MIN to INT_MAX.
ditherfloat dither noise array
lennumber of samples

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