[MPlayer-dev-eng] [PATCH] Adds -noskip flag to mplayer
Brett Kosinski
brettk at interdynamix.com
Mon Dec 9 19:29:25 CET 2002
This patch adds support for a -skip/-noskip flag pair which controls
whether or not mplayer attempts to optimize out duplicate frames. This is
important in transcoding situations where mplayer may be dropping
much-needed frames (e.g. yuv4mpeg output).
Brett.
-------------- next part --------------
Common subdirectories: ./DOCS and ../MPlayer-0.90pre10-mod/DOCS
Common subdirectories: ./Gui and ../MPlayer-0.90pre10-mod/Gui
Common subdirectories: ./TOOLS and ../MPlayer-0.90pre10-mod/TOOLS
Common subdirectories: ./TVout and ../MPlayer-0.90pre10-mod/TVout
diff -u ./cfg-mplayer.h ../MPlayer-0.90pre10-mod/cfg-mplayer.h
--- ./cfg-mplayer.h Sun Nov 10 06:57:35 2002
+++ ../MPlayer-0.90pre10-mod/cfg-mplayer.h Fri Dec 6 14:14:54 2002
@@ -69,6 +69,7 @@
extern int opt_screen_size_y;
extern int fullscreen;
extern int vidmode;
+extern int skip;
#ifdef USE_OSD
extern int osd_level;
@@ -261,6 +262,8 @@
// video mode switching: (x11,xv,dga)
{"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"novm", &vidmode, CONF_TYPE_FLAG, 0, 1, 0, NULL},
+ {"skip", &skip, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+ {"noskip", &skip, CONF_TYPE_FLAG, 0, 1, 0, NULL},
// start in fullscreen mode:
{"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0, NULL},
Only in ../MPlayer-0.90pre10-mod/: config.h
Only in ../MPlayer-0.90pre10-mod/: config.mak
Common subdirectories: ./debian and ../MPlayer-0.90pre10-mod/debian
Common subdirectories: ./drivers and ../MPlayer-0.90pre10-mod/drivers
Common subdirectories: ./etc and ../MPlayer-0.90pre10-mod/etc
Common subdirectories: ./help and ../MPlayer-0.90pre10-mod/help
Only in ../MPlayer-0.90pre10-mod/: help_mp.h
Common subdirectories: ./input and ../MPlayer-0.90pre10-mod/input
Common subdirectories: ./liba52 and ../MPlayer-0.90pre10-mod/liba52
Common subdirectories: ./libaf and ../MPlayer-0.90pre10-mod/libaf
Common subdirectories: ./libao2 and ../MPlayer-0.90pre10-mod/libao2
Common subdirectories: ./libavcodec and ../MPlayer-0.90pre10-mod/libavcodec
Common subdirectories: ./libdha and ../MPlayer-0.90pre10-mod/libdha
Common subdirectories: ./libmpcodecs and ../MPlayer-0.90pre10-mod/libmpcodecs
Common subdirectories: ./libmpdemux and ../MPlayer-0.90pre10-mod/libmpdemux
Common subdirectories: ./libmpdvdkit2 and ../MPlayer-0.90pre10-mod/libmpdvdkit2
Common subdirectories: ./libmpeg2 and ../MPlayer-0.90pre10-mod/libmpeg2
Common subdirectories: ./libvo and ../MPlayer-0.90pre10-mod/libvo
Common subdirectories: ./linux and ../MPlayer-0.90pre10-mod/linux
Common subdirectories: ./loader and ../MPlayer-0.90pre10-mod/loader
Common subdirectories: ./mp3lib and ../MPlayer-0.90pre10-mod/mp3lib
diff -u ./mplayer.c ../MPlayer-0.90pre10-mod/mplayer.c
--- ./mplayer.c Wed Nov 6 16:54:21 2002
+++ ../MPlayer-0.90pre10-mod/mplayer.c Fri Dec 6 14:14:14 2002
@@ -142,6 +142,8 @@
vo_functions_t *video_out=NULL;
ao_functions_t *audio_out=NULL;
+int skip=0;
+
int fixed_vo=0;
// benchmark:
@@ -1510,6 +1512,10 @@
current_module="decode_video";
// printf("Decode! %p %d \n",start,in_size);
blit_frame=decode_video(sh_video,start,in_size,drop_frame);
+
+ if (! skip)
+ blit_frame = 1;
+
break;
}
vdecode_time=video_time_usage-vdecode_time;
Common subdirectories: ./postproc and ../MPlayer-0.90pre10-mod/postproc
Only in ./: skip.patch
Only in ../MPlayer-0.90pre10-mod/: version.h
Common subdirectories: ./vidix and ../MPlayer-0.90pre10-mod/vidix
More information about the MPlayer-dev-eng
mailing list