[FFmpeg-soc] [soc]: r2759 - in aacenc: aacenc.c aacpsy.c

kostya subversion at mplayerhq.hu
Fri Jul 11 07:55:07 CEST 2008


Author: kostya
Date: Fri Jul 11 07:55:07 2008
New Revision: 2759

Log:
Chill several init/uninit functions

Modified:
   aacenc/aacenc.c
   aacenc/aacpsy.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Fri Jul 11 07:55:07 2008
@@ -209,7 +209,7 @@ static void put_audio_specific_config(AV
     flush_put_bits(&pb);
 }
 
-static int aac_encode_init(AVCodecContext *avctx)
+static av_cold int aac_encode_init(AVCodecContext *avctx)
 {
     AACEncContext *s = avctx->priv_data;
     int i;
@@ -649,7 +649,7 @@ static void put_bitstream_info(AVCodecCo
     put_bits(&s->pb, 12 - padbits, 0);
 }
 
-static int aac_encode_frame(AVCodecContext *avctx,
+static av_cold int aac_encode_frame(AVCodecContext *avctx,
                             uint8_t *frame, int buf_size, void *data)
 {
     AACEncContext *s = avctx->priv_data;

Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c	(original)
+++ aacenc/aacpsy.c	Fri Jul 11 07:55:07 2008
@@ -356,7 +356,7 @@ static inline float ath(float f, float a
             + (0.6 + 0.04 * add) * 0.001 * f * f * f * f;
 }
 
-static int psy_3gpp_init(AACPsyContext *apc)
+static av_cold int psy_3gpp_init(AACPsyContext *apc)
 {
     Psy3gppContext *pctx;
     int i, g, start;
@@ -577,7 +577,7 @@ static void psy_3gpp_process(AACPsyConte
     psy_create_output(apc, cpe, 0);
 }
 
-static void psy_3gpp_end(AACPsyContext *apc)
+static av_cold void psy_3gpp_end(AACPsyContext *apc)
 {
     av_freep(&apc->model_priv_data);
 }
@@ -607,7 +607,7 @@ static const AACPsyModel psy_models[AAC_
     },
 };
 
-int ff_aac_psy_init(AACPsyContext *ctx, AVCodecContext *avctx, int model, int flags,
+int av_cold ff_aac_psy_init(AACPsyContext *ctx, AVCodecContext *avctx, int model, int flags,
                     const uint8_t *bands1024, int num_bands1024,
                     const uint8_t *bands128,  int num_bands128)
 {
@@ -644,7 +644,7 @@ void ff_aac_psy_analyze(AACPsyContext *c
     ctx->model->process(ctx, audio, channel, cpe);
 }
 
-void ff_aac_psy_end(AACPsyContext *ctx)
+void av_cold ff_aac_psy_end(AACPsyContext *ctx)
 {
     if(ctx->model->end)
         return ctx->model->end(ctx);



More information about the FFmpeg-soc mailing list