⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cfg-mplayer.h

📁 自己移植的linux下的流媒体播放器原代码,支持mms协议,支持ftp和http协议.
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * config for cfgparser */#include "cfg-common.h"extern int noconsolecontrols;//=========================================#ifndef NO_VIDEO#if defined(HAVE_FBDEV)||defined(HAVE_VESA)extern char *monitor_hfreq_str;extern char *monitor_vfreq_str;extern char *monitor_dotclock_str;#endif#ifdef HAVE_FBDEVextern char *fb_dev_name;extern char *fb_mode_cfgfile;extern char *fb_mode_name;#endif#ifdef HAVE_DIRECTFB#if DIRECTFBVERSION > 912extern char *dfb_params;#endif#endif#ifdef USE_FAKE_MONOextern int fakemono; // defined in dec_audio.c#endifextern int volstep;#ifdef HAVE_LIRCextern char *lirc_configfile;#endifextern int vo_doublebuffering;extern int vo_vsync;extern int vo_fsmode;extern int vo_dbpp;extern int vo_directrendering;extern float vo_panscan;/* only used at startup (setting these values from configfile) */extern int vo_gamma_brightness;extern int vo_gamma_saturation;extern int vo_gamma_contrast;extern int vo_gamma_hue;extern char *vo_geometry;extern int vo_ontop;extern int vo_keepaspect;extern int vo_rootwin;extern int opt_screen_size_x;extern int opt_screen_size_y;extern int fullscreen;extern int vidmode;#ifdef USE_OSDextern int osd_level;#endifextern char *ao_outputfilename;extern int ao_pcm_waveheader;#ifdef HAVE_X11extern char *mDisplayName;extern int fs_layer;extern int stop_xscreensaver;extern char **vo_fstype_list;extern int vo_nomouse_input;#endifextern int WinID;#ifdef HAVE_MENUextern int menu_startup;#endif#ifdef HAVE_ZRextern int vo_zr_parseoption(m_option_t* conf, char *opt, char * param);extern void vo_zr_revertoption(m_option_t* opt,char* pram);#endif#ifdef HAVE_DXR2extern m_option_t dxr2_opts[];#endif#ifdef STREAMING_LIVE_DOT_COMextern int isSDPFile;extern int rtspStreamOverTCP;#endif#ifdef HAVE_NEW_GUIextern char * skinName;extern int enqueue;extern int guiWinID;#endif#ifdef HAVE_ODIVX_POSTPROCESSextern int use_old_pp;#endif#ifdef HAVE_XINERAMAextern int xinerama_screen;#endif#ifdef HAVE_RTCextern int nortc;#endif/* from libvo/aspect.c */extern float monitor_aspect;extern int sws_flags;extern int readPPOpt(void *conf, char *arg);extern void revertPPOpt(void *conf, char* opt);extern char* pp_help;m_option_t vd_conf[]={	{"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},	{NULL, NULL, 0, 0, 0, 0, NULL}};/* * CONF_TYPE_FUNC_FULL : * allows own implementations for passing the params *  * the function receives parameter name and argument (if it does not start with - ) * useful with a conf.name like 'aa*' to parse several parameters to a function * return 0 =ok, but we didn't need the param (could be the filename) * return 1 =ok, we accepted the param * negative values: see cfgparser.h, ERR_XXX * * by Folke */m_option_t mplayer_opts[]={	/* name, pointer, type, flags, min, max *///---------------------- libao/libvo options ------------------------	{"o", "Option -o has been renamed to -vo (video-out), use -vo.\n",            CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},	{"vo", &video_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},	{"ao", &audio_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},	{"fixed-vo", &fixed_vo, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL},	{"nofixed-vo", &fixed_vo, CONF_TYPE_FLAG,CONF_GLOBAL, 0, 0, NULL},	{"ontop", &vo_ontop, CONF_TYPE_FLAG, 0, 0, 1, NULL},	{"noontop", &vo_ontop, CONF_TYPE_FLAG, 0, 1, 0, NULL},	{"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},	{"aop", "-aop is deprecated, use -af instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},	{"dsp", "Use -ao oss:dsp_path.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},        {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0, NULL},        {"mixer-channel", &mixer_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},        {"softvol", &soft_vol, CONF_TYPE_FLAG, 0, 0, 1, NULL},        {"nosoftvol", &soft_vol, CONF_TYPE_FLAG, 0, 1, 0, NULL},        {"softvol-max", &soft_vol_max, CONF_TYPE_FLOAT, CONF_RANGE, 10, 10000, NULL},	{"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},	{"master", "Option -master has been removed, use -af volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},	// override audio buffer size (used only by -ao oss, anyway obsolete...)	{"abs", &ao_data.buffersize, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},	// -ao pcm options:	{"aofile", "-aofile is deprecated. Use -ao pcm:file=<filename> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},	{"waveheader", "-waveheader is deprecated. Use -ao pcm:waveheader instead.\n", CONF_TYPE_PRINT, 0, 0, 1, NULL},	{"nowaveheader", "-nowaveheader is deprecated. Use -ao pcm:nowaveheader instead.\n", CONF_TYPE_PRINT, 0, 1, 0, NULL},	{"alsa", "-alsa has been removed. Remove it from your config file.\n",            CONF_TYPE_PRINT, 0, 0, 0, NULL},	{"noalsa", "-noalsa has been removed. Remove it from your config file.\n",            CONF_TYPE_PRINT, 0, 0, 0, NULL},#ifdef USE_EDL	{"edlout", &edl_output_filename,  CONF_TYPE_STRING, 0, 0, 0, NULL}, #else	{"edlout", "MPlayer was compiled without EDL support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},#endif#ifdef HAVE_X11	{"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},#endif	// -vo png only:#ifdef HAVE_PNG	{"z", "-z is replaced by -vo png:z=<0-9>\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},#endif	// -vo jpeg only:#ifdef HAVE_JPEG	{"jpeg", "-jpeg is deprecated. Use -vo jpeg:options instead.\n",	    CONF_TYPE_PRINT, 0, 0, 0, NULL},#endif	// -vo sdl only:	{"sdl", "Use -vo sdl:driver=<driver> instead of -vo sdl -sdl driver.\n",	    CONF_TYPE_PRINT, 0, 0, 0, NULL},	{"noxv", "-noxv is deprecated. Use -vo sdl:nohwaccel instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},	{"forcexv", "-forcexv is deprecated. Use -vo sdl:forcexv instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},	// -ao sdl only:	{"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver.\n",	    CONF_TYPE_PRINT, 0, 0, 0, NULL},#if defined(HAVE_FBDEV)||defined(HAVE_VESA)        {"monitor-hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},        {"monitor-vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},        {"monitor-dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL}, #endif #ifdef HAVE_FBDEV	{"fb", &fb_dev_name, CONF_TYPE_STRING, 0, 0, 0, NULL},	{"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0, NULL},	{"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0, NULL},#endif#ifdef HAVE_DIRECTFB#if DIRECTFBVERSION > 912	{"dfbopts", &dfb_params, CONF_TYPE_STRING, 0, 0, 0, NULL},#endif#endif	// force window width/height or resolution (with -vm)	{"x", &opt_screen_size_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},	{"y", &opt_screen_size_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},	// set screen dimensions (when not detectable or virtual!=visible)	{"screenw", &vo_screenwidth, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},	{"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},	// Geometry string	{"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL},	// set aspect ratio of monitor - useful for 16:9 TVout	{"monitoraspect", &monitor_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 9.0, NULL},	// video mode switching: (x11,xv,dga)        {"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1, NULL},        {"novm", &vidmode, 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},	// set fullscreen switch method (workaround for buggy WMs)	{"fsmode", "-fsmode is obsolete, avoid it and use -fstype instead.\nIf you really want it, try -fsmode-dontuse, but don't report bugs!\n", CONF_TYPE_PRINT, CONF_RANGE, 0, 31, NULL},	{"fsmode-dontuse", &vo_fsmode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},	// set bpp (x11+vm, dga, fbdev, vesa, svga?)        {"bpp", &vo_dbpp, CONF_TYPE_INT, CONF_RANGE, 0, 32, NULL},	{"colorkey", &vo_colorkey, CONF_TYPE_INT, 0, 0, 0, NULL},	{"nocolorkey", &vo_colorkey, CONF_TYPE_FLAG, 0, 0, 0x1000000, NULL},	// double buffering:  (mga/xmga, xv, vidix, vesa, fbdev)	{"double", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 0, 1, NULL},	{"nodouble", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 1, 0, NULL},	// wait for v-sync (vesa)	{"vsync", &vo_vsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},	{"novsync", &vo_vsync, CONF_TYPE_FLAG, 0, 1, 0, NULL},	{"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL},	{"grabpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 0, 1, NULL},	{"nograbpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 1, 0, NULL},	    {"adapter", &vo_adapter_num, CONF_TYPE_INT, CONF_RANGE, 0, 5, NULL},    {"refreshrate",&vo_refresh_rate,CONF_TYPE_INT,CONF_RANGE, 0,100, NULL},	{"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL},#ifdef HAVE_X11

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -