Commit Graph

1879 Commits

Author SHA1 Message Date
reimar f68be97419 Fix texture format variable types. Internal format is GLint, others are GLenum
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16304 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-25 12:45:57 +00:00
diego d34494074c Slightly reduce unnecessary verbosity.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16302 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-24 00:46:04 +00:00
reimar 999c4374c6 DestroyWindow must be used when -wid was not given, so for WinID < 0, not >=0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16289 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-22 09:05:18 +00:00
reimar 6f4bba6b61 -wid support for windows. Not well tested, might still behave a bit weird.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16283 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-21 09:59:45 +00:00
reimar cbf7b3b291 remove extern for variables that are already in headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16281 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-21 01:20:31 +00:00
reimar 77ec0f850d less weird OSD alpha transformation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16273 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-19 12:23:34 +00:00
reimar f37f504f2a Do not set SwapInterval for values < 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16272 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-19 12:16:52 +00:00
reimar 5da34263f6 Fix crash in windows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16271 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-19 12:09:44 +00:00
reimar 0a19444796 automatic vsync enabling for vo_gl.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16269 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-19 09:31:02 +00:00
alex d4d939b57e gtf.{c,h} is used by vesa only
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16265 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-18 12:59:19 +00:00
alex 6c5df75cce use libvbe from vesautils
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16257 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-18 11:26:04 +00:00
reimar cbd8483a32 Get events from -wid window.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16240 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-16 23:24:52 +00:00
reimar c157ebb6c9 Our buffer usage actually fits better to GL_DYNAMIC_DRAW than GL_STREAM_DRAW.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16238 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-16 19:07:07 +00:00
reimar dfa61db50a OSD textures can be deleted with one function call...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16237 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-16 18:52:38 +00:00
reimar 7e6c29c530 Make glFinish optional
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16236 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-16 18:27:12 +00:00
reimar 44ec3f7566 use GenBuffers to get a buffer number instead of hardcoding 1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16234 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-16 17:57:53 +00:00
reimar a96150da85 10l, initializers don't work without a declaration :-(
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16227 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 23:16:17 +00:00
reimar 0f10868e3d use glUploadTex helper function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16225 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 19:40:33 +00:00
reimar 0ddf170917 extra check for glUploadTex to avoid a possible hang.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16224 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 19:38:16 +00:00
reimar 5543cc2bf5 textures smaller 64x64 might not be supported
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16223 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 19:36:34 +00:00
reimar c7888c0a7f remove/move some unused headers/variables/code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16222 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 19:24:49 +00:00
reimar f1fcbe1d11 10l, texture_width/height initialization was removed, so use
image_width/height here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16221 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 18:36:01 +00:00
reimar 698494f779 Helper function for drawing texture and general cleanup of vo_gl2.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16215 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 13:44:14 +00:00
reimar 3cf870e26b Cleanup, move declarations to beginning of block.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16214 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-14 10:30:18 +00:00
alex 76f0fb31b6 10l, patch found in geexbox
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16197 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-11 11:02:30 +00:00
reimar 9b53e64cc5 Forgot to actually enable vo_gl on Windows...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16182 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-06 13:38:00 +00:00
ivo 4bf7522a2e Missed one uint32_t declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16173 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-05 12:46:42 +00:00
ivo cd55954e4e Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
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
2005-08-05 01:24:37 +00:00
nplourde 56d37f9817 exit kiosk mode and show mouse cursor in uninit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16146 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-28 23:18:39 +00:00
nplourde 0712baca3d properly release window
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16145 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-28 22:19:34 +00:00
reimar f467c97576 More helper functions/defines and bugfixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16118 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-27 17:22:24 +00:00
reimar 775c4db7f4 catch failed buffer allocation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16114 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-26 20:36:34 +00:00
reimar 58eab3c054 Use dlsym to get glXGetProcAddress, only way to (hopefully) make it
compile everywhere since the gl/glx headers are such a mess...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16112 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-26 18:28:51 +00:00
reimar 1feebc74c7 OpenGL fixes for windows and vo_gl.c ported to windows.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16110 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-26 13:47:18 +00:00
reimar c30b5e70b7 support for rectangular and streaming textures.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16100 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-26 10:16:18 +00:00
reimar 6acf6c886e Use DRAW_IMAGE instead of draw_frame
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16093 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-25 19:11:14 +00:00
nplourde e14d9ede2e restore window shadow when quitting fullscreen mode
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16082 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-24 15:16:27 +00:00
reimar de6925b979 Enable manyfmts by default for vo_gl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16013 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-19 08:42:55 +00:00
rik 2d730f1fcc --Patch by Stefan '1stein' Schuermans <1stein@schuermans.info>:
the bugfix of the "grayscale" output scheme introduced a bug in the header
writer for the stream output, this patch corrects that


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15953 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-10 12:35:43 +00:00
nplourde 96a22de4e6 resize video after keep aspect menu item toggle
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15910 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-03 14:28:51 +00:00
nplourde 706952e30d fix various window resizing bug with menu option
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15903 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-03 12:24:48 +00:00
nplourde c8dc1edbdf more fullscreen behaviour fix for mouse cursor
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15893 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-02 19:44:48 +00:00
nplourde 7707fc682f properly redraw fullscreen window with -fs and zoom
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15886 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-02 13:28:25 +00:00
nplourde 762820ba8f fix fullscreen menubar item behaviour
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15883 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-01 17:24:31 +00:00
nplourde 2814dd6533 auto hide menubar and cursor in fullscreen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15882 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-01 17:21:13 +00:00
iive b509629603 add vo_xv_enable_vsync() to xvmc
it may not be needed but at least it shouldn't hurt to have it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15867 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-30 10:57:56 +00:00
reimar 7bbc8d045a added forgotten xv_enable_vsync
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15865 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-30 10:16:35 +00:00
nplourde c60e560af2 keep window size when changing aspect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15856 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-29 21:54:48 +00:00
nplourde 7d73ce2371 crash on autorelease, do not add to pool
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15855 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-29 21:49:58 +00:00
reimar 85626ef1aa Try to set XV_SYNC_TO_VBLANK to enable vsync on non-overlay xv adapters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15827 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-27 10:05:39 +00:00