mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 23:02:37 +00:00
Added reverting support for -aa* -zr* -pp and -npp options
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4257 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c8f1194dda
commit
679844e497
@ -68,8 +68,8 @@
|
||||
|
||||
{"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
|
||||
CONF_TYPE_PRINT, 0, 0, 0, NULL},
|
||||
{"pp", &divx_quality, CONF_TYPE_INT, CONF_MIN, 0, 63, NULL},
|
||||
{"npp", readPPOpt, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL},
|
||||
{"pp", readPPOpt, CONF_TYPE_FUNC_PARAM, 0, 0, 0, (cfg_default_func_t)&revertPPOpt},
|
||||
{"npp", readNPPOpt, CONF_TYPE_FUNC_PARAM, 0, 0, 0, (cfg_default_func_t)&revertPPOpt},
|
||||
#ifdef HAVE_ODIVX_POSTPROCESS
|
||||
{"oldpp", &use_old_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||
#else
|
||||
|
@ -13,6 +13,8 @@ extern int use_old_pp;
|
||||
|
||||
extern int sws_flags;
|
||||
extern int readPPOpt(void *, char *arg);
|
||||
extern int readNPPOpt(void *conf, char *arg);
|
||||
extern void revertPPOpt(void *conf, char* opt);
|
||||
|
||||
#ifdef HAVE_DIVX4ENCORE
|
||||
struct config divx4opts_conf[]={
|
||||
|
@ -71,10 +71,12 @@ extern int WinID;
|
||||
|
||||
#ifdef HAVE_AA
|
||||
extern int vo_aa_parseoption(struct config * conf, char *opt, char * param);
|
||||
extern void vo_aa_revertoption(config_t* opt,char* param);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ZR
|
||||
extern int vo_zr_parseoption(struct config * conf, char *opt, char * param);
|
||||
extern void vo_zr_revertoption(config_t* opt,char* pram);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NEW_GUI
|
||||
@ -106,6 +108,8 @@ struct config ao_plugin_conf[]={
|
||||
|
||||
extern int sws_flags;
|
||||
extern int readPPOpt(void *conf, char *arg);
|
||||
extern int readNPPOpt(void *conf, char *arg);
|
||||
extern void revertPPOpt(void *conf, char* opt);
|
||||
|
||||
|
||||
/*
|
||||
@ -255,11 +259,11 @@ static config_t mplayer_opts[]={
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_AA
|
||||
{"aa*", vo_aa_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0 , NULL},
|
||||
{"aa*", vo_aa_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0 , &vo_aa_revertoption},
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ZR
|
||||
{"zr*", vo_zr_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0 },
|
||||
{"zr*", vo_zr_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0, &vo_zr_revertoption },
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIRC
|
||||
|
Loading…
Reference in New Issue
Block a user