diff options
author | phintuka <phintuka> | 2008-04-13 22:14:31 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-04-13 22:14:31 +0000 |
commit | 83753210c717c4fb356ec797d255433e20a5c0d1 (patch) | |
tree | 8ebd313881941d62d726bb0e121325e01046cd73 | |
parent | 01ff5d597cd981254542ea94d5cdef30fb5481e2 (diff) | |
download | xineliboutput-83753210c717c4fb356ec797d255433e20a5c0d1.tar.gz xineliboutput-83753210c717c4fb356ec797d255433e20a5c0d1.tar.bz2 |
SCR setings
-rw-r--r-- | config.c | 19 | ||||
-rw-r--r-- | config.h | 6 | ||||
-rw-r--r-- | frontend.c | 6 |
3 files changed, 19 insertions, 12 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.c,v 1.58 2008-04-12 19:37:41 phintuka Exp $ + * $Id: config.c,v 1.59 2008-04-13 22:14:31 phintuka Exp $ * */ @@ -532,6 +532,10 @@ config_t::config_t() { brightness = -1; vo_aspect_ratio = 0; + live_mode_sync = 1; // Sync SCR to transponder clock in live mode + scr_tunning = 0; // Fine-tune xine egine SCR (to sync video to graphics output) + scr_hz = 90000; // Current SCR speed (Hz), default is 90000 + strn0cpy(browse_files_dir, VideoDirectory, sizeof(browse_files_dir)); strn0cpy(browse_music_dir, VideoDirectory, sizeof(browse_music_dir)); strn0cpy(browse_images_dir, VideoDirectory, sizeof(browse_images_dir)); @@ -569,11 +573,8 @@ bool config_t::ProcessArgs(int argc, char *argv[]) //{ "xkeyboard", no_argument, NULL, 'k' }, //{ "noxkeyboard", no_argument, NULL, 'K' }, { "local", required_argument, NULL, 'l' }, - //{ "nolocal", no_argument, NULL, 'L' }, //{ "modeline", required_argument, NULL, 'm' }, { "remote", required_argument, NULL, 'r' }, - //{ "noremote", no_argument, NULL, 'R' }, - //{ "window", no_argument, NULL, 'w' }, { "audio", required_argument, NULL, 'A' }, { "video", required_argument, NULL, 'V' }, { "display", required_argument, NULL, 'd' }, @@ -604,8 +605,6 @@ bool config_t::ProcessArgs(int argc, char *argv[]) // break; case 'l': ProcessArg("Frontend", optarg); break; - //case 'L': ProcessArg("Frontend", "none"); - // break; //case 'm': ProcessArg("Modeline", optarg); // break; case 'r': if(strcmp(optarg, "none")) { @@ -625,10 +624,6 @@ bool config_t::ProcessArgs(int argc, char *argv[]) } else ProcessArg("RemoteMode", "0"); break; - //case 'R': ProcessArg("RemoteMode", "0"); - // break; - //case 'w': ProcessArg("Fullscreen", "0"); - // break; case 'V': ProcessArg("Video.Driver", optarg); break; case 'A': if(strchr(optarg,':')) { @@ -792,6 +787,10 @@ bool config_t::SetupParse(const char *Name, const char *Value) else if (!strcasecmp(Name, "Playlist.Artist")) playlist_artist = atoi(Value); else if (!strcasecmp(Name, "Playlist.Album")) playlist_album = atoi(Value); + else if (!strcasecmp(Name, "Advanced.LiveModeSync")) xc.live_mode_sync = atoi(Value); + else if (!strcasecmp(Name, "Advanced.AdjustSCR")) xc.scr_tunning = atoi(Value); + else if (!strcasecmp(Name, "Advanced.SCRSpeed")) xc.scr_hz = atoi(Value); + else if (!strcasecmp(Name, "Audio.Equalizer")) sscanf(Value,"%d %d %d %d %d %d %d %d %d %d", audio_equalizer ,audio_equalizer+1, @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.h,v 1.42 2008-04-12 19:37:41 phintuka Exp $ + * $Id: config.h,v 1.43 2008-04-13 22:14:31 phintuka Exp $ * */ @@ -337,6 +337,10 @@ class config_t { int remote_rtp_always_on; int remote_rtp_sap; + // Advanced settings + int live_mode_sync; /* Sync SCR to transponder clock in live mode */ + int scr_tunning; /* Fine-tune xine egine SCR (to sync video to graphics output) */ + int scr_hz; /* Current SCR speed (Hz), default is 90000 */ config_t(); @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.c,v 1.55 2008-04-12 19:37:41 phintuka Exp $ + * $Id: frontend.c,v 1.56 2008-04-13 22:14:31 phintuka Exp $ * */ @@ -801,6 +801,10 @@ void cXinelibThread::Configure(void) #ifdef ENABLE_TEST_POSTPLUGINS ConfigurePostprocessing("headphone", xc.headphone ? true : false, NULL); #endif + + Xine_Control(cString::sprintf("SCR %s %d", + xc.live_mode_sync ? "Sync" : "NoSync", + xc.scr_tunning ? xc.scr_hz : 90000)); } int cXinelibThread::ConfigureOSD(void) |