Lines Matching defs:scale
27 double scale = s->dither.noise_scale;
64 v*= scale;
82 double scale = 0;
91 if(out_fmt == AV_SAMPLE_FMT_S32) scale = 1.0/(1LL<<31);
92 if(out_fmt == AV_SAMPLE_FMT_S16) scale = 1.0/(1LL<<15);
93 if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1LL<< 7);
95 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S32 && (s->dither.output_sample_bits&31)) scale = 1;
96 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S16) scale = 1<<16;
97 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<24;
98 if(in_fmt == AV_SAMPLE_FMT_S16 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<8;
100 scale *= s->dither.scale;
103 scale *= 1<<(32-s->dither.output_sample_bits);
105 if (scale == 0) {
111 s->dither.noise_scale= scale;
112 s->dither.ns_scale = scale;
113 s->dither.ns_scale_1 = scale ? 1/scale : 0;