aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2009-07-10 20:55:15 +0000
committerAlex Converse <alex.converse@gmail.com>2009-07-10 20:55:15 +0000
commitc8ec2f1cb8b0cdea17a94468b89b66334f5f523e (patch)
tree8ee9009ab78c73a4455cd32b7d5784346cae814b /libavcodec
parent47f49f98cae7b18a0afb2cd28513f81dced9c737 (diff)
downloadffmpeg-c8ec2f1cb8b0cdea17a94468b89b66334f5f523e.tar.gz
Mark iir filter init and free functions av_cold.
Originally committed as revision 19398 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/iirfilter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c
index dc78c7f0e3..87206fc5d2 100644
--- a/libavcodec/iirfilter.c
+++ b/libavcodec/iirfilter.c
@@ -47,7 +47,7 @@ typedef struct FFIIRFilterState{
/// 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 @@ struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type
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(const struct FFIIRFilterCoeffs *c, struct FFIIRFilterState *s
}
}
-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);