[MPlayer-cvslog] r32288 - in trunk/libvo: vesa_lvo.c vesa_lvo.h

diego subversion at mplayerhq.hu
Fri Sep 17 12:31:24 CEST 2010


Author: diego
Date: Fri Sep 17 12:31:24 2010
New Revision: 32288

Log:
Mark functs not used outside of the file as static, remove from header; fixes:
libvo/vesa_lvo.c:187: warning: no previous prototype for 'vlvo_draw_slice'
libvo/vesa_lvo.c:205: warning: no previous prototype for 'vlvo_draw_frame'
libvo/vesa_lvo.c:214: warning: no previous prototype for 'vlvo_flip_page'
libvo/vesa_lvo.c:275: warning: no previous prototype for 'vlvo_draw_osd'
libvo/vesa_lvo.c:312: warning: no previous prototype for 'vlvo_query_info'

Modified:
   trunk/libvo/vesa_lvo.c
   trunk/libvo/vesa_lvo.h

Modified: trunk/libvo/vesa_lvo.c
==============================================================================
--- trunk/libvo/vesa_lvo.c	Fri Sep 17 12:27:51 2010	(r32287)
+++ trunk/libvo/vesa_lvo.c	Fri Sep 17 12:31:24 2010	(r32288)
@@ -184,7 +184,8 @@ static uint32_t vlvo_draw_slice_420(uint
     return 0;
 }
 
-uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
+static uint32_t vlvo_draw_slice(uint8_t *image[], int stride[],
+                                int w, int h, int x, int y)
 {
  if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
    mp_msg(MSGT_VO,MSGL_DBG2, "vesa_lvo: vlvo_draw_slice() was called\n");}
@@ -202,7 +203,7 @@ uint32_t vlvo_draw_slice(uint8_t *image[
  return 0;
 }
 
-uint32_t vlvo_draw_frame(uint8_t *image[])
+static uint32_t vlvo_draw_frame(uint8_t *image[])
 {
 /* Note it's very strange but sometime for YUY2 draw_frame is called */
   fast_memcpy(lvo_mem,image[0],mga_vid_config.frame_size);
@@ -211,7 +212,7 @@ uint32_t vlvo_draw_frame(uint8_t *image[
   return 0;
 }
 
-void     vlvo_flip_page(void)
+static void vlvo_flip_page(void)
 {
   if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
     mp_msg(MSGT_VO,MSGL_DBG2, "vesa_lvo: vlvo_draw_osd() was called\n");}
@@ -272,7 +273,7 @@ static void draw_alpha(int x0,int y0, in
 }
 #endif
 
-void     vlvo_draw_osd(void)
+static void vlvo_draw_osd(void)
 {
   if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
     mp_msg(MSGT_VO,MSGL_DBG2,"vesa_lvo: vlvo_draw_osd() was called\n"); }
@@ -309,7 +310,7 @@ int vlvo_preinit(const char *drvname)
   return 0;
 }
 
-uint32_t vlvo_query_info(uint32_t format)
+static uint32_t vlvo_query_info(uint32_t format)
 {
   if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
     mp_msg(MSGT_VO,MSGL_DBG2, "vesa_lvo: query_format was called: %x (%s)\n",format,vo_format_name(format)); }

Modified: trunk/libvo/vesa_lvo.h
==============================================================================
--- trunk/libvo/vesa_lvo.h	Fri Sep 17 12:27:51 2010	(r32287)
+++ trunk/libvo/vesa_lvo.h	Fri Sep 17 12:31:24 2010	(r32288)
@@ -30,11 +30,5 @@ int      vlvo_init(unsigned src_width,un
 		   unsigned x_org,unsigned y_org,unsigned dst_width,
 		   unsigned dst_height,unsigned format,unsigned dest_bpp);
 void     vlvo_term( void );
-uint32_t vlvo_query_info(uint32_t format);
-
-uint32_t vlvo_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y);
-uint32_t vlvo_draw_frame(uint8_t *src[]);
-void     vlvo_flip_page(void);
-void     vlvo_draw_osd(void);
 
 #endif /* MPLAYER_VESA_LVO_H */


More information about the MPlayer-cvslog mailing list