[MPlayer-cvslog] r24918 - in trunk: libaf/af.c libaf/af_tools.c libaf/filter.c libaf/format.c libvo/x11_common.c

uau subversion at mplayerhq.hu
Thu Nov 1 07:52:10 CET 2007


Author: uau
Date: Thu Nov  1 07:52:10 2007
New Revision: 24918

Log:
Remove some pointless 'inline' qualifiers

Most of these functions aren't even used in the same translation unit.


Modified:
   trunk/libaf/af.c
   trunk/libaf/af_tools.c
   trunk/libaf/filter.c
   trunk/libaf/format.c
   trunk/libvo/x11_common.c

Modified: trunk/libaf/af.c
==============================================================================
--- trunk/libaf/af.c	(original)
+++ trunk/libaf/af.c	Thu Nov  1 07:52:10 2007
@@ -572,7 +572,7 @@ double af_calc_delay(af_stream_t* s)
 
 /* Helper function called by the macro with the same name this
    function should not be called directly */
-inline int af_resize_local_buffer(af_instance_t* af, af_data_t* data)
+int af_resize_local_buffer(af_instance_t* af, af_data_t* data)
 {
   // Calculate new length
   register int len = af_lencalc(af->mul,data);

Modified: trunk/libaf/af_tools.c
==============================================================================
--- trunk/libaf/af_tools.c	(original)
+++ trunk/libaf/af_tools.c	Thu Nov  1 07:52:10 2007
@@ -4,7 +4,7 @@
 
 /* Convert to gain value from dB. Returns AF_OK if of and AF_ERROR if
    fail */
-inline int af_from_dB(int n, float* in, float* out, float k, float mi, float ma)
+int af_from_dB(int n, float* in, float* out, float k, float mi, float ma)
 {
   int i = 0; 
   // Sanity check
@@ -22,7 +22,7 @@ inline int af_from_dB(int n, float* in, 
 
 /* Convert from gain value to dB. Returns AF_OK if of and AF_ERROR if
    fail */
-inline int af_to_dB(int n, float* in, float* out, float k)
+int af_to_dB(int n, float* in, float* out, float k)
 {
   int i = 0; 
   // Sanity check
@@ -39,7 +39,7 @@ inline int af_to_dB(int n, float* in, fl
 }
 
 /* Convert from ms to sample time */
-inline int af_from_ms(int n, float* in, int* out, int rate, float mi, float ma)
+int af_from_ms(int n, float* in, int* out, int rate, float mi, float ma)
 {
   int i = 0; 
   // Sanity check
@@ -53,7 +53,7 @@ inline int af_from_ms(int n, float* in, 
 }
 
 /* Convert from sample time to ms */
-inline int af_to_ms(int n, int* in, float* out, int rate)
+int af_to_ms(int n, int* in, float* out, int rate)
 {
   int i = 0; 
   // Sanity check
@@ -67,7 +67,7 @@ inline int af_to_ms(int n, int* in, floa
 }
 
 /* Helper function for testing the output format */
-inline int af_test_output(struct af_instance_s* af, af_data_t* out)
+int af_test_output(struct af_instance_s* af, af_data_t* out)
 {
   if((af->data->format != out->format) || 
      (af->data->bps    != out->bps)    ||
@@ -81,7 +81,7 @@ inline int af_test_output(struct af_inst
 
 /* Soft clipping, the sound of a dream, thanks to Jon Wattes
    post to Musicdsp.org */
-inline float af_softclip(float a)
+float af_softclip(float a)
 {
     if (a >= M_PI/2)
 	return 1.0;

Modified: trunk/libaf/filter.c
==============================================================================
--- trunk/libaf/filter.c	(original)
+++ trunk/libaf/filter.c	Thu Nov  1 07:52:10 2007
@@ -46,7 +46,7 @@ inline _ftype_t af_filter_fir(register u
    y  output buffer
    s  output buffer stride
 */
-inline _ftype_t* af_filter_pfir(unsigned int n, unsigned int d, unsigned int xi, _ftype_t** w, _ftype_t** x, _ftype_t* y, unsigned int s)
+_ftype_t* af_filter_pfir(unsigned int n, unsigned int d, unsigned int xi, _ftype_t** w, _ftype_t** x, _ftype_t* y, unsigned int s)
 {
   register _ftype_t* xt = *x + xi;
   register _ftype_t* wt = *w;
@@ -65,7 +65,7 @@ inline _ftype_t* af_filter_pfir(unsigned
    at the new samples, xi current index in xq and n the length of the
    filter. xq must be n*2 by k big, s is the index for in.
 */
-inline int af_filter_updatepq(unsigned int n, unsigned int d, unsigned int xi, _ftype_t** xq, _ftype_t* in, unsigned int s)  
+int af_filter_updatepq(unsigned int n, unsigned int d, unsigned int xi, _ftype_t** xq, _ftype_t* in, unsigned int s)
 {
   register _ftype_t* txq = *xq + xi;
   register int nt = n*2;

Modified: trunk/libaf/format.c
==============================================================================
--- trunk/libaf/format.c	(original)
+++ trunk/libaf/format.c	Thu Nov  1 07:52:10 2007
@@ -62,7 +62,7 @@ int af_str2fmt(const char* str)
   return format;
 }
 
-inline int af_fmt2bits(int format)
+int af_fmt2bits(int format)
 {
     return (format & AF_FORMAT_BITS_MASK)+8;
 //    return (((format & AF_FORMAT_BITS_MASK)>>3)+1) * 8;
@@ -79,7 +79,7 @@ inline int af_fmt2bits(int format)
     return -1;
 }
 
-inline int af_bits2fmt(int bits)
+int af_bits2fmt(int bits)
 {
     return (bits/8 - 1) << 3;
 }

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	(original)
+++ trunk/libvo/x11_common.c	Thu Nov  1 07:52:10 2007
@@ -2566,7 +2566,7 @@ int vo_xv_init_colorkey(void)
  * It doesn't call XFlush.
  *
  */
-inline void vo_xv_draw_colorkey(  int32_t x,  int32_t y,
+void vo_xv_draw_colorkey(  int32_t x,  int32_t y,
                                   int32_t w,  int32_t h  )
 {
   if( xv_ck_info.method == CK_METHOD_MANUALFILL ||



More information about the MPlayer-cvslog mailing list