cosmetics: vertical alignment and line wrap
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
d42dc217ed
commit
75b98610a7
3 changed files with 9 additions and 8 deletions
|
|
@ -49,9 +49,9 @@ typedef struct FFIIRFilterState{
|
||||||
|
|
||||||
av_cold struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(void *avc,
|
av_cold struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(void *avc,
|
||||||
enum IIRFilterType filt_type,
|
enum IIRFilterType filt_type,
|
||||||
enum IIRFilterMode filt_mode,
|
enum IIRFilterMode filt_mode,
|
||||||
int order, float cutoff_ratio,
|
int order, float cutoff_ratio,
|
||||||
float stopband, float ripple)
|
float stopband, float ripple)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
FFIIRFilterCoeffs *c;
|
FFIIRFilterCoeffs *c;
|
||||||
|
|
|
||||||
|
|
@ -62,9 +62,9 @@ enum IIRFilterMode{
|
||||||
*/
|
*/
|
||||||
struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(void *avc,
|
struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(void *avc,
|
||||||
enum IIRFilterType filt_type,
|
enum IIRFilterType filt_type,
|
||||||
enum IIRFilterMode filt_mode,
|
enum IIRFilterMode filt_mode,
|
||||||
int order, float cutoff_ratio,
|
int order, float cutoff_ratio,
|
||||||
float stopband, float ripple);
|
float stopband, float ripple);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create new filter state.
|
* Create new filter state.
|
||||||
|
|
|
||||||
|
|
@ -88,8 +88,9 @@ av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *av
|
||||||
cutoff_coeff = 2.0 * avctx->cutoff / avctx->sample_rate;
|
cutoff_coeff = 2.0 * avctx->cutoff / avctx->sample_rate;
|
||||||
|
|
||||||
if (cutoff_coeff)
|
if (cutoff_coeff)
|
||||||
ctx->fcoeffs = ff_iir_filter_init_coeffs(avctx, FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,
|
ctx->fcoeffs = ff_iir_filter_init_coeffs(avctx, FF_FILTER_TYPE_BUTTERWORTH,
|
||||||
FILT_ORDER, cutoff_coeff, 0.0, 0.0);
|
FF_FILTER_MODE_LOWPASS, FILT_ORDER,
|
||||||
|
cutoff_coeff, 0.0, 0.0);
|
||||||
if (ctx->fcoeffs) {
|
if (ctx->fcoeffs) {
|
||||||
ctx->fstate = av_mallocz(sizeof(ctx->fstate[0]) * avctx->channels);
|
ctx->fstate = av_mallocz(sizeof(ctx->fstate[0]) * avctx->channels);
|
||||||
for (i = 0; i < avctx->channels; i++)
|
for (i = 0; i < avctx->channels; i++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue