Mercurial > libavcodec.hg
comparison dca.c @ 6517:48759bfbd073 libavcodec
Apply 'cold' attribute to init/uninit functions in libavcodec
author | zuxy |
---|---|
date | Fri, 21 Mar 2008 03:11:20 +0000 |
parents | 9f397992ddff |
children | 1b90003d4d60 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
176 | 176 |
177 int debug_flag; ///< used for suppressing repeated error messages output | 177 int debug_flag; ///< used for suppressing repeated error messages output |
178 DSPContext dsp; | 178 DSPContext dsp; |
179 } DCAContext; | 179 } DCAContext; |
180 | 180 |
181 static void dca_init_vlcs(void) | 181 static av_cold void dca_init_vlcs(void) |
182 { | 182 { |
183 static int vlcs_initialized = 0; | 183 static int vlcs_initialized = 0; |
184 int i, j; | 184 int i, j; |
185 | 185 |
186 if (vlcs_initialized) | 186 if (vlcs_initialized) |
1198 * Build the cosine modulation tables for the QMF | 1198 * Build the cosine modulation tables for the QMF |
1199 * | 1199 * |
1200 * @param s pointer to the DCAContext | 1200 * @param s pointer to the DCAContext |
1201 */ | 1201 */ |
1202 | 1202 |
1203 static void pre_calc_cosmod(DCAContext * s) | 1203 static av_cold void pre_calc_cosmod(DCAContext * s) |
1204 { | 1204 { |
1205 int i, j, k; | 1205 int i, j, k; |
1206 static int cosmod_initialized = 0; | 1206 static int cosmod_initialized = 0; |
1207 | 1207 |
1208 if(cosmod_initialized) return; | 1208 if(cosmod_initialized) return; |
1228 * DCA initialization | 1228 * DCA initialization |
1229 * | 1229 * |
1230 * @param avctx pointer to the AVCodecContext | 1230 * @param avctx pointer to the AVCodecContext |
1231 */ | 1231 */ |
1232 | 1232 |
1233 static int dca_decode_init(AVCodecContext * avctx) | 1233 static av_cold int dca_decode_init(AVCodecContext * avctx) |
1234 { | 1234 { |
1235 DCAContext *s = avctx->priv_data; | 1235 DCAContext *s = avctx->priv_data; |
1236 | 1236 |
1237 s->avctx = avctx; | 1237 s->avctx = avctx; |
1238 dca_init_vlcs(); | 1238 dca_init_vlcs(); |