summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
Commit message (Collapse)AuthorAgeFilesLines
* Change glCreateClearTex to use the same host data format as later uploads.reimar2008-09-201-8/+8
| | | | | | | This fixes at least some of the massive performance problems the ATI drivers have. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27653 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename font-related preprocessor directives.diego2008-08-071-1/+1
| | | | | | | Switch them from a HAVE_ to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27425 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename two GUI-related preprocessor directives:diego2008-07-301-2/+2
| | | | | | | 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
* One more hack for PBOs on ATI cards.reimar2008-07-061-0/+3
| | | | | | | Either I am doing something very wrong or they managed to code at about 1 bug per line... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27216 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move at-hack code a bit up for further changesreimar2008-07-061-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27215 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l: finally understood ATI PBO problem: width must be a power of two.reimar2008-07-041-2/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27201 b3059339-0415-0410-9bf9-f77b7e298cf2
* More stride alignment is needed to work reliably on ATI cards :-(reimar2008-07-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27200 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, bpp is bits per pixel, not bytesreimar2008-06-221-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27121 b3059339-0415-0410-9bf9-f77b7e298cf2
* Render everything as early as possible, doing as little as possible inreimar2008-05-251-4/+19
| | | | | | | | flip_page. Can improve A-V sync when playing a video that uses little CPU with GPU filtering that is very slow. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26874 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reorder flip_page to make moving around do_render call easierreimar2008-05-251-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26873 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split flip_page functionreimar2008-05-251-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26872 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a filter strength parameter for blurring/sharpening scalers.reimar2008-05-241-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26868 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a struct instead of a huge and further growing argument list.reimar2008-05-241-3/+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
* Simplify equalizer handling for vo glreimar2008-05-221-54/+32
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26854 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
* Add force-pbo suboption for faster OpenGL output.reimar2008-05-101-2/+22
| | | | | | | | Based on a patch by Sven Gothel sgothel-jausoftcom. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26713 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add ati-hack suboption that aligns the lines to 32/64 bytes for PBO transfersreimar2008-05-101-0/+7
| | | | | | | to avoid what is probably a bug in the driver. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26709 b3059339-0415-0410-9bf9-f77b7e298cf2
* vo_gl -dr actually works fine with non-readable MP_IMGTYPE_IP and ↵reimar2008-05-031-2/+0
| | | | | | MP_IMGTYPE_IPB. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26656 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 100l: mpi->height must be used to calculate required memory, not mpi->h.reimar2008-05-031-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26654 b3059339-0415-0410-9bf9-f77b7e298cf2
* Slightly document alpha for OSD colorreimar2008-02-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25984 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support alpha for vo gl osdcolorreimar2008-02-111-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25983 b3059339-0415-0410-9bf9-f77b7e298cf2
* Redraw display on toggling borderreimar2008-02-011-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25944 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always redraw video on resize.reimar2008-01-311-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25943 b3059339-0415-0410-9bf9-f77b7e298cf2
* Small typo in messagereimar2008-01-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25782 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add experimental unsharp-mask OpenGL scaler. Certainly not yet perfect.reimar2008-01-151-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25757 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document vo gl lscale=3reimar2008-01-151-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25756 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
* 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
* Avoid text deformation and subtitles moving outside the screen in pan-and-scaneugeni2007-10-191-2/+2
| | | | | | | | | | | | mode. For this, crop amounts are passed from vo_gl as negative margins sizes. They are used to calculate aspect ratio. They are ignored when calculating subtitle positions, so subtitles will stay on screen most of the time. Based on a patch by Jindrich Makovicka [makovick gmail com]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24815 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle case where get_image is called twice without a draw_image in-betweenreimar2007-08-031-1/+6
| | | | | | | (-vc ffmpeg12 seems to do this sometimes). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24007 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set -vo gl slice-height default to 0, the current default of 4 seemsreimar2007-07-281-3/+1
| | | | | | | | to never be much faster, but there were multiple reports where it was a lot slower (mostly those where gl2 was faster). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23898 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make X11 window creation and (with -fixed-vo) management simpler and morereimar2007-06-271-52/+5
| | | | | | | | | 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
* set the window aspect hinthenry2007-06-091-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23525 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some unused variables, patch by timwoj ieee org.diego2007-05-281-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23399 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not set VFCAP_EOSD_UNSCALED if we use scaled-osdreimar2007-04-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23153 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add -ass-hinting option for setting font hinting method.eugeni2007-04-271-1/+1
| | | | | | | | | It is possible to separately configure hinting for scaled and unscaled osd. The default is native hinter for unscaled osd (only vo_gl at this point), no hinting for vf_ass. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23152 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
* Add a new GPU-based scaling method to vo glreimar2007-03-111-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22507 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move common vo initialization code to video_out.creimar2007-02-171-14/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22250 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid calling aspect on each frame and make ass subtitles work better with ↵reimar2007-02-061-4/+5
| | | | | | panscan git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22167 b3059339-0415-0410-9bf9-f77b7e298cf2
* Update gl:help output a bitreimar2007-02-031-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22105 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
* Speed up ASS subtitles display by detecting changes between two consecutiveeugeni2006-12-061-1/+12
| | | | | | | rendering results. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix single-black-pixel-in-upper-left-corner bug (how do people notice a singlereimar2006-10-241-1/+1
| | | | | | | black pixel?? Amazing...). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20436 b3059339-0415-0410-9bf9-f77b7e298cf2
* EOSD performance debugging info.reimar2006-10-061-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20090 b3059339-0415-0410-9bf9-f77b7e298cf2
* Whitespace-only cosmeticsreimar2006-09-221-13/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19945 b3059339-0415-0410-9bf9-f77b7e298cf2
* Aggregate multiple small EOSD textures into one large since hundreds ofreimar2006-09-221-2/+57
| | | | | | | | | texture creates are very slow. Might cause artefacts with scaled OSD since large textures are not cleared each time. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19944 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: move curtex++ out of for () into code body, needed for coming patchreimar2006-09-221-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19943 b3059339-0415-0410-9bf9-f77b7e298cf2
* use eosdDispList != 0 to check if eosd should be drawn instead of eosdtexCnt > 0reimar2006-09-221-2/+2
| | | | | | | in preparation of upcoming patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19942 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make genEOSD behaviour with NULL data more explicitreimar2006-09-221-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19941 b3059339-0415-0410-9bf9-f77b7e298cf2
* Modify clearEOSD to make experimenting easierreimar2006-09-221-5/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19940 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove useless zero-initialization code.reimar2006-09-221-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19939 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: reindent, remove tabs and break overlong lines.reimar2006-08-281-75/+70
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19586 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: fix indentation after last patchreimar2006-08-281-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19585 b3059339-0415-0410-9bf9-f77b7e298cf2
* Hardware EOSD (ass) support.reimar2006-08-281-2/+88
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19584 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable Y800 colorspace support, otherwise mplayer uses it even when it's ↵reimar2006-08-081-0/+4
| | | | | | not supposed to. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19362 b3059339-0415-0410-9bf9-f77b7e298cf2
* vo_gl can do flipping without special filterreimar2006-07-101-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19001 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix negative stride handling in -dr casereimar2006-07-101-8/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19000 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of left-over incorrect UnmapBuffer hackreimar2006-07-101-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18999 b3059339-0415-0410-9bf9-f77b7e298cf2
* customtrect -vo gl suboptionreimar2006-07-081-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18968 b3059339-0415-0410-9bf9-f77b7e298cf2
* More helpful ProgramEnvParameters.reimar2006-07-081-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18965 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improve windows gui supportreimar2006-07-081-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18954 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not assign same texture number to GL_TEXTURE_2D and GL_TEXTURE_RECT,reimar2006-07-041-5/+5
| | | | | | | this can also cause problems. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18901 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 2reynaldo2006-07-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18883 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of unused variablereimar2006-07-011-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18877 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure all texture units have a different texture bound.reimar2006-07-011-8/+17
| | | | | | | Should fix weird behaviour with e.g. yuv=4:lscale=1 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18876 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove pointless and sometimes incorrect lookupTex stuffreimar2006-06-221-8/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18791 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce number of OpenGL state changes when drawing OSD by first drawing alpha.reimar2006-06-151-4/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18722 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document lscale/cscale in -vo gl:help messagereimar2006-06-131-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18698 b3059339-0415-0410-9bf9-f77b7e298cf2
* loadGPUProgram function to load fragment program with error checking and ↵reimar2006-06-081-6/+1
| | | | | | statistics git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18654 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reworked YUV2RGB fragment program setup in preparation for upcoming patchesreimar2006-06-071-4/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18620 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move/add checks to avoid crashes and make error messages less confusingreimar2006-06-051-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18580 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-7/+1
| | | | | | | fullscreen on current monitor). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18080 b3059339-0415-0410-9bf9-f77b7e298cf2
* support custom OSD colour for vo_gl.c. Based on patch by Tomas Janousek tomi ↵reimar2006-03-261-0/+7
| | | | | | at nomi cz git-svn-id: s