Lines Matching defs:scale
27 double scale = s->dither.noise_scale;
61 v*= scale;
78 double scale = 0;
87 if(out_fmt == AV_SAMPLE_FMT_S32) scale = 1.0/(1L<<31);
88 if(out_fmt == AV_SAMPLE_FMT_S16) scale = 1.0/(1L<<15);
89 if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1L<< 7);
91 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S32 && (s->dither.output_sample_bits&31)) scale = 1;
92 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S16) scale = 1L<<16;
93 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1L<<24;
94 if(in_fmt == AV_SAMPLE_FMT_S16 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1L<<8;
96 scale *= s->dither.scale;
99 scale *= 1<<(32-s->dither.output_sample_bits);
102 s->dither.noise_scale= scale;
103 s->dither.ns_scale = scale;
104 s->dither.ns_scale_1 = scale ? 1/scale : 0;