diff options
| author | Andreas Auras <yak54@gmx.net> | 2010-02-11 23:51:18 +0100 |
|---|---|---|
| committer | Andreas Auras <yak54@gmx.net> | 2010-02-11 23:51:18 +0100 |
| commit | 017e53c1bd95e5b2c48c8e127647c61bde2c5b89 (patch) | |
| tree | aaff7100eaf7d7264c627c9ef54c8c6c72a3b851 | |
| parent | 852fd29a631b02fa39531321e502f33b20d58fb3 (diff) | |
| download | xine-lib-atmolight-017e53c1bd95e5b2c48c8e127647c61bde2c5b89.tar.gz xine-lib-atmolight-017e53c1bd95e5b2c48c8e127647c61bde2c5b89.tar.bz2 | |
add start_delay parameter
| -rw-r--r-- | README | 5 | ||||
| -rw-r--r-- | xine_post_atmo.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -181,4 +181,7 @@ gamma 0 Gamma correction factor for red, green and b Note: When using DF10CH controller(s) it is better to use the gamma calibration feature of the DF10CH setup program instead of this parameter because you will lose no PWM resolution. -
\ No newline at end of file + +start_delay 250 Delay after stream start before first output is send [ms]. + Valid values 0 ... 5000. +
\ No newline at end of file diff --git a/xine_post_atmo.c b/xine_post_atmo.c index 9208630..90655c1 100644 --- a/xine_post_atmo.c +++ b/xine_post_atmo.c @@ -94,6 +94,7 @@ typedef struct { int wc_green; int wc_blue; int gamma; + int start_delay; } atmo_parameters_t; @@ -156,6 +157,8 @@ PARAM_ITEM(POST_PARAM_TYPE_INT, wc_blue, NULL, 0, 255, 0, "white calibration correction factor of blue color channel") PARAM_ITEM(POST_PARAM_TYPE_INT, gamma, NULL, 0, 30, 0, "gamma correction factor") +PARAM_ITEM(POST_PARAM_TYPE_INT, start_delay, NULL, 0, 5000, 0, + "delay after stream start before first output is send [ms]") END_PARAM_DESCR(atmo_param_descr) @@ -866,7 +869,7 @@ static void *atmo_output_loop (void *port_gen) { /* Output colors */ gettimeofday(&tvnow, NULL); timersub(&tvnow, &tvfirst, &tvdiff); - if ((tvdiff.tv_sec * 1000 + tvdiff.tv_usec / 1000) >= OUTPUT_START_DELAY) { + if ((tvdiff.tv_sec * 1000 + tvdiff.tv_usec / 1000) >= this->parm.start_delay) { if (memcmp(this->output_colors, this->last_output_colors, colors_size)) { output_driver->output_colors(output_driver, this->output_colors, this->last_output_colors); memcpy(this->last_output_colors, this->output_colors, colors_size); @@ -1214,6 +1217,7 @@ static post_plugin_t *atmo_open_plugin(post_class_t *class_gen, this->parm.wc_green = 255; this->parm.wc_blue = 255; this->parm.gamma = 0; + this->parm.start_delay = 250; return &this->post_plugin; } |
