[Mplayer-cvslog] CVS: main xacodec.c,1.13,1.14

Alex Beregszaszi alex at mplayer.dev.hu
Tue Oct 23 03:46:58 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv26577

Modified Files:
	xacodec.c 
Log Message:
little cleanup to eleminate xanim typedefs and be more mplayer like

Index: xacodec.c
===================================================================
RCS file: /cvsroot/mplayer/main/xacodec.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- xacodec.c	23 Oct 2001 01:14:13 -0000	1.13
+++ xacodec.c	23 Oct 2001 01:46:55 -0000	1.14
@@ -26,6 +26,7 @@
 #include "libvo/img_format.h"
 #include "xacodec.h"
 
+#if 0 
 typedef char xaBYTE;
 typedef short xaSHORT;
 typedef int xaLONG;
@@ -33,6 +34,7 @@
 typedef unsigned char xaUBYTE;
 typedef unsigned short xaUSHORT;
 typedef unsigned int xaULONG;
+#endif
 
 #define xaFALSE 0
 #define xaTRUE 1
@@ -47,8 +49,6 @@
 #define RLTD_GLOBAL 256
 #endif
 
-extern int verbose;
-
 #define XA_CLOSE_FUNCS 5
 int xa_close_func = 0;
 
@@ -342,8 +342,9 @@
     int i;
     xacodec_image_t *image=&xacodec_driver->image;
 
-    if (skip_flag > 0)
-	mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "frame will be dropped..\n");
+// ugyis kiirja a vegen h dropped vagy nem.. 
+//    if (skip_flag > 0)
+//	mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "frame will be dropped..\n");
 
     xacodec_driver->decinfo->skip_flag = skip_flag;
 
@@ -450,19 +451,21 @@
     XA_Print("dummy() called");
 }
 
-int 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);
 
 //    XA_Print("anim type: %d - img[x: %d, y: %d, c: %d, d: %d]",
 //	anim_hdr->anim_type, anim_hdr->imagex, anim_hdr->imagey,
 //	anim_hdr->imagec, anim_hdr->imaged);
+    return;
 }
 
 void JPG_Setup_Samp_Limit_Table(XA_ANIM_HDR *anim_hdr)
 {
     XA_Print("JPG_Setup_Samp_Limit_Table('anim_hdr: %08x')", anim_hdr);
 //    xa_byte_limit = jpg_samp_limit + (MAXJSAMPLE + 1);
+    return;
 }
 
 void JPG_Alloc_MCU_Bufs(XA_ANIM_HDR *anim_hdr, unsigned int width,
@@ -470,6 +473,7 @@
 {
     XA_Print("JPG_Alloc_MCU_Bufs('anim_hdr: %08x', 'width: %d', 'height: %d', 'full_flag: %d')",
 	    anim_hdr, width, height, full_flag);
+    return;
 }
 
 
@@ -508,7 +512,7 @@
     SET_4_YUV_PIXELS(image,x,y+2,cmap2x2)
     SET_4_YUV_PIXELS(image,x+2,y+2,cmap2x2)
 #endif
-
+    return;
 }
 
 void XA_2x2_OUT_4BLKS_clr8(unsigned char *image_p, unsigned int x, unsigned int y,
@@ -521,6 +525,7 @@
     SET_4_YUV_PIXELS(image,x+2,y,cm1)
     SET_4_YUV_PIXELS(image,x,y+2,cm2)
     SET_4_YUV_PIXELS(image,x+2,y+2,cm3)
+    return;
 }
 
 void *YUV2x2_Blk_Func(unsigned int image_type, int blks, unsigned int dith_flag)
@@ -540,11 +545,9 @@
 
 //  Take Four Y's and UV and put them into a 2x2 Color structure.
 
-void XA_YUV_2x2_clr(cmap2x2,Y0,Y1,Y2,Y3,U,V,map_flag,map,chdr)
-XA_2x2_Color *cmap2x2;
-xaULONG Y0,Y1,Y2,Y3,U,V;
-xaULONG map_flag,*map;
-XA_CHDR *chdr;
+void XA_YUV_2x2_clr(XA_2x2_Color *cmap2x2, unsigned int Y0, unsigned int Y1,
+    unsigned int Y2, unsigned int Y3, unsigned int U, unsigned int V,
+    unsigned int map_flag, unsigned int *map, XA_CHDR *chdr)
 {
 
 //  printf("XA_YUV_2x2_clr(%p [%d,%d,%d,%d][%d][%d] %d %p %p)\n",
@@ -556,7 +559,7 @@
   cmap2x2->clr0_3=Y3;
   cmap2x2->clr1_0=U;
   cmap2x2->clr1_1=V;
-
+  return;
 }
 
 void *YUV2x2_Map_Func(unsigned int image_type, unsigned int dith_type)
@@ -647,9 +650,10 @@
 	    }
 	}
     }
-
+    return;
 }
 
+/* used by Indeo 3,4,5 */
 void *XA_YUV1611_Func(unsigned int image_type)
 {
     void (*color_func)();
@@ -667,6 +671,7 @@
 {
     XA_Print("XA_YUV411111_To_RGB('image: %d', 'imagex: %d', 'imagey: %d', 'i_x: %d', 'i_y: %d', 'yuv_bufs: %08x', 'yuv_tabs: %08x', 'map_flag: %d', 'map: %08x', 'chdr: %08x')",
 	    image, imagex, imagey, i_x, i_y, yuv_bufs, yuv_tabs, map_flag, map, chdr);
+    return;
 }
 
 
@@ -679,11 +684,10 @@
 }
 
 
-// input frame format:  YUV 4:2:0 (YV12)
-void XA_YUV221111_To_CLR8(image_p,imagex,imagey,i_x,i_y,yuv,yuv_tabs,map_flag,map,chdr)
-xaUBYTE *image_p;		xaULONG imagex,imagey,i_x,i_y;
-YUVBufs *yuv;	YUVTabs *yuv_tabs;
-xaULONG map_flag,*map;	XA_CHDR *chdr;
+/* input frame format:  YUV 4:2:0 (YV12) */
+void XA_YUV221111_To_CLR8(unsigned char *image_p, unsigned int imagex, unsigned int imagey,
+    unsigned int i_x, unsigned int i_y, YUVBufs *yuv, YUVTabs *yuv_tabs, unsigned int map_flag,
+    unsigned int *map, XA_CHDR *chdr)
 {
     xacodec_image_t *image=(xacodec_image_t*)image_p;
 
@@ -713,9 +717,10 @@
     printf("partial YV12 not implemented!!!!!!\n");
 
 }
-
+    return;
 }
 
+/* used by H263,3ivX */
 /* YUV 22 11 11 routines */
 void *XA_YUV221111_Func(unsigned int image_type)
 {




More information about the MPlayer-cvslog mailing list