summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 17:40:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 17:40:53 +0000
commit694c3dc03f157eb62442fb2f24118f2ae4432ec7 (patch)
treebb97f3f9bd760f87c4b48f42ae61ccc07ffd33c4 /libvo/video_out.h
parent8c2821f32d62e6a2a6f6df99b366d1a2ba40fdd3 (diff)
downloadmpv-694c3dc03f157eb62442fb2f24118f2ae4432ec7.tar.bz2
mpv-694c3dc03f157eb62442fb2f24118f2ae4432ec7.tar.xz
Add a calc_src_dst_rects that calculates from window size, panscan etc.
which part of the video source must be scaled onto which part of the window. Direct3D and (future) VDPAU need this, for XvMC it makes it easier to add cropping support and Xv is changed to keep the diff to XvMC small. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28546 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/video_out.h')
-rw-r--r--libvo/video_out.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index fd65bb5c83..bc63712826 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -269,5 +269,9 @@ struct keymap {
int to;
};
int lookup_keymap_table(const struct keymap *map, int key);
+struct vo_rect {
+ int left, right, top, bottom, width, height;
+};
+void calc_src_dst_rects(int src_width, int src_height, struct vo_rect *src, struct vo_rect *dst, struct vo_rect *crop);
#endif /* MPLAYER_VIDEO_OUT_H */