Mercurial > libavcodec.hg
comparison imc.c @ 8153:ef9f95604644 libavcodec
Set channel_layout
author | banan |
---|---|
date | Sun, 16 Nov 2008 09:54:09 +0000 |
parents | 85ab7655ad4d |
children | 6d2beae655f0 |
comparison
equal
deleted
inserted
replaced
8152:cddc3677e7dc | 8153:ef9f95604644 |
---|---|
153 q->one_div_log2 = 1/log(2); | 153 q->one_div_log2 = 1/log(2); |
154 | 154 |
155 ff_fft_init(&q->fft, 7, 1); | 155 ff_fft_init(&q->fft, 7, 1); |
156 dsputil_init(&q->dsp, avctx); | 156 dsputil_init(&q->dsp, avctx); |
157 avctx->sample_fmt = SAMPLE_FMT_S16; | 157 avctx->sample_fmt = SAMPLE_FMT_S16; |
158 avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; | |
158 return 0; | 159 return 0; |
159 } | 160 } |
160 | 161 |
161 static void imc_calculate_coeffs(IMCContext* q, float* flcoeffs1, float* flcoeffs2, int* bandWidthT, | 162 static void imc_calculate_coeffs(IMCContext* q, float* flcoeffs1, float* flcoeffs2, int* bandWidthT, |
162 float* flcoeffs3, float* flcoeffs5) | 163 float* flcoeffs3, float* flcoeffs5) |