# HG changeset patch # User attila # Date 1064141239 0 # Node ID 407840681da16fea1a643869324627e558012e4a # Parent 8f8d8734ef62bde99063ad5d8dfb16226f633d58 add some docu about when and how to call geometry diff -r 8f8d8734ef62 -r 407840681da1 DOCS/tech/libvo.txt --- 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