changeset 10904:407840681da1

add some docu about when and how to call geometry
author attila
date Sun, 21 Sep 2003 10:47:19 +0000
parents 8f8d8734ef62
children f448dcd93e6d
files DOCS/tech/libvo.txt
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/libvo.txt	Sun Sep 21 10:45:32 2003 +0000
+++ b/DOCS/tech/libvo.txt	Sun Sep 21 10:47:19 2003 +0000
@@ -80,6 +80,16 @@
       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