reimar
fb26608318
Make vo gl print the OpenGL vendor and version strings.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30193 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-03 18:44:56 +00:00
reimar
f102ac7a8c
Fix function declarations to avoid casting function pointers.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30164 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-01 13:18:49 +00:00
reimar
5f684e1b32
Slightly generalize code to generate YUV->RGB conversion table and add
...
XYZ->RGB conversion as an example for that.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30163 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-01 12:54:09 +00:00
reimar
6450271656
Make YUV->RGB conversion coefficients selectable for -vo gl.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30161 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-01 12:47:43 +00:00
reimar
a326622304
Add support for 16-bit per component YUV formats.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30152 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-31 22:53:25 +00:00
reimar
498ad7ba57
First steps to supporting different YUV->RGB conversion definitions.
...
The numbers are possibly still wrong though.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30151 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-31 19:59:58 +00:00
reimar
c4c806a9d7
Put the colourspace-related variables into a separate struct to ease
...
extracting the code and sharing with other vos.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30149 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-31 18:07:37 +00:00
reimar
8e35068138
Support all planar YUV formats in OpenGL vos.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30139 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-30 11:32:24 +00:00
reimar
51e55db62e
Move do_render_osd function to avoid a forward declaration.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30126 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-27 14:31:13 +00:00
reimar
6023874828
Some ugly hacks to make compiling against a newer external version of libass work.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30107 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-24 10:51:24 +00:00
reimar
2908957147
Remove more direct includes of libass/ass.h
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30105 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-24 10:26:29 +00:00
reimar
81783bceed
Slightly improve vo_gl suboption documentation.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30075 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 21:08:14 +00:00
reimar
300d40bed3
Add support for auto-generating mipmaps in vo_gl, should ease
...
implementing anything that needs blur filters with large support.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30072 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 20:53:34 +00:00
reimar
5dc258f4e8
Make -vo gl:customprog also work with RGB input (obviously those need to be
...
special RGB fragment programs).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30071 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 20:48:23 +00:00
reimar
f97fd3eff0
Rename GL_* defines to CONFIG_GL_*
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30065 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 13:49:44 +00:00
reimar
140de2a9e2
Make the check for X11 and WIN32 backends for OpenGL separate.
...
This fixes compilation on Windows with X11 but no GLX available.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30063 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 10:52:32 +00:00
reimar
e64d47925a
Pass all OpenGL functions through a function pointer indirection.
...
This still needs more work, but should allow supporting e.g. GLX-OpenGL
and Win32-OpenGL with a single binary.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29981 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-08 23:32:51 +00:00
reimar
2661039ada
Very preliminary code to allow selecting the OpenGL backend at runtime.
...
Works in the currently supported cases for only Win32 and only X11,
the mixed case is not working yet though.
But applied anyway since the code is slightly less messy than the current one.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29980 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-08 06:42:46 +00:00
reimar
1bd34477aa
Print which visual glXChooseVisual chose when running in verbose mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29948 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-21 22:32:53 +00:00
reimar
a531e51297
Set sensible write frequency/priority values for AllocateMemoryMESA
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29723 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-27 14:33:45 +00:00
reimar
f78f32c864
Print error instead of crashing when mesa-buffer is used on systems
...
that do not support it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29722 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-27 14:31:35 +00:00
reimar
bf52efc804
Re-add some ifdefs, partially reverting r29688, since mDisplay and
...
mScreen are undefined during a Windows build without X11 support.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29690 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-18 18:46:12 +00:00
reimar
2eab60ecf3
Get rid of several (probably) pointless ifdefs
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29688 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-18 16:51:19 +00:00
reimar
a1f744cb07
Check setGlWindow return value to fail properly instead of crashing if e.g.
...
no OpenGL support is available.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29612 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 15:20:05 +00:00
reimar
6765091bfa
Add infrastructure and test code to enable aspect scaling and panscan in windowed mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29566 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 18:36:51 +00:00
reimar
c3067ee82f
Simplify -vo gl ass border etc. dimension calculation one bit more.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29563 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 14:07:15 +00:00
reimar
082c7b9446
Simplify and fix ass border calculations for -vo gl and -wid -fs mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29561 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 13:54:53 +00:00
reimar
e8429f1f5b
First attempts at supporting -fs with -wid, -vo gl on X11 only so far
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29556 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 12:03:02 +00:00
diego
6e9cbdc104
whitespace cosmetics: Remove all trailing whitespace.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-13 02:58:57 +00:00
reimar
91dd12b122
Check mpi type before returning an DR buffer in get_image, fixes jerkiness
...
with MPEG1/2 and -dr -slices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28974 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-16 14:25:03 +00:00
reimar
05119ecaf6
Make data related to suboption parsing const in libvo
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28863 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-07 08:51:40 +00:00
reimar
b33adcdd02
Refactor smalltex/tinytex EOSD optimization in vo_gl
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28849 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 12:56:13 +00:00
reimar
175cfc985c
Simplify EOSD code by rendering it in VOCTRL_DRAW_EOSD instead of genEOSD,
...
just like vo_vdpau.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28843 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 10:53:30 +00:00
reimar
397c4db88b
Do not rely on draw_osd to render the EOSD, instead draw it already at the
...
end of genOSD.
Fixes that the EOSD was drawn one frame too late.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28838 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 10:33:35 +00:00
reimar
4ed961f7e5
100l, reset ass_border when switching out of fullscreen mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28625 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-17 08:05:14 +00:00
diego
befc528297
Add standard license headers, unify header formatting.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28481 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-08 03:27:30 +00:00
reimar
406a602ecc
Add [gl] in front of vo_gl message
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28459 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-03 11:47:07 +00:00
reimar
9b8170ca54
Latest 9.1 ATI drivers finally fixed PBOs, thus do not need ati-hack and are much
...
faster without it. Change autodetection accordingly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28458 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-03 11:46:31 +00:00
reimar
07fb95d10b
Change vo_draw_text to a vo_draw_text_ext function which draws DVD navigation
...
highlights at the correct position with the high-resolution OSD of -vo gl.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28290 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-10 13:47:41 +00:00
reimar
256c9152fe
Fix ugly borders problem with ati-hack
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28199 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-27 13:00:03 +00:00
reimar
5be3fc9c94
Warn when using features that are broken due to ATI driver bugs.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28188 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-23 20:56:45 +00:00
reimar
8eda502f59
Do not default to rectangle=2, it is at least for ATI HD4850 cards with 8.12 drivers 20% slower at HD resolutions
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28187 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-23 19:31:56 +00:00
reimar
9c0caf340f
Try to auto-detect several vo_gl settings (ati-hack, force-pbo and rectangle).
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28125 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-10 16:39:45 +00:00
reimar
d761fd207a
ati_hack only makes sense when PBOs are used, not with mesa_buffer.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28108 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-06 12:13:14 +00:00
reimar
e70a7dde5e
More possible fixes for mesa-buffer mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28107 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-06 06:44:54 +00:00
reimar
5daa1bf60f
Move one ati_hack check to a better place.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28106 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-06 06:41:36 +00:00
reimar
66fc5a8ffb
Reindent
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28105 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-06 06:40:47 +00:00
reimar
39f24a83c7
100l, forgot setting GL_UNPACK_CLIENT_STORAGE_APPLE for mesa-buffer mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28104 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-06 06:18:57 +00:00
reimar
c6ef662318
10l, add forgotten a #ifndef GL_WIN32, fixes win32 builds.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28103 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-05 23:35:32 +00:00
reimar
a86076ac44
Fix indentation
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28102 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-05 22:35:24 +00:00