Mercurial > mplayer.hg
changeset 30565:6e85fdf79584
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.
author | diego |
---|---|
date | Wed, 17 Feb 2010 21:29:05 +0000 |
parents | 2b9abdf8f6bf |
children | ac4bcd2064ce |
files | libmpcodecs/vd_xanim.c |
diffstat | 1 files changed, 28 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_xanim.c Wed Feb 17 19:21:28 2010 +0000 +++ b/libmpcodecs/vd_xanim.c Wed Feb 17 21:29:05 2010 +0000 @@ -335,7 +335,23 @@ } } -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 @@ /* 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 @@ 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 @@ return; } -static unsigned long XA_Time_Read(void) +unsigned long XA_Time_Read(void) { return GetTimer(); //(GetRelativeTime()); } @@ -380,20 +396,20 @@ 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 @@ 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 @@ 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_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 @@ 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;