summaryrefslogtreecommitdiffstats
path: root/DOCS/tech
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-21 10:47:19 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-21 10:47:19 +0000
commit3f9f1d95b76d955d648d9f6b87ef17578f6d2250 (patch)
tree24834d7fe88f99045504a6d7f1bfbea8abce7e57 /DOCS/tech
parent0477a2eaef4017538d220fa538477ca3bb26518d (diff)
downloadmpv-3f9f1d95b76d955d648d9f6b87ef17578f6d2250.tar.bz2
mpv-3f9f1d95b76d955d648d9f6b87ef17578f6d2250.tar.xz
add some docu about when and how to call geometry
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10905 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/tech')
-rw-r--r--DOCS/tech/libvo.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/DOCS/tech/libvo.txt b/DOCS/tech/libvo.txt
index f41fabff9f..b1ee6811fa 100644
--- a/DOCS/tech/libvo.txt
+++ b/DOCS/tech/libvo.txt
@@ -80,6 +80,16 @@ Each vo driver _has_ to implement these:
So, you can check for vo_config_count>0 in uninit() when freeing
resources allocated in config() to avoid crash!
+ You should call geometry() in config() to enable user defined
+ window size and position. The code should look as following:
+ ---
+ set x,y,w,h to the values supplied by the caller or to those you deam
+ usefull.
+ call geometry(&x, &y, &w, &h, screenw, screenh)
+ call aspect()
+ ---
+ see libvo/geometry.c for further information
+
draw_slice(): this displays YV12 pictures (3 planes, one full sized that
contains brightness (Y), and 2 quarter-sized which the colour-info
(U,V). MPEG codecs (libmpeg2, opendivx) use this. This doesn't have