[Mplayer-cvslog] CVS: main dec_video.c,1.34,1.35
Arpi of Ize
arpi at mplayer.dev.hu
Sun Sep 9 01:28:19 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv5004
Modified Files:
dec_video.c
Log Message:
IMGFMT_MPEGPES support
Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- dec_video.c 23 Aug 2001 17:37:18 -0000 1.34
+++ dec_video.c 8 Sep 2001 23:28:17 -0000 1.35
@@ -532,8 +532,21 @@
}
#endif
case VFM_MPEG:
- mpeg2_decode_data(video_out, start, start+in_size,drop_frame);
- if(!drop_frame) blit_frame=1;
+ if(out_fmt==IMGFMT_MPEGPES){
+ // hardware decoding:
+ static vo_mpegpes_t packet;
+ mpeg2_decode_data(video_out, start, start+in_size,3); // parse headers
+ packet.data=start;
+ packet.size=in_size-4;
+ packet.timestamp=sh_video->timer*90000.0;
+ packet.id=0x1E0; //+sh_video->ds->id;
+ planes[0]=&packet;
+ blit_frame=2;
+ } else {
+ // software decoding:
+ mpeg2_decode_data(video_out, start, start+in_size,drop_frame); // decode
+ if(!drop_frame) blit_frame=1;
+ }
break;
case VFM_RAW:
planes[0]=start;
More information about the MPlayer-cvslog
mailing list