aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/vo_xv.c
Commit message (Collapse)AuthorAge
* Move mRootWin,mScreen,mLocalDisplay to x11 structGravatar Uoti Urpala2008-04-23
|
* Move vo_mouse_autohide,vo_wm_type,vo_fs_type,vo_fs_flip to x11 structGravatar Uoti Urpala2008-04-23
|
* Move vo_gc,f_gc,vo_hints to x11 structGravatar Uoti Urpala2008-04-23
|
* Move xv_port,xv_colorkey,xv_ck_info to x11 structGravatar Uoti Urpala2008-04-23
|
* Move vo_window to x11 structGravatar Uoti Urpala2008-04-23
|
* Move static X11 atoms to structGravatar Uoti Urpala2008-04-23
|
* Move vo_screenwidth,vo_screenheight to options structGravatar Uoti Urpala2008-04-23
|
* Move vo_dx,vo_dy,vo_dwidth,vo_dheight to vo structGravatar Uoti Urpala2008-04-23
|
* Move global vo_config_count to vo structGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | | | | | Remove the global and Add a corresponding field to the vo struct, plus another which tells whether the LAST config call was successful.The latter value which tells whether the VO should be properly configured at the moment seems a better match for the semantics actually needed in most places where the old value was used. The 'count' field with the old semantics is not currently used by anything, but I'm leaving it there for vo drivers which would need those semantics if converted to use the struct. Existing uses of the global outside old vo drivers are either converted to use the struct field or moved inside the vo_xyz() calls (instead of "if (vo_config_count) vo_flip_page(..." just call vo_flip_page which will now do nothing if not configured). The removal of the check in mpcommon.c/update_subtitles() is less trivial than the others, but I think it shouldn't cause problems.
* Move global mDisplay to x11 state structGravatar Uoti Urpala2008-04-23
|
* Allocate vo struct with tallocGravatar Uoti Urpala2008-04-23
| | | | | Also allocate the private vo_xv struct as a child and remove explicit free() for it.
* Move vo_ontop to options structGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | Add a 'struct vo *vo' argument to the x11_common.c functions that access the variable so it's available as vo->opts->vo_ontop. To keep VOs using the old API working create a global vo variable that is set to the currently used old vo. "vo_ontop" will be #defined to "global_vo->opts->vo_ontop", and x11_common.h will add defines like the following when it is included by old VOs: #define vo_x11_ontop() vo_x11_ontop(global_vo) so that they will call the function according to the new declaration.
* vo_xv: Free resources in error casesGravatar Uoti Urpala2008-04-23
| | | | | | | | | If preinit() failed after allocating some resources it didn't free them. Also if preinit() completed but all (if any) calls to config() failed then uninit() it not free resources. Add checks to uninit() to make it safe with only a subset of resources allocated, then make it execute independently of vo_config_count and also make preinit() call it in error cases.
* vo_xv.c: Make reconfig logic more robustGravatar Uoti Urpala2008-04-23
| | | | | | The previous version was not buggy, but this is easier to see correct. Now it doesn't depend on options determining num_buffers staying constant and on vo_config_count.
* vo_xv.c: remove unnecessary #ifdefs and static varsGravatar Uoti Urpala2008-04-23
| | | | | | | | Combine code unnecessarily split in 3 #ifdef blocks into one block and change local variables there were pointlessly declared static to normal ones. After this vo_xv.c no longer defines any global or static variables.
* vo_xv.c: Cosmetic changesGravatar Uoti Urpala2008-04-23
| | | | | Remove an unnecessary inner scope in a function and separate 'i' loop counter variable declared in it, reindent.
* Change vo_xv to use new VO APIGravatar Uoti Urpala2008-04-23
|
* Add a context argument to mp_input_add_event_fd callbackGravatar Uoti Urpala2008-04-23
|
* vo_xv.c: Remove #if 0 codeGravatar Uoti Urpala2008-04-23
|
* Remove variable arguments from vo control() functionsGravatar Uoti Urpala2008-04-23
| | | | | No voctrl uses them any more, and using them would not be a good idea because it makes forwarding arguments to other functions harder.
* Change VOCTRL_[GET|SET]_EQUALIZER argument passingGravatar Uoti Urpala2008-04-23
| | | | | | | | These were the only voctrl types with more than one argument. The second argument was passed using variable arguments. Change them to use a single argument (address of a struct containing both old arguments). This makes forwarding the arguments to other functions easier and allows simplifying code.
* Revert accidentially committed line of r25994.Gravatar cehoyos2008-02-14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25995 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fix: inited --> initializedGravatar diego2008-02-14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark the vo_functions_t definitions as const where possible.Gravatar reimar2007-12-02
| | | | | | | | This is not possible for xover and anything supporting vidix due to horrible hacks. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25248 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make vo info structs constGravatar reimar2007-12-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25244 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:Gravatar diego2007-08-28
| | | | | | | | vo_xv.c:63: warning: redundant redeclaration of 'XShmGetEventBase' /usr/include/X11/extensions/XShm.h:80: warning: previous declaration of 'XShmGetEventBase' was here git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24259 b3059339-0415-0410-9bf9-f77b7e298cf2
* Watch X11 fd in main input select() if using vo xvGravatar uau2007-08-25
| | | | | | | | | Add the X11 fd to main input select() set, and call VO check_events() if it becomes readable. Only done in vo xv code for now, though would make sense for other X11-based VOs too. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24153 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some unused variablesGravatar reimar2007-06-27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23676 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make X11 window creation and (with -fixed-vo) management simpler and moreGravatar reimar2007-06-27
| | | | | | | | | consistent by introducing a new function that handles most of the ugly things. Changes of behaviour with some vos is unavoidable, bug reports welcome. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23675 b3059339-0415-0410-9bf9-f77b7e298cf2
* Gui --> guiGravatar diego2007-04-23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23095 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, last patch broke window resizing with xv and xvmc.Gravatar reimar2007-03-08
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22486 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factor out some duplicated code in vo_xv and vo_xvmcGravatar reimar2007-03-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22479 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move common vo initialization code to video_out.cGravatar reimar2007-02-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22250 b3059339-0415-0410-9bf9-f77b7e298cf2
* Sanity check for vo window dimensions, helps avoid division by zeroGravatar reimar2007-02-05
| | | | | | | with -wid. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22148 b3059339-0415-0410-9bf9-f77b7e298cf2
* MSGTRs for libvo/aspect.c and libvo/vo_xv.cGravatar kraymer2006-11-08
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20781 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix window position when changing videos while in fullscreen and forGravatar reimar2006-06-15
| | | | | | | window managers that modify position on Map. Oked by Alexander Strasser. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18718 b3059339-0415-0410-9bf9-f77b7e298cf2
* do aspect correction of video size before calculating vo_dx and vo_dy.Gravatar reimar2006-05-14
| | | | | | | fixes misplaced video e.g. with -aspect 0.3 (window is not centered but near left border) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18510 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure black borders are drawn when switching videos with -fixed-vo.Gravatar reimar2006-05-04
| | | | | | | Alexander Strasser at LinuxTag git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18385 b3059339-0415-0410-9bf9-f77b7e298cf2
* Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with ↵Gravatar reynaldo2006-04-24
| | | | | | lots of corrections git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18235 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix and improve xinerama supportGravatar reimar2006-04-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18117 b3059339-0415-0410-9bf9-f77b7e298cf2
* Test if source image dimensions are too big.Gravatar al2005-11-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16959 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix the return types of all (six) libvo API functions. Used to be uint32_t, butGravatar ivo2005-08-05
| | | | | | | | return values can be negative (VO_ERROR, VO_NOTAVAIL and VO_NOTIMPL), so it's changed to int now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16172 b3059339-0415-0410-9bf9-f77b7e298cf2
* Try to set XV_SYNC_TO_VBLANK to enable vsync on non-overlay xv adapters.Gravatar reimar2005-06-27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15827 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make -wid behave more consistent.Gravatar al2005-05-21
| | | | | | | Original patch by kiriuja |mplayer-patches >ta< en-directo >tod< net| git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15541 b3059339-0415-0410-9bf9-f77b7e298cf2
* replace VO and VF numeric flags with #defined identifiersGravatar henry2005-04-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15213 b3059339-0415-0410-9bf9-f77b7e298cf2
* more colorkey w/ panscan woesGravatar henry2005-04-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15193 b3059339-0415-0410-9bf9-f77b7e298cf2
* redraw colorkey on panscan changeGravatar henry2005-04-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15191 b3059339-0415-0410-9bf9-f77b7e298cf2
* - fix black screen problem on reinitGravatar al2005-04-16
| | | | | | | - disable colorkey autopainting when painting it manually git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15187 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always use vo_x11_sizehint function ( even when going fullscreen ) toGravatar al2005-02-24
| | | | | | | reflect at least the window aspect behaviour. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14798 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't change buffers when paused and redrawing.Gravatar al2005-02-23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14783 b3059339-0415-0410-9bf9-f77b7e298cf2