summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-02-13 14:32:17 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-02-13 14:32:17 +0000
commit032c05d1de6354a4dcd5c98c278a5f728c25b8c8 (patch)
tree9e06279813c29662462fcdd060b65191008e936e
parent9b6136d437ea66f2f34f4d879db2ce6873e665a8 (diff)
downloadxine-lib-032c05d1de6354a4dcd5c98c278a5f728c25b8c8.tar.gz
xine-lib-032c05d1de6354a4dcd5c98c278a5f728c25b8c8.tar.bz2
configurable vertical overlay size
(people who have green lines at the top or the bottom of the overlay should increase this value) CVS patchset: 4143 CVS date: 2003/02/13 14:32:17
-rw-r--r--src/dxr3/video_out_dxr3.c9
-rw-r--r--src/dxr3/video_out_dxr3.h3
2 files changed, 8 insertions, 4 deletions
diff --git a/src/dxr3/video_out_dxr3.c b/src/dxr3/video_out_dxr3.c
index 2500d0b5f..d92560a2b 100644
--- a/src/dxr3/video_out_dxr3.c
+++ b/src/dxr3/video_out_dxr3.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_dxr3.c,v 1.71 2003/02/10 17:28:35 mroi Exp $
+ * $Id: video_out_dxr3.c,v 1.72 2003/02/13 14:32:17 mroi Exp $
*/
/* mpeg1 encoding video out plugin for the dxr3.
@@ -390,6 +390,9 @@ static vo_driver_t *dxr3_vo_open_plugin(video_driver_class_t *class_gen, const v
_("Dxr3: overlay colorkey range"),
_("A greater value widens the tolerance for the overlay keycolor"), 10, NULL, NULL);
sscanf(confstr, "%f", &this->overlay.color_interval);
+ this->overlay.shrink = config->register_num(config, "dxr3.shrink_overlay_area", 0,
+ _("Crops the overlay area from top and bottom to avoid green lines"),
+ NULL, 20, NULL, NULL);
} else {
printf("video_out_dxr3: please run autocal, overlay disabled\n");
this->overlay_enabled = 0;
@@ -1398,8 +1401,8 @@ static void dxr3_overlay_update(dxr3_driver_t *this)
this->scale.gui_width, this->scale.gui_height);
XSetForeground(this->display, this->gc, this->key.pixel);
XFillRectangle(this->display, this->win, this->gc,
- this->scale.output_xoffset, this->scale.output_yoffset,
- this->scale.output_width, this->scale.output_height);
+ this->scale.output_xoffset, this->scale.output_yoffset + this->overlay.shrink,
+ this->scale.output_width, this->scale.output_height - 2 * this->overlay.shrink);
XFlush(this->display);
XUnlockDisplay(this->display);
diff --git a/src/dxr3/video_out_dxr3.h b/src/dxr3/video_out_dxr3.h
index 4fe4f7364..fd0fac039 100644
--- a/src/dxr3/video_out_dxr3.h
+++ b/src/dxr3/video_out_dxr3.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_dxr3.h,v 1.14 2003/01/18 17:25:41 mroi Exp $
+ * $Id: video_out_dxr3.h,v 1.15 2003/02/13 14:32:18 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -64,6 +64,7 @@ typedef struct dxr3_overlay_s {
int screen_xres;
int screen_yres;
int screen_depth;
+ int shrink;
struct coeff colcal_upper[3];
struct coeff colcal_lower[3];