summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_out.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/video_out.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/video_out.h')
-rw-r--r--src/xine-engine/video_out.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.h b/src/xine-engine/video_out.h
index fa4600c5d..0b70998e2 100644
--- a/src/xine-engine/video_out.h
+++ b/src/xine-engine/video_out.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.h,v 1.108 2004/07/06 22:53:23 miguelfreitas Exp $
+ * $Id: video_out.h,v 1.109 2004/09/22 20:29:17 miguelfreitas Exp $
*
*
* xine version of video_out.h
@@ -146,6 +146,9 @@ struct vo_frame_s {
*/
int progressive_frame;
int picture_coding_type;
+
+ /* cropping to be done */
+ int crop_left, crop_right, crop_top, crop_bottom;
/* extra info coming from input or demuxers */
extra_info_t *extra_info;
@@ -289,6 +292,7 @@ struct xine_video_port_s {
#define VO_CAP_XVMC_MOCOMP 0x00000004 /* driver can use XvMC motion compensation */
#define VO_CAP_XVMC_IDCT 0x00000008 /* driver can use XvMC idct acceleration */
#define VO_CAP_UNSCALED_OVERLAY 0x00000010 /* driver can blend overlay at output resolution */
+#define VO_CAP_CROP 0x00000020 /* driver can crop */
/* macroblock modes */
#define XINE_MACROBLOCK_INTRA 1
@@ -325,7 +329,7 @@ struct xine_video_port_s {
* from generic vo functions.
*/
-#define VIDEO_OUT_DRIVER_IFACE_VERSION 19
+#define VIDEO_OUT_DRIVER_IFACE_VERSION 20
struct vo_driver_s {