summaryrefslogtreecommitdiff
path: root/src/xine-engine/vo_scale.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-09-22 20:29:13 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-09-22 20:29:13 +0000
commitfa11460bbd06540d43ffe53d047f25639a0a6b83 (patch)
tree15c95a55bb4fbb9ea3a586f2bc171a33f787033a /src/xine-engine/vo_scale.h
parente115a32802f4284912a2833c04c06d65270cfdef (diff)
downloadxine-lib-fa11460bbd06540d43ffe53d047f25639a0a6b83.tar.gz
xine-lib-fa11460bbd06540d43ffe53d047f25639a0a6b83.tar.bz2
- added cropping capability (thanks James Stembridge)
- some vo drivers support cropping natively. (only xv and xvmc have been tested) - add software crop fallback to video_out.c - skip yuv2rgb processing at xshm for not yet cropped frames (these frames are never shown) - libmpeg2 and ffmpeg now may use crop support - bump vo api. (changes to xvmc/xxmc will follow) CVS patchset: 6991 CVS date: 2004/09/22 20:29:13
Diffstat (limited to 'src/xine-engine/vo_scale.h')
-rw-r--r--src/xine-engine/vo_scale.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/xine-engine/vo_scale.h b/src/xine-engine/vo_scale.h
index 736e50fbd..a5fd8d9e4 100644
--- a/src/xine-engine/vo_scale.h
+++ b/src/xine-engine/vo_scale.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: vo_scale.h,v 1.12 2004/04/25 14:50:32 komadori Exp $
+ * $Id: vo_scale.h,v 1.13 2004/09/22 20:29:18 miguelfreitas Exp $
*
* vo_scale.h
*
@@ -65,6 +65,15 @@ struct vo_scale_s {
int delivered_width;
int delivered_height;
double delivered_ratio;
+
+ /*
+ * required cropping:
+ * units: frame pixels
+ */
+ int crop_left;
+ int crop_right;
+ int crop_top;
+ int crop_bottom;
/*
* displayed part of delivered images,