[FFmpeg-cvslog] r16980 - in trunk/libavcodec: intrax8.c mdct.c

alexc subversion
Wed Feb 4 00:09:00 CET 2009


Author: alexc
Date: Wed Feb  4 00:09:00 2009
New Revision: 16980

Log:
Add av_cold attributes to *_init and *_end functions.

Modified:
   trunk/libavcodec/intrax8.c
   trunk/libavcodec/mdct.c

Modified: trunk/libavcodec/intrax8.c
==============================================================================
--- trunk/libavcodec/intrax8.c	Wed Feb  4 00:03:41 2009	(r16979)
+++ trunk/libavcodec/intrax8.c	Wed Feb  4 00:09:00 2009	(r16980)
@@ -42,7 +42,7 @@ static VLC j_ac_vlc[2][2][8];  //[quant<
 static VLC j_dc_vlc[2][8];     //[quant], [select]
 static VLC j_orient_vlc[2][4]; //[quant], [select]
 
-static void x8_vlc_init(void){
+static av_cold void x8_vlc_init(void){
     int i;
 
 #define  init_ac_vlc(dst,src) \
@@ -664,7 +664,7 @@ static void x8_init_block_index(MpegEncC
  * @param w pointer to IntraX8Context
  * @param s pointer to MpegEncContext of the parent codec
  */
-void ff_intrax8_common_init(IntraX8Context * w, MpegEncContext * const s){
+av_cold void ff_intrax8_common_init(IntraX8Context * w, MpegEncContext * const s){
 
     w->s=s;
     x8_vlc_init();
@@ -680,7 +680,7 @@ void ff_intrax8_common_init(IntraX8Conte
  * Destroy IntraX8 frame structure.
  * @param w pointer to IntraX8Context
  */
-void ff_intrax8_common_end(IntraX8Context * w)
+av_cold void ff_intrax8_common_end(IntraX8Context * w)
 {
     av_freep(&w->prediction_table);
 }

Modified: trunk/libavcodec/mdct.c
==============================================================================
--- trunk/libavcodec/mdct.c	Wed Feb  4 00:03:41 2009	(r16979)
+++ trunk/libavcodec/mdct.c	Wed Feb  4 00:09:00 2009	(r16980)
@@ -27,7 +27,7 @@
 
 // Generate a Kaiser-Bessel Derived Window.
 #define BESSEL_I0_ITER 50 // default: 50 iterations of Bessel I0 approximation
-void ff_kbd_window_init(float *window, float alpha, int n)
+av_cold void ff_kbd_window_init(float *window, float alpha, int n)
 {
    int i, j;
    double sum = 0.0, bessel, tmp;
@@ -59,7 +59,7 @@ float *ff_sine_windows[6] = {
 };
 
 // Generate a sine window.
-void ff_sine_window_init(float *window, int n) {
+av_cold void ff_sine_window_init(float *window, int n) {
     int i;
     for(i = 0; i < n; i++)
         window[i] = sinf((i + 0.5) * (M_PI / (2.0 * n)));
@@ -68,7 +68,7 @@ void ff_sine_window_init(float *window, 
 /**
  * init MDCT or IMDCT computation.
  */
-int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
+av_cold int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
 {
     int n, n4, i;
     double alpha;
@@ -223,7 +223,7 @@ void ff_mdct_calc(MDCTContext *s, FFTSam
     }
 }
 
-void ff_mdct_end(MDCTContext *s)
+av_cold void ff_mdct_end(MDCTContext *s)
 {
     av_freep(&s->tcos);
     av_freep(&s->tsin);




More information about the ffmpeg-cvslog mailing list