comparison libvo/vo_dxr3.c @ 3387:f8bfaa1c9487

Removed hardware syncing support. Actually movies seem to run much smoother without it.
author mswitch
date Sat, 08 Dec 2001 14:40:45 +0000
parents c49a9b272c44
children 5cb7caab5536
comparison
equal deleted inserted replaced
3386:245d32959ebe 3387:f8bfaa1c9487
66 "" 66 ""
67 }; 67 };
68 68
69 void write_dxr3( rte_context* context, void* data, size_t size, void* user_data ) 69 void write_dxr3( rte_context* context, void* data, size_t size, void* user_data )
70 { 70 {
71 if( ioctl( fd_video, EM8300_IOCTL_VIDEO_SETPTS, &vo_pts ) < 0 )
72 printf( "VO: [dxr3] Unable to set video PTS\n" );
73 write( fd_video, data, size ); 71 write( fd_video, data, size );
74 } 72 }
75 73
76 static uint32_t init(uint32_t scr_width, uint32_t scr_height, uint32_t width, uint32_t height, uint32_t fullscreen, char *title, uint32_t format) 74 static uint32_t init(uint32_t scr_width, uint32_t scr_height, uint32_t width, uint32_t height, uint32_t fullscreen, char *title, uint32_t format)
77 { 75 {
265 { 263 {
266 if( img_format == IMGFMT_MPEGPES ) 264 if( img_format == IMGFMT_MPEGPES )
267 { 265 {
268 int data_left; 266 int data_left;
269 vo_mpegpes_t *p=(vo_mpegpes_t *)src[0]; 267 vo_mpegpes_t *p=(vo_mpegpes_t *)src[0];
270
271 if( ioctl( fd_video, EM8300_IOCTL_VIDEO_SETPTS, &vo_pts ) < 0 )
272 printf( "VO: [dxr3] Unable to set video PTS\n" );
273 268
274 data_left = p->size; 269 data_left = p->size;
275 while( data_left ) 270 while( data_left )
276 data_left -= write( fd_video, &((unsigned char*)p->data)[p->size-data_left], data_left ); 271 data_left -= write( fd_video, &((unsigned char*)p->data)[p->size-data_left], data_left );
277 272