[MPlayer-cvslog] r30607 - trunk/libmpcodecs/vd_xanim.c

diego subversion at mplayerhq.hu
Wed Feb 17 22:29:05 CET 2010


Author: diego
Date: Wed Feb 17 22:29:05 2010
New Revision: 30607

Log:
Revert marking seemingly unused XAnim-binary-related functions as static.
The functions are required to load binary XAnim codecs, so they need to be kept.

Modified:
   trunk/libmpcodecs/vd_xanim.c

Modified: trunk/libmpcodecs/vd_xanim.c
==============================================================================
--- trunk/libmpcodecs/vd_xanim.c	Wed Feb 17 20:21:28 2010	(r30606)
+++ trunk/libmpcodecs/vd_xanim.c	Wed Feb 17 22:29:05 2010	(r30607)
@@ -335,7 +335,23 @@ static int xacodec_query(sh_video_t *sh,
     }
 }
 
-static void XA_Print(char *fmt, ...)
+/* These functions are required for loading XAnim binary libs.
+ * Add forward declarations to avoid warnings with -Wmissing-prototypes. */
+void XA_Print(char *fmt, ...);
+void TheEnd1(char *err_mess);
+void XA_Add_Func_To_Free_Chain(XA_ANIM_HDR *anim_hdr, void (*function)());
+unsigned long XA_Time_Read(void);
+void XA_Gen_YUV_Tabs(XA_ANIM_HDR *anim_hdr);
+void JPG_Setup_Samp_Limit_Table(XA_ANIM_HDR *anim_hdr);
+void JPG_Alloc_MCU_Bufs(XA_ANIM_HDR *anim_hdr, unsigned int width,
+                        unsigned int height, unsigned int full_flag);
+void *YUV2x2_Blk_Func(unsigned int image_type, int blks,
+                      unsigned int dith_flag);
+void *YUV2x2_Map_Func(unsigned int image_type, unsigned int dith_type);
+void *XA_YUV1611_Func(unsigned int image_type);
+void *XA_YUV221111_Func(unsigned int image_type);
+
+void XA_Print(char *fmt, ...)
 {
     va_list vallist;
     char buf[1024];
@@ -351,7 +367,7 @@ static void XA_Print(char *fmt, ...)
 /* 0 is no debug (needed by 3ivX) */
 long xa_debug = 0;
 
-static void TheEnd1(char *err_mess)
+void TheEnd1(char *err_mess)
 {
     XA_Print("error: %s - exiting\n", err_mess);
     /* we should exit here... */
@@ -359,7 +375,7 @@ static void TheEnd1(char *err_mess)
     return;
 }
 
-static void XA_Add_Func_To_Free_Chain(XA_ANIM_HDR *anim_hdr, void (*function)())
+void XA_Add_Func_To_Free_Chain(XA_ANIM_HDR *anim_hdr, void (*function)())
 {
 //    XA_Print("XA_Add_Func_To_Free_Chain('anim_hdr: %08x', 'function: %08x')",
 //	    anim_hdr, function);
@@ -370,7 +386,7 @@ static void XA_Add_Func_To_Free_Chain(XA
     return;
 }
 
-static unsigned long XA_Time_Read(void)
+unsigned long XA_Time_Read(void)
 {
     return GetTimer(); //(GetRelativeTime());
 }
@@ -380,20 +396,20 @@ static void XA_dummy(void)
     XA_Print("dummy() called");
 }
 
-static void XA_Gen_YUV_Tabs(XA_ANIM_HDR *anim_hdr)
+void XA_Gen_YUV_Tabs(XA_ANIM_HDR *anim_hdr)
 {
     XA_Print("XA_Gen_YUV_Tabs('anim_hdr: %08x')", anim_hdr);
     return;
 }
 
-static void JPG_Setup_Samp_Limit_Table(XA_ANIM_HDR *anim_hdr)
+void JPG_Setup_Samp_Limit_Table(XA_ANIM_HDR *anim_hdr)
 {
     XA_Print("JPG_Setup_Samp_Limit_Table('anim_hdr: %08x')", anim_hdr);
     return;
 }
 
-static void JPG_Alloc_MCU_Bufs(XA_ANIM_HDR *anim_hdr, unsigned int width,
-	unsigned int height, unsigned int full_flag)
+void JPG_Alloc_MCU_Bufs(XA_ANIM_HDR *anim_hdr, unsigned int width,
+                        unsigned int height, unsigned int full_flag)
 {
     XA_Print("JPG_Alloc_MCU_Bufs('anim_hdr: %08x', 'width: %d', 'height: %d', 'full_flag: %d')",
 	    anim_hdr, width, height, full_flag);
@@ -452,7 +468,7 @@ static void XA_2x2_OUT_4BLKS_Convert(uns
     return;
 }
 
-static void *YUV2x2_Blk_Func(unsigned int image_type, int blks, unsigned int dith_flag)
+void *YUV2x2_Blk_Func(unsigned int image_type, int blks, unsigned int dith_flag)
 {
     mp_dbg(MSGT_DECVIDEO,MSGL_DBG2, "YUV2x2_Blk_Func(image_type=%d, blks=%d, dith_flag=%d)\n",
 	image_type, blks, dith_flag);
@@ -486,7 +502,7 @@ static void XA_YUV_2x2_clr(XA_2x2_Color 
   return;
 }
 
-static void *YUV2x2_Map_Func(unsigned int image_type, unsigned int dith_type)
+void *YUV2x2_Map_Func(unsigned int image_type, unsigned int dith_type)
 {
     mp_dbg(MSGT_DECVIDEO,MSGL_DBG2, "YUV2x2_Map_Func('image_type: %d', 'dith_type: %d')",
 	    image_type, dith_type);
@@ -593,7 +609,7 @@ static void XA_YUV1611_Convert(unsigned 
     }
 }
 
-static void *XA_YUV1611_Func(unsigned int image_type)
+void *XA_YUV1611_Func(unsigned int image_type)
 {
     mp_dbg(MSGT_DECVIDEO,MSGL_DBG2, "XA_YUV1611_Func('image_type: %d')", image_type);
     return (void *)XA_YUV1611_Convert;
@@ -631,7 +647,7 @@ static void XA_YUV221111_Convert(unsigne
     mpi->stride[1]=mpi->stride[2]=uvstride;  //=i_x/4; // yuv->uv_w
 }
 
-static void *XA_YUV221111_Func(unsigned int image_type)
+void *XA_YUV221111_Func(unsigned int image_type)
 {
     mp_dbg(MSGT_DECVIDEO,MSGL_DBG2, "XA_YUV221111_Func('image_type: %d')\n",image_type);
     return (void *)XA_YUV221111_Convert;


More information about the MPlayer-cvslog mailing list