Lines Matching refs:out_fmt
75 int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt) in swri_dither_init() argument
83 out_fmt = av_get_packed_sample_fmt(out_fmt); in swri_dither_init()
87 if(out_fmt == AV_SAMPLE_FMT_S32) scale = 1.0/(1L<<31); in swri_dither_init()
88 if(out_fmt == AV_SAMPLE_FMT_S16) scale = 1.0/(1L<<15); in swri_dither_init()
89 if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1L<< 7); in swri_dither_init()
91 …if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S32 && (s->dither.output_sample_bits&31… in swri_dither_init()
92 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S16) scale = 1L<<16; in swri_dither_init()
93 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1L<<24; in swri_dither_init()
94 if(in_fmt == AV_SAMPLE_FMT_S16 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1L<<8; in swri_dither_init()
98 if (out_fmt == AV_SAMPLE_FMT_S32 && s->dither.output_sample_bits) in swri_dither_init()
113 …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()