summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename two GUI-related preprocessor directives:diego2008-07-301-3/+3
| | | | | | | HAVE_NEW_GUI --> CONFIG_GUI, HAVE_GTK2_GUI --> CONFIG_GTK2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27375 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable runtime border/window decorations-toggling for Linux gl and gl2 vos.reimar2008-07-221-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27338 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a struct instead of a huge and further growing argument list.reimar2008-05-241-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26866 b3059339-0415-0410-9bf9-f77b7e298cf2
* Saner handling of VOCTRL_PAUSE/VOCTRL_RESUMEreimar2008-05-221-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26855 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove useless parentheses from from return statements.diego2008-05-161-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26787 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set vo_mouse_autohide in gl and gl2 vos, so the mouse hiding behaviourreimar2007-12-221-0/+1
| | | | | | | becomes the same as for the other vos using X11. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25513 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace some more broken SYS_DARWIN preprocessor conditionals with __APPLE__.diego2007-12-161-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25425 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark the vo_functions_t definitions as const where possible.reimar2007-12-021-1/+1
| | | | | | | | 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 constreimar2007-12-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25244 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation after patch to remove global vo_hdcreimar2007-09-031-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24335 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make X11 window creation and (with -fixed-vo) management simpler and morereimar2007-06-271-44/+3
| | | | | | | | | 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
* Lots of cosmetics for gl2reimar2007-06-261-329/+283
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23671 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove two unused variablesreimar2007-06-261-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23670 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove overly complex and unused per-subtexture "dirty" handlingreimar2007-06-261-77/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23669 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove now unused variablereimar2007-06-261-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23668 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove useless calloc castreimar2007-06-261-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23667 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some unused code and useless error checking that only clutters the codereimar2007-06-261-56/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23665 b3059339-0415-0410-9bf9-f77b7e298cf2
* Gui --> guidiego2007-04-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23095 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set classhint directly after creating window just as all other vos do, in ↵reimar2007-02-181-3/+3
| | | | | | | | | accordance with ICCCM. Patch by Mark Tiefenbruck [mark at fluxbox org] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22266 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move common vo initialization code to video_out.creimar2007-02-171-15/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22250 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation under MinGW with X11 enabledreimar2006-12-171-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21647 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improve windows gui supportreimar2006-07-081-4/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18954 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make header include order more similar to vo_gl.creimar2006-06-171-3/+2
| | | | | | | Patch by Erik Lunchpail (erik_27can at yahoo com) to ease win32 gui compilation git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18745 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reworked YUV2RGB fragment program setup in preparation for upcoming patchesreimar2006-06-071-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18620 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid crash with e.g. -vo gl2:yuv=2 when no fragment program functions are ↵reimar2006-06-051-0/+4
| | | | | | | | | available Fix "ported" from vo_gl.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18585 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix and improve xinerama supportreimar2006-04-161-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18117 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixes and cleanup for windows fullscreen switching (restore old position,reimar2006-04-121-9/+1
| | | | | | | fullscreen on current monitor). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18080 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \rathann2006-02-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
* support negative stride (flipping) in vo_gl.reimar2005-12-181-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17221 b3059339-0415-0410-9bf9-f77b7e298cf2
* signed division must be used for calculation vo_dx and vo_dy.reimar2005-12-071-2/+2
| | | | | | | Fixes a bug that causes overbig windows to disappear on Windows. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17128 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of most #ifdefsreimar2005-12-061-34/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17117 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable border toggling for gl and gl2 under windows.reimar2005-11-171-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17007 b3059339-0415-0410-9bf9-f77b7e298cf2
* documentation update.reimar2005-10-011-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16627 b3059339-0415-0410-9bf9-f77b7e298cf2
* debugging/testing helpers: allow forcing a certain width/height for texturesreimar2005-09-251-0/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16595 b3059339-0415-0410-9bf9-f77b7e298cf2
* panscan supportreimar2005-09-251-0/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16591 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support rectangular texture in fragment programsreimar2005-09-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16587 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crashes and green border when using YV12 input formatreimar2005-09-251-11/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16584 b3059339-0415-0410-9bf9-f77b7e298cf2
* hardware color-space conversion for vo_gl and vo_gl2reimar2005-09-141-2/+114
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16489 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow disabling the glFinish callreimar2005-09-131-5/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16476 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix texture format variable types. Internal format is GLint, others are GLenumreimar2005-08-251-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16304 b3059339-0415-0410-9bf9-f77b7e298cf2
* -wid support for windows. Not well tested, might still behave a bit weird.reimar2005-08-211-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16283 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get events from -wid window.reimar2005-08-161-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16240 b3059339-0415-0410-9bf9-f77b7e298cf2
* use glUploadTex helper functionreimar2005-08-141-12/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16225 b3059339-0415-0410-9bf9-f77b7e298cf2
* textures smaller 64x64 might not be supportedreimar2005-08-141-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16223 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove/move some unused headers/variables/codereimar2005-08-141-11/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16222 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, texture_width/height initialization was removed, so usereimar2005-08-141-2/+2
| | | | | | | image_width/height here git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16221 b3059339-0415-0410-9bf9-f77b7e298cf2
* Helper function for drawing texture and general cleanup of vo_gl2.creimar2005-08-141-129/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16215 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix the return types of all (six) libvo API functions. Used to be uint32_t, butivo2005-08-051-6/+6
| | | | | | | | 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
* support -widreimar2005-06-181-1/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15749 b3059339-0415-0410-9bf9-f77b7e298cf2
* -geometry support for gl2 under win, default window pos centered for gl, gl2reimar2005-05-301-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15596 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement -geometry for vo gl and gl2.reimar2005-05-291-3/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15590 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove a lot of duplicate codereimar2005-02-211-15/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14748 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused definesreimar2004-12-291-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14271 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improving gl2 under windows, moving some functionality to gl_commonreimar2004-12-111-6/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14143 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move selection of internal texture format to appropriate place, shouldreimar2004-12-031-59/+51
| | | | | | | be at texture initialization as visual might change. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14091 b3059339-0415-0410-9bf9-f77b7e298cf2
* More similar code from gl and gl2 moved to gl_commonreimar2004-12-011-77/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14079 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid drawing before transformation matrices are set up.reimar2004-11-131-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13927 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lfaust32004-11-051-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13878 b3059339-0415-0410-9bf9-f77b7e298cf2
* more fullscreen fixes and gl2 uses setGlWindow.reimar2004-11-041-54/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13872 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.diego2004-10-281-1/+1
| | | | | | | Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
* added gl_common for code used by both vo_gl.c and vo_gl2.c.reimar2004-10-171-13/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13654 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed UNPACK_ALIGNMENT setting.reimar2004-10-061-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13576 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed memleak, especially for fixed-vo.reimar2004-10-031-1/+7
| | | | | | | Based on a patch by beastd (eclipse7 (at) gmx (dot) net). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13541 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed saver_on, saver_off calls, they are already in x11_common.creimar2004-07-251-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12896 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix for people experimenting with GUI under windowsreimar2004-07-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12886 b3059339-0415-0410-9bf9-f77b7e298cf2
* use RGB32 textures on OS Xreimar2004-07-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12843 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, OSX compile fix, patch by Steven Schulz (sms (at) 2BSD (dot) com)reimar2004-07-061-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12763 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed XFlush() before XSync(), made config_glx return-type signed, force ↵reimar2004-07-021-8/+15
| | | | | | 32bit on Darwin, idea from a patch by Marc Hoffman (mmh <at> pleasantst.com). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12751 b3059339-0415-0410-9bf9-f77b7e298cf2
* avoid visuals with low color-depth.reimar2004-06-271-0/+12
| | | | | | | Based on idea from Timo Kanera (timo (at) kanera (dot) de). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12710 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing useless code, improving readabilityreimar2004-05-081-39/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12449 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed memory leak and removed unnecessary static variablereimar2004-05-081-9/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12447 b3059339-0415-0410-9bf9-f77b7e298cf2
* clear buffer after (glX)SwapBuffers in fullscreen to avoid flickering bordersreimar2004-05-021-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12395 b3059339-0415-0410-9bf9-f77b7e298cf2
* GUI supportreimar2004-05-011-0/+44
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12383 b3059339-0415-0410-9bf9-f77b7e298cf2
* corrected problems with switching to and from fullscreen mode esp. with fixed-voreimar2004-03-171-19/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12036 b3059339-0415-0410-9bf9-f77b7e298cf2
* printf -> mp_msgattila2004-02-221-35/+25
| | | | | | | patch by Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11989 b3059339-0415-0410-9bf9-f77b7e298cf2
* runtime 'stay-on-top' functionalityjoey2003-11-301-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11543 b3059339-0415-0410-9bf9-f77b7e298cf2
* * clear window on fullscreen switchattila2003-10-121-10/+16
| | | | | | | * add call of vo_x11_sizehint git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11088 b3059339-0415-0410-9bf9-f77b7e298cf2
* many small typo and grammar fixesgabucino2003-10-041-1/+1
| | | | | | | Based on Bernard Leak's mail <bernard 4t brenda-arkle.demon.co.uk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/t