Mercurial > libavcodec.hg
changeset 9947:1a345787ba68 libavcodec
Mark iir filter init and free functions av_cold.
author | alexc |
---|---|
date | Fri, 10 Jul 2009 20:55:15 +0000 |
parents | 0de8fdd06303 |
children | 98fd723f72e7 |
files | iirfilter.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/iirfilter.c Fri Jul 10 20:51:22 2009 +0000 +++ b/iirfilter.c Fri Jul 10 20:55:15 2009 +0000 @@ -47,7 +47,7 @@ /// maximum supported filter order #define MAXORDER 30 -struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type, +av_cold struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type, enum IIRFilterMode filt_mode, int order, float cutoff_ratio, float stopband, float ripple) @@ -112,7 +112,7 @@ return c; } -struct FFIIRFilterState* ff_iir_filter_init_state(int order) +av_cold struct FFIIRFilterState* ff_iir_filter_init_state(int order) { FFIIRFilterState* s = av_mallocz(sizeof(FFIIRFilterState) + sizeof(s->x[0]) * (order - 1)); return s; @@ -163,12 +163,12 @@ } } -void ff_iir_filter_free_state(struct FFIIRFilterState *state) +av_cold void ff_iir_filter_free_state(struct FFIIRFilterState *state) { av_free(state); } -void ff_iir_filter_free_coeffs(struct FFIIRFilterCoeffs *coeffs) +av_cold void ff_iir_filter_free_coeffs(struct FFIIRFilterCoeffs *coeffs) { if(coeffs){ av_free(coeffs->cx);