summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-21 17:11:38 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-21 17:11:38 +0000
commit404adc94f44b2736d7c30bbc10fe47ab40c092f7 (patch)
tree56025183788d90dc2ce13cdb9c6ee26b2e386c2d /DOCS
parent56a7240127b26bd3ecaec3528b55dbabc76ba6cc (diff)
downloadmpv-404adc94f44b2736d7c30bbc10fe47ab40c092f7.tar.bz2
mpv-404adc94f44b2736d7c30bbc10fe47ab40c092f7.tar.xz
a bit update to libvo1.5, i think we should make a seperate documentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5245 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/tech/general.txt42
1 files changed, 32 insertions, 10 deletions
diff --git a/DOCS/tech/general.txt b/DOCS/tech/general.txt
index 2b5e001e5b..146c03cbdc 100644
--- a/DOCS/tech/general.txt
+++ b/DOCS/tech/general.txt
@@ -204,26 +204,48 @@ Now, go on:
we have to change to the desired bpp. If the hardware doesn't support,
we have to change to the one closest to it, and do conversion!
- control() - sends control requests to the device
- VOCTRL_QUERY_VAA - this is used by the vidix extension
- this is used by the vidix extension to fill a vo_vaa_t struct,
- I do not know how this works since I'm not the author of this
-
+ preinit():
+ init the video system (to support querying for supported formats)
+ THIS IS CALLED ONLY ONCE
+
+ control():
+ Current controls:
VOCTRL_QUERY_FORMAT - queries if a given pixelformat is supported.
return value: flags:
0x1 - supported
0x2 - supported without conversion (define 0x1 too!)
0x4 - sub/osd supported (has draw_alpha)
0x8 - hardware handles subpics
- 0x100 - driver/hardware handles timing (blocking)
-
+ 0x100 - driver/hardware handles timing (blocking)
+ VOCTRL_GET_IMAGE
+ libmpcodecs Direct Rendering interface
+ You need to set mpi (mp_image.h) structure, for example,
+ look at vo_x11, vo_sdl, vo_xv or mga_common.
VOCTRL_RESET - reset the video device
This is sent on seeking and similar and is useful if you are
using a device which prebuffers frames that need to flush them
before refilling audio/video buffers.
-
- init() - this is called before displaying of the first frame -
- initializing buffers, etc.
+ VOCTRL_PAUSE
+ VOCTRL_RESUME
+ VOCTRL_GUISUPPORT
+ return true only if driver supports co-operation with
+ MPlayer's GUI (not yet used by GUI)
+ VOCTRL_QUERY_VAA - this is used by the vidix extension
+ this is used by the vidix extension to fill a vo_vaa_t struct,
+ I do not know how this works since I'm not the author of this
+
+ config():
+ Set up the video system. You get the dimensions and flags.
+ Flags:
+ 0x01 - fullscreen (-fs)
+ 0x02 - mode switching (-vm)
+ 0x04 - software scaling (-zoom)
+ 0x08 - flipping (-flip) -- REQUIRED to support this
+ Also these flags you can get from vo_flags too and they're
+ defined as VOFLAG_* (see libvo/video_out.h)
+
+ uninit():
+ Uninit the whole system, this is on the same "level" as preinit.
draw_slice(): this displays YV12 pictures (3 planes, one full sized that
contains brightness (Y), and 2 quarter-sized which the colour-info