[Mplayer-cvslog] CVS: main demux_avi.c,1.21,1.22 mplayer.c,1.219,1.220 stheader.h,1.12,1.13
Arpi of Ize
arpi at mplayer.dev.hu
Thu Aug 16 03:03:54 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main/loader/DirectShow DS_AudioDecoder.cpp,NONE,1.1 DS_AudioDecoder.h,NONE,1.1 DS_VideoDecoder.cpp,NONE,1.1 DS_VideoDecoder.h,NONE,1.1 libwin32.h,NONE,1.1 DS_AudioDec.cpp,1.4,1.5 DS_Filter.cpp,1.7,1.8 DS_Filter.h,1.4,1.5 DS_VideoDec.cpp,1.9,1.10 Makefile,1.10,1.11 allocator.cpp,1.2,1.3 allocator.h,1.2,1.3 cmediasample.cpp,1.3,1.4 cmediasample.h,1.2,1.3 guids.h,1.1.1.1,1.2 inputpin.cpp,1.1.1.1,1.2 inputpin.h,1.1.1.1,1.2 interfaces.h,1.3,1.4 iunk.h,1.1.1.1,1.2 outputpin.cpp,1.3,1.4 outputpin.h,1.2,1.3 BitmapInfo.h,1.4,NONE default.h,1.4,NONE except.h,1.1.1.1,NONE formats.h,1.4,NONE
- Next message: [Mplayer-cvslog] CVS: main dec_video.c,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv16535
Modified Files:
demux_avi.c mplayer.c stheader.h
Log Message:
display number of decoded frames (for progr. mpeg2)
Index: demux_avi.c
===================================================================
RCS file: /cvsroot/mplayer/main/demux_avi.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- demux_avi.c 14 Aug 2001 07:16:12 -0000 1.21
+++ demux_avi.c 16 Aug 2001 01:03:51 -0000 1.22
@@ -519,7 +519,7 @@
int id=((AVIINDEXENTRY *)priv->idx)[i].ckid;
if(avi_stream_id(id)==d_video->id) ++d_video->pack_no;
}
- sh_video->num_frames=d_video->pack_no;
+ sh_video->num_frames=sh_video->num_frames_decoded=d_video->pack_no;
priv->avi_video_pts=d_video->pack_no*(float)sh_video->video.dwScale/(float)sh_video->video.dwRate;
d_video->pos=video_chunk_pos;
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.219
retrieving revision 1.220
diff -u -r1.219 -r1.220
--- mplayer.c 13 Aug 2001 13:12:49 -0000 1.219
+++ mplayer.c 16 Aug 2001 01:03:51 -0000 1.220
@@ -1223,6 +1223,7 @@
// Increase video timers:
sh_video->num_frames+=frame_time;
+ ++sh_video->num_frames_decoded;
frame_time*=sh_video->frametime;
if(file_format==DEMUXER_TYPE_ASF && !force_fps){
// .ASF files has no fixed FPS - just frame durations!
@@ -1377,9 +1378,9 @@
else
max_pts_correction=sh_video->frametime*0.10; // +-10% of time
sh_audio->timer+=x; c_total+=x;
- if(!quiet) printf("A:%6.1f V:%6.1f A-V:%7.3f ct:%7.3f %3d %2d%% %2d%% %4.1f%% %d %d\r",
+ if(!quiet) printf("A:%6.1f V:%6.1f A-V:%7.3f ct:%7.3f %3d/%3d %2d%% %2d%% %4.1f%% %d %d\r",
a_pts-audio_delay-delay,v_pts,AV_delay,c_total,
- (int)sh_video->num_frames,
+ (int)sh_video->num_frames,(int)sh_video->num_frames_decoded,
(sh_video->timer>0.5)?(int)(100.0*video_time_usage/(double)sh_video->timer):0,
(sh_video->timer>0.5)?(int)(100.0*vout_time_usage/(double)sh_video->timer):0,
(sh_video->timer>0.5)?(100.0*audio_time_usage/(double)sh_video->timer):0
Index: stheader.h
===================================================================
RCS file: /cvsroot/mplayer/main/stheader.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- stheader.h 28 Jul 2001 20:33:51 -0000 1.12
+++ stheader.h 16 Aug 2001 01:03:51 -0000 1.13
@@ -56,6 +56,7 @@
// unsigned int bitrate;
// buffers:
float num_frames; // number of frames played
+ int num_frames_decoded; // number of frames decoded
char *our_out_buffer;
// win32 codec stuff:
AVIStreamHeader video;
- Previous message: [Mplayer-cvslog] CVS: main/loader/DirectShow DS_AudioDecoder.cpp,NONE,1.1 DS_AudioDecoder.h,NONE,1.1 DS_VideoDecoder.cpp,NONE,1.1 DS_VideoDecoder.h,NONE,1.1 libwin32.h,NONE,1.1 DS_AudioDec.cpp,1.4,1.5 DS_Filter.cpp,1.7,1.8 DS_Filter.h,1.4,1.5 DS_VideoDec.cpp,1.9,1.10 Makefile,1.10,1.11 allocator.cpp,1.2,1.3 allocator.h,1.2,1.3 cmediasample.cpp,1.3,1.4 cmediasample.h,1.2,1.3 guids.h,1.1.1.1,1.2 inputpin.cpp,1.1.1.1,1.2 inputpin.h,1.1.1.1,1.2 interfaces.h,1.3,1.4 iunk.h,1.1.1.1,1.2 outputpin.cpp,1.3,1.4 outputpin.h,1.2,1.3 BitmapInfo.h,1.4,NONE default.h,1.4,NONE except.h,1.1.1.1,NONE formats.h,1.4,NONE
- Next message: [Mplayer-cvslog] CVS: main dec_video.c,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list