[Mplayer-cvslog] CVS: main xacodec.c,1.23,1.24 mp_msg.h,1.8,1.9

Alex Beregszaszi alex at mplayer.dev.hu
Fri Nov 9 23:04:11 CET 2001


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

Modified Files:
	xacodec.c mp_msg.h 
Log Message:
fixes for vivo

Index: xacodec.c
===================================================================
RCS file: /cvsroot/mplayer/main/xacodec.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- xacodec.c	4 Nov 2001 14:21:44 -0000	1.23
+++ xacodec.c	9 Nov 2001 22:04:09 -0000	1.24
@@ -80,7 +80,7 @@
 
     va_start(vallist, fmt);
     vsnprintf(buf, 1024, fmt, vallist);
-    mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "[xacodec] %s\n", buf);
+    mp_msg(MSGT_XACODEC, MSGL_DBG2, "[xacodec] %s\n", buf);
     va_end(vallist);
 
     return;
@@ -258,16 +258,17 @@
     if (xacodec_init(dll, xacodec_driver) == 0)
 	return(0);
 
+    codec_hdr.xapi_rev = XAVID_API_REV;
     codec_hdr.anim_hdr = malloc(4096);
     codec_hdr.description = vidinfo->codec->info;
     codec_hdr.compression = bswap_32(vidinfo->bih->biCompression);
     codec_hdr.decoder = NULL;
+    codec_hdr.x = vidinfo->bih->biWidth; /* ->disp_w */
+    codec_hdr.y = vidinfo->bih->biHeight; /* ->disp_h */
+    /* extra fields to store palette */
     codec_hdr.avi_ctab_flag = 0;
     codec_hdr.avi_read_ext = NULL;
-    codec_hdr.xapi_rev = XAVID_API_REV;
     codec_hdr.extra = NULL;
-    codec_hdr.x = vidinfo->disp_w;
-    codec_hdr.y = vidinfo->disp_h;
 
     switch(out_format)
     {
@@ -723,14 +724,19 @@
     xacodec_image_t *image=(xacodec_image_t*)image_p;
 
 #if 0
-    printf("XA_YUV221111_Convert(%p  %dx%d %d;%d [%dx%d]  %p %p %d %p %p)\n",
+    XA_Print("XA_YUV221111_Convert(%p  %dx%d %d;%d [%dx%d]  %p %p %d %p %p)\n",
 	image,imagex,imagey,i_x,i_y, image->width,image->height,
 	yuv,yuv_tabs,map_flag,map,chdr);
 
-    printf("YUV: %p %p %p %X (%X) %Xx%X %Xx%X\n",
+    XA_Print("YUV: %p %p %p %X (%X) %Xx%X %Xx%X\n",
 	yuv->Ybuf,yuv->Ubuf,yuv->Vbuf,yuv->the_buf,yuv->the_buf_size,
 	yuv->y_w,yuv->y_h,yuv->uv_w,yuv->uv_h);
 #endif
+
+    /* hotfix for Vivo/2.00 - do not fault - but no decode ;( */
+#warning "FIXME! Decoder doesn't supports Vivo/2.00 :("
+    if (!yuv->the_buf_size)
+	return;
 
 if(i_x==image->width && i_y==image->height){
 //    printf("Direct render!!!\n");

Index: mp_msg.h
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- mp_msg.h	2 Nov 2001 01:35:27 -0000	1.8
+++ mp_msg.h	9 Nov 2001 22:04:09 -0000	1.9
@@ -47,9 +47,13 @@
 #define MSGT_LIRC 19	// lirc_mp.c
 
 #define MSGT_STREAM 20  // stream.c
-#define MSGT_CACHE 21  // cache2.c
+#define MSGT_CACHE 21 	// cache2.c
 
 #define MSGT_MENCODER 22
+
+#define MSGT_XACODEC 23	// XAnim codecs
+
+#define MSGT_TV 24	// TV input subsystem
 
 #define MSGT_MAX 64
 




More information about the MPlayer-cvslog mailing list