[FFmpeg-cvslog] swr: add av_cold to init/free functions
Michael Niedermayer
git at videolan.org
Sun Sep 9 02:41:40 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 9 02:26:20 2012 +0200| [31a797eb2846ffa9c7ef2fa0abf81e946a173e6e] | committer: Michael Niedermayer
swr: add av_cold to init/free functions
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31a797eb2846ffa9c7ef2fa0abf81e946a173e6e
---
libswresample/rematrix.c | 6 +++---
libswresample/swresample.c | 6 +++---
libswresample/x86/swresample_x86.c | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index 1117f23..72da438 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -133,7 +133,7 @@ static int sane_layout(int64_t layout){
return 1;
}
-static int auto_matrix(SwrContext *s)
+av_cold static int auto_matrix(SwrContext *s)
{
int i, j, out_i;
double matrix[64][64]={{0}};
@@ -349,7 +349,7 @@ static int auto_matrix(SwrContext *s)
return 0;
}
-int swri_rematrix_init(SwrContext *s){
+av_cold int swri_rematrix_init(SwrContext *s){
int i, j;
int nb_in = av_get_channel_layout_nb_channels(s->in_ch_layout);
int nb_out = av_get_channel_layout_nb_channels(s->out_ch_layout);
@@ -409,7 +409,7 @@ int swri_rematrix_init(SwrContext *s){
return 0;
}
-void swri_rematrix_free(SwrContext *s){
+av_cold void swri_rematrix_free(SwrContext *s){
av_freep(&s->native_matrix);
av_freep(&s->native_one);
av_freep(&s->native_simd_matrix);
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index e5ca54f..fdd5aae 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -144,7 +144,7 @@ const AVClass *swr_get_class(void)
return &av_class;
}
-struct SwrContext *swr_alloc(void){
+av_cold struct SwrContext *swr_alloc(void){
SwrContext *s= av_mallocz(sizeof(SwrContext));
if(s){
s->av_class= &av_class;
@@ -187,7 +187,7 @@ static void free_temp(AudioData *a){
memset(a, 0, sizeof(*a));
}
-void swr_free(SwrContext **ss){
+av_cold void swr_free(SwrContext **ss){
SwrContext *s= *ss;
if(s){
free_temp(&s->postin);
@@ -205,7 +205,7 @@ void swr_free(SwrContext **ss){
av_freep(ss);
}
-int swr_init(struct SwrContext *s){
+av_cold int swr_init(struct SwrContext *s){
s->in_buffer_index= 0;
s->in_buffer_count= 0;
s->resample_in_constraint= 0;
diff --git a/libswresample/x86/swresample_x86.c b/libswresample/x86/swresample_x86.c
index 93db7e3..e18f0c5 100644
--- a/libswresample/x86/swresample_x86.c
+++ b/libswresample/x86/swresample_x86.c
@@ -30,7 +30,7 @@ PROTO4(_pack_2ch)
PROTO4(_pack_6ch)
PROTO4(_unpack_2ch)
-void swri_audio_convert_init_x86(struct AudioConvert *ac,
+av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac,
enum AVSampleFormat out_fmt,
enum AVSampleFormat in_fmt,
int channels){
@@ -149,7 +149,7 @@ D(int16, mmx)
D(int16, sse2)
-void swri_rematrix_init_x86(struct SwrContext *s){
+av_cold void swri_rematrix_init_x86(struct SwrContext *s){
int mm_flags = av_get_cpu_flags();
int nb_in = av_get_channel_layout_nb_channels(s->in_ch_layout);
int nb_out = av_get_channel_layout_nb_channels(s->out_ch_layout);
More information about the ffmpeg-cvslog
mailing list