changeset 3828:063e5b0065a4

Brand new sync core, uses hw sync for everything.
author mswitch
date Fri, 28 Dec 2001 10:21:05 +0000
parents 6e7df97bd120
children 30b4f0c45b6e
files libvo/vo_dxr3.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_dxr3.c	Fri Dec 28 10:20:16 2001 +0000
+++ b/libvo/vo_dxr3.c	Fri Dec 28 10:21:05 2001 +0000
@@ -67,8 +67,8 @@
 #ifdef USE_MP1E
 void write_dxr3( rte_context* context, void* data, size_t size, void* user_data )
 {
-/*    if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&vo_pts) < 0)
-	    printf( "VO: [dxr3] Unable to set pts\n" );*/
+    if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&vo_pts) < 0)
+	    printf( "VO: [dxr3] Unable to set pts\n" );
     write( fd_video, data, size );
 }
 #endif
@@ -186,7 +186,7 @@
 	    pixel_format = RTE_YUV420;
         if( !rte_set_video_parameters( mp1e_context, pixel_format, mp1e_context->width,
 					mp1e_context->height, frame_rate,
-					3e6, "IPP" ) )
+					3e6, "I" ) )
         {
             printf( "VO: [dxr3] Unable to set mp1e context!\n" );
 	    rte_context_destroy( mp1e_context );
@@ -292,8 +292,8 @@
         int data_left;
 	vo_mpegpes_t *p=(vo_mpegpes_t *)src[0];
 
-/*	if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&p->timestamp) < 0)
-	    printf( "VO: [dxr3] Unable to set pts\n" );*/
+	if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&vo_pts) < 0)
+	    printf( "VO: [dxr3] Unable to set pts\n" );
 	data_left = p->size;
 	while( data_left )
 	    data_left -= write( fd_video, &((unsigned char*)p->data)[p->size-data_left], data_left );
@@ -401,11 +401,11 @@
 static uint32_t
 query_format(uint32_t format)
 {
-    if(format==IMGFMT_MPEGPES) return 0x2|0x4;
+    if(format==IMGFMT_MPEGPES) return 0x2|0x4|256;
 #ifdef USE_MP1E
-    if(format==IMGFMT_YV12) return 0x1|0x4;
-    if(format==IMGFMT_YUY2) return 0x1|0x4;
-    if(format==IMGFMT_BGR24) return 0x1|0x4;
+    if(format==IMGFMT_YV12) return 0x1|0x4|256;
+    if(format==IMGFMT_YUY2) return 0x1|0x4|256;
+    if(format==IMGFMT_BGR24) return 0x1|0x4|256;
     else printf( "VO: [dxr3] Format unsupported, mail dholm@iname.com\n" );
 #else
     else printf( "VO: [dxr3] You have disabled libmp1e support, you won't be able to play this format!\n" );