changeset 5647:5a2d49aa72c2

Disabled spuenc code due to upcoming prerelease, there are still bugs here
author mswitch
date Tue, 16 Apr 2002 11:14:49 +0000
parents 8bec4d7d04f0
children c3ca8f05b3a9
files libvo/vo_dxr3.c
diffstat 1 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dxr3.c	Tue Apr 16 00:36:41 2002 +0000
+++ b/libvo/vo_dxr3.c	Tue Apr 16 11:14:49 2002 +0000
@@ -6,6 +6,10 @@
  */
 
 /* ChangeLog added 2002-01-10
+ * 2002-04-15:
+ *  The spuenc code isn't 100% stable yet, therefore I'm disabling
+ *  it due to the upcoming stable release.
+ *
  * 2002-04-03:
  *  Carl George added spuenc support
  *
@@ -475,7 +479,7 @@
 
 static void draw_alpha(int x, int y, int w, int h, unsigned char* src, unsigned char *srca, int srcstride)
 {
-	int lx, ly, bx;
+	/*int lx, ly, bx;
 	unsigned char *buf;
 	buf = &osdpicbuf[(y * osdpicbuf_w) + x];
 	if (img_format == IMGFMT_MPEGPES) {
@@ -489,7 +493,7 @@
 			}
 		}	
 		pixbuf_encode_rle(x, y, osdpicbuf_w, osdpicbuf_h - 1, osdpicbuf, osdpicbuf_w, spued);
-	} else {
+	} else*/ {
 #if defined(USE_LIBAVCODEC) || defined(USE_LIBFAME)
 	vo_draw_alpha_yv12(w, h, src, srca, srcstride,
 		picture_data[0] + x + y * picture_linesize[0], picture_linesize[0]);
@@ -501,25 +505,27 @@
 {
 	if (img_format != IMGFMT_MPEGPES) {
 		vo_draw_text(osd_w, osd_h, draw_alpha);
-	} else if ((disposd % 15) == 0) {
+	} /*else if ((disposd % 15) == 0) {
 		vo_draw_text(osd_w, osd_h, draw_alpha);
 		memset(osdpicbuf, 0, s_width * s_height);
-
+*/
 		/* could stand some check here to see if the subpic hasn't changed
 		 * as if it hasn't and we re-send it it will "blink" as the last one
 		 * is turned off, and the new one (same one) is turned on
 		 */
-		if (!noprebuf) {
+		/*if (!noprebuf) {
 			ioctl(fd_spu, EM8300_IOCTL_SPU_SETPTS, &vo_pts);
 		}
 		write(fd_spu, spued->data, spued->count);
 	}
-	disposd++;
+	disposd++;*/
 }
 
 
 static uint32_t draw_frame(uint8_t * src[])
 {
+	char *pData;
+	int pSize;
 	if (img_format == IMGFMT_MPEGPES) {
 		vo_mpegpes_t *p = (vo_mpegpes_t *) src[0];
 		
@@ -726,6 +732,7 @@
 	strcpy(fdv_name, devname);
 	
 	/* Open the subpicture interface */
+	fdflags |= O_NONBLOCK;
 	if (arg && !noprebuf) {
 		sprintf(devname, "/dev/em8300_sp-%s", arg);
 	} else {