Lines Matching refs:out_fmt
79 av_cold int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt) in swri_dither_init() argument
87 out_fmt = av_get_packed_sample_fmt(out_fmt); in swri_dither_init()
91 if(out_fmt == AV_SAMPLE_FMT_S32) scale = 1.0/(1LL<<31); in swri_dither_init()
92 if(out_fmt == AV_SAMPLE_FMT_S16) scale = 1.0/(1LL<<15); in swri_dither_init()
93 if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1LL<< 7); in swri_dither_init()
95 …if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S32 && (s->dither.output_sample_bits&31… in swri_dither_init()
96 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S16) scale = 1<<16; in swri_dither_init()
97 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<24; in swri_dither_init()
98 if(in_fmt == AV_SAMPLE_FMT_S16 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<8; in swri_dither_init()
102 if (out_fmt == AV_SAMPLE_FMT_S32 && s->dither.output_sample_bits) in swri_dither_init()
122 …ns_scale_1 *= 1 - exp(f->gain_cB * M_LN10 * 0.005) * 2 / (1<<(8*av_get_bytes_per_sample(out_fmt))); in swri_dither_init()