summaryrefslogtreecommitdiffstats
path: root/libvo/aspect.h
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-03 14:41:53 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-03 14:41:53 +0000
commitabb7153e942b7e7324d8d6d81dd696a366ab944c (patch)
tree05f0aa1a9857766b5c329446ab5610eadfee2720 /libvo/aspect.h
parentd276fe563458936eb81e464ed439e0a2d80b3e69 (diff)
downloadmpv-abb7153e942b7e7324d8d6d81dd696a366ab944c.tar.bz2
mpv-abb7153e942b7e7324d8d6d81dd696a366ab944c.tar.xz
Monitor aspect stuff.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2054 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/aspect.h')
-rw-r--r--libvo/aspect.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libvo/aspect.h b/libvo/aspect.h
new file mode 100644
index 0000000000..c10d1ab41b
--- /dev/null
+++ b/libvo/aspect.h
@@ -0,0 +1,15 @@
+#ifndef __ASPECT_H
+#define __ASPECT_H
+/* Stuff for correct aspect scaling. */
+
+typedef struct {
+ int x; /* x,y starting coordinate */
+ int y; /* of upper left corner */
+ int w; /* width */
+ int h; /* height */
+} rect_t;
+
+rect_t aspect(int srcw, int srch, int fitinw, int fitinh);
+
+#endif
+