Commit e78519e7 authored by alexc's avatar alexc

Mark iir filter init and free functions av_cold.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19398 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d89f9ffa
...@@ -47,7 +47,7 @@ typedef struct FFIIRFilterState{ ...@@ -47,7 +47,7 @@ typedef struct FFIIRFilterState{
/// maximum supported filter order /// maximum supported filter order
#define MAXORDER 30 #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, enum IIRFilterMode filt_mode,
int order, float cutoff_ratio, int order, float cutoff_ratio,
float stopband, float ripple) float stopband, float ripple)
...@@ -112,7 +112,7 @@ struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type ...@@ -112,7 +112,7 @@ struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type
return c; 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)); FFIIRFilterState* s = av_mallocz(sizeof(FFIIRFilterState) + sizeof(s->x[0]) * (order - 1));
return s; return s;
...@@ -163,12 +163,12 @@ void ff_iir_filter(const struct FFIIRFilterCoeffs *c, struct FFIIRFilterState *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); 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){ if(coeffs){
av_free(coeffs->cx); av_free(coeffs->cx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment