comparison DOCS/tech/libvo.txt @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents 6e90a47a6aaf
children 32725ca88fed
comparison
equal deleted inserted replaced
29262:7d545a6b8aff 29263:0f1b5b68af32
104 update_xinerama_info function. 104 update_xinerama_info function.
105 By supporting this, the VO also requests the newer API 105 By supporting this, the VO also requests the newer API
106 that sets vo_dx, vo_dy etc. appropriately before config() 106 that sets vo_dx, vo_dy etc. appropriately before config()
107 is called. 107 is called.
108 108
109 config(): 109 config():
110 Set up the video system. You get the dimensions and flags. 110 Set up the video system. You get the dimensions and flags.
111 width, height: size of the source image 111 width, height: size of the source image
112 d_width, d_height: wanted scaled/display size (it's a hint) 112 d_width, d_height: wanted scaled/display size (it's a hint)
113 Flags: 113 Flags:
114 0x01 - force fullscreen (-fs) 114 0x01 - force fullscreen (-fs)
115 0x02 - allow mode switching (-vm) 115 0x02 - allow mode switching (-vm)
116 0x04 - allow software scaling (-zoom) 116 0x04 - allow software scaling (-zoom)
117 0x08 - flipping (-flip) 117 0x08 - flipping (-flip)
118 They're defined as VOFLAG_* (see libvo/video_out.h) 118 They're defined as VOFLAG_* (see libvo/video_out.h)
119 119
120 IMPORTANT NOTE: config() may be called 0 (zero), 1 or more (2,3...) 120 IMPORTANT NOTE: config() may be called 0 (zero), 1 or more (2,3...)
121 times between preinit() and uninit() calls. You MUST handle it, and 121 times between preinit() and uninit() calls. You MUST handle it, and
122 you shouldn't crash at second config() call or at uninit() without 122 you shouldn't crash at second config() call or at uninit() without
123 any config() call! To make your life easier, vo_config_count is 123 any config() call! To make your life easier, vo_config_count is
124 set to the number of previous config() call, counted from preinit(). 124 set to the number of previous config() call, counted from preinit().
156 If you do not want to implement this, you can still use -vf 156 If you do not want to implement this, you can still use -vf
157 expand=osd=1 to draw the OSD, or even implement code to insert 157 expand=osd=1 to draw the OSD, or even implement code to insert
158 this filter automatically. 158 this filter automatically.
159 Make sure you set VFCAP_OSD depending on whether you implemented it 159 Make sure you set VFCAP_OSD depending on whether you implemented it
160 or not. 160 or not.
161 161
162 NOTE: This one will be obsolete soon! But it's still useful when 162 NOTE: This one will be obsolete soon! But it's still useful when
163 you want to do tricks, like rendering osd _after_ hardware scaling 163 you want to do tricks, like rendering osd _after_ hardware scaling
164 (tdfxfb) or render subtitles under of the image (vo_mpegpes, sdl) 164 (tdfxfb) or render subtitles under of the image (vo_mpegpes, sdl)
165 165
166 NOTE2: above NOTE is probably wrong, there are currently no plans to 166 NOTE2: above NOTE is probably wrong, there are currently no plans to