summaryrefslogtreecommitdiffstats
path: root/libvo
Commit message (Collapse)AuthorAgeFilesLines
* Lock/unlock surface only once even when drawing many slices.reimar2008-11-231-7/+14
| | | | | | | Patch originally by Jim Hauxwell [james dattrax co.uk] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28003 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move locked_rect from stack to priv struct in preparation for following patch.reimar2008-11-231-17/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28002 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move the StretchRect call from draw_slices to render_d3d_frame.reimar2008-11-231-28/+8
| | | | | | | | This avoids calling it (and BeginScene/EndScene) many times with slices and also avoids code duplication. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28001 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless is_cfG_finished variable.reimar2008-11-231-17/+3
| | | | | | | Patch by Georgi Petrov [gogothebee gmail com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28000 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle fb_dev_name similar to vo_fbdev in vo_wii.diego2008-11-232-6/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27999 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge another if condition check to lessen differences to vo_fbdev.c.diego2008-11-231-4/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27998 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use static variable instead of #define to lessen differences to vo_fbdev.c.diego2008-11-231-6/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27997 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of TTY_DEV_NAME #define to lessen differences to vo_fbdev.c.diego2008-11-231-6/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27996 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge another if condition check to lessen differences to vo_fbdev.c.diego2008-11-231-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27995 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge if condition check to lessen differences to vo_fbdev.c.diego2008-11-231-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27994 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove debug function.diego2008-11-231-70/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27993 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: one more round of whitespace changesdiego2008-11-231-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27992 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: further reformatting to lessen differences to vo_fbdev.cdiego2008-11-231-56/+53
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27991 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: complete reformatting, tabs to spaces, etc.diego2008-11-231-956/+952
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27990 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Lessen differences to vo_wii.c.diego2008-11-231-3/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27989 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: consistent formatting for if/else/casediego2008-11-231-36/+46
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27988 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify handling of VOFLAG_MODESWITCHNG, merge assignment and declarationreimar2008-11-232-10/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27986 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused flip_flag variablereimar2008-11-231-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27985 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Reformat some lines to lessen differences to vo_fbdev.c.diego2008-11-231-118/+62
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27984 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables and the related warnings along with them.diego2008-11-231-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27980 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove a aspect calculation line.reimar2008-11-212-2/+0
| | | | | | | | | | It is useless because with the new API enabled by VOCTRL_UPDATE_SCREENINFO it is not necessary because it is already done in video_out.c:config_video_out. Secondly, the removal of the aspect_save_prescale triggered a regression because of it, with -wid the window would not be filled completely initially. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27978 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify handling of "flags" parameterreimar2008-11-211-13/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27977 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add forgotten initialization if Flip_Flag to 0.reimar2008-11-211-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27976 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: typo fixesdiego2008-11-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27975 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix and enable panscan handling for vo_direct3dreimar2008-11-211-77/+43
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27971 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: rename variables etc. in vo_direct3d.creimar2008-11-201-253/+225
| | | | | | | Patch by Georgi Petrov (gogothebee gmail com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27962 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factor common code like -wid handling, vo_gc creation etc. out intoreimar2008-11-199-191/+30
| | | | | | | x11_common.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27961 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify conditions in direct3d vo: remove == 1, change == 0 to ! etc.reimar2008-11-191-12/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27959 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing "static" qualifiers to vo_direct3dreimar2008-11-181-18/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27957 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, the video_out_drivers list must be sorted by priority, notreimar2008-11-181-3/+3
| | | | | | | alphabetically. For now, vo_directx should be preferred over vo_direct3d. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27956 b3059339-0415-0410-9bf9-f77b7e298cf2
* Direct3D based video_out module.reimar2008-11-182-0/+755
| | | | | | | | Patch by Georgi Petrov (gogothebee gmail com) Panscan handling is still disabled and needs to be fixed for negative -panscan. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27955 b3059339-0415-0410-9bf9-f77b7e298cf2
* Doxygen documentation for w32_common.creimar2008-11-181-0/+98
| | | | | | Patch by Georgi Petrov (gogothebee gmail com) with several modifications by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27954 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove a useless XGetGeometry call, the X11 event handling alreadyreimar2008-11-171-5/+0
| | | | | | | updates vo_dwidth/vo_dheight. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27946 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of (besides useless assignments) unused XSizeHints variablereimar2008-11-161-7/+0
| | | | | | in vo_xvmc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27942 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove explicit setting of vo_ontop since that is already done by ↵reimar2008-11-158-22/+0
| | | | | | vo_x11_create_vo_window git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27937 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove a duplicated vo_x11_selectinput_witherrreimar2008-11-151-8/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27936 b3059339-0415-0410-9bf9-f77b7e298cf2
* respect -vf dsize etc. also for -rootwin, just like vo_xv does.reimar2008-11-151-10/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27935 b3059339-0415-0410-9bf9-f77b7e298cf2
* Sync with vo_x11: make sure we get expose events even when drawing to the ↵reimar2008-11-151-1/+2
| | | | | | root window. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove a nonsensical "else" for the video mode switching case.reimar2008-11-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27929 b3059339-0415-0410-9bf9-f77b7e298cf2
* include limits.h for INT_MAX.reimar2008-11-151-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27927 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove now unused variables.reimar2008-11-153-12/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27926 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use vo_dwidth/vo_dheight for creating the windows instead of d_width/d_height.reimar2008-11-152-2/+2
| | | | | | | This fixes the -vm bug that the created window is too small. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27925 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify vo_vm_switch and vo_vm_close, everyone was using the (almost) samereimar2008-11-155-59/+26
| | | | | | | boiler-plate code with them, just with different bugs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27924 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set modified window position and monitor aspect in vo_vm_switch instead of inreimar2008-11-153-5/+7
| | | | | | | individual vo drivers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27923 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of (besides useless assignments) unused XSizeHints variablereimar2008-11-151-12/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27922 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set modeline_width/height to sane values in vo_vm_switch even whenreimar2008-11-151-1/+4
| | | | | | | the XF86VidMode extension is not available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27921 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: remove useless "extern"reimar2008-11-151-33/+33
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27920 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace some of the different inconsistent XGetGeometry uses by areimar2008-11-155-34/+21
| | | | | | | vo_x11_update_geometry function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27919 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove a useless XGetGeometry call, the X11 event handling already takes ↵reimar2008-11-151-5/+0
| | | | | | care of this. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27918 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove code from unused and since ages deprecated draw_frame function.reimar2008-11-152-23/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27917 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove vo_xv code that has been under #if 0 since ages.reimar2008-11-151-29/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27916 b3059339-0415-0410-9bf9-f77b7e298cf2
* vo_x11: do not replace the vo_gc created by the Gui.reimar2008-11-151-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27915 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetic changes to vo_x11 to reduce diff to vo_xv for future refactoring.reimar2008-11-151-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27914 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics for vo_x11 control() to make it more similar to vo_xv.creimar2008-11-151-8/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27913 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix grammar of comment and sync it with vo_x11.creimar2008-11-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27912 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix ati-hack to work again with ATI 8.9 and later drivers.reimar2008-11-141-9/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27908 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the proper IMGFMT_RGB24 and IMGFMT_BGR24 defines instead ofreimar2008-11-131-2/+2
| | | | | | | IMGFMT_RGB|24 and IMGFMT_BGR|24. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27907 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix Windows OpenGL -wid:reimar2008-11-111-15/+1
| | | | | | | Disable the Window instead of explicitly passing on click events. This also makes Drag-and-Drop work if the -wid window supports it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27904 b3059339-0415-0410-9bf9-f77b7e298cf2
* For fragment programs, check GL_MAX_TEXTURE_IMAGE_UNITS instead of ↵reimar2008-11-062-1/+4
| | | | | | GL_MAX_TEXTURE_UNITS. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27899 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add #include <string.h> for memset.diego2008-11-041-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27896 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change OpenGL support to work on unmodified MinGW64reimar2008-11-021-2/+29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27879 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove X11 backing store: this is now a useless flag.ben2008-10-291-2/+2
| | | | | | | | | | | | | | | Also, it is mandatory for Xserver 1.5.x (part of Xorg 7.4, shipped on all Linux distributions starting from Oct. 08) and will be removed from Xserver 1.6 anyhow ... Patch by Stephane Marchesin (marchesin at icps dot u dash strasbg dot fr). For more info, see long flame thread at: http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2008-August/058323.html git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27849 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improve error message when screen width and height are not set.diego2008-10-191-3/+8
| | | | | | | patch by Christian Ohm, chr.ohm gmx net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27802 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed image format detection for 15 bit color depthsfaust32008-10-171-1/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27796 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'.diego2008-10-161-11/+11
| | | | | | | | We were using an inconsistent mix of the three variants and 'volatile' should be the most correct and portable variant. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27791 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg.diego2008-10-162-22/+22
| | | | | | | Neither variant is valid C99 syntax, but __asm__ is the most portable variant. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27788 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move X11_FULLSCREEN definition to x11_common.h where it belongs.diego2008-10-162-3/+6
| | | | | | | config.h should only contain option definitions, no logic. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27784 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed overlay x and y calculationfaust32008-10-161-38/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27782 b3059339-0415-0410-9bf9-f77b7e298cf2
* Honour differences between src and dst stride for packed yuvfaust32008-10-141-1/+1
| | | | | | | | patch by Laurent <laurent.aml at gmail.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27772 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace preprocessor check for WIN32 with checks for __MINGW32__ and __CYGWIN__.diego2008-10-131-1/+1
| | | | | | | This avoids a pointless indirection that only obscures what is really done. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27761 b3059339-0415-0410-9bf9-f77b7e298cf2
* Surround conditionally used function with corresponding #ifdef, fixes:diego2008-10-131-0/+2
| | | | | | | libvo/vo_gl2.c:681: warning: 'gl_handlekey' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27754 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant variable declaration, fixes the warning:diego2008-10-131-1/+0
| | | | | | | | libvo/vo_winvidix.c:52: warning: redundant redeclaration of 'hWnd' libvo/vo_winvidix.c:50: warning: previous declaration of 'hWnd' was here git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27753 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing support for some multimedia keys to X11 backend code.diego2008-10-121-0/+9
| | | | | | | patch by Jorge Lopez, jorgelt gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27747 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace numeric constants by their defines.cehoyos2008-10-091-1/+1
| | | | | | | Fixes icc warning #188: enumerated type mixed with another type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27738 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing #include for mplayer.h, fixes the warning:diego2008-10-031-0/+1
| | | | | | | libvo/vo_png.c:67: warning: implicit declaration of function 'exit_player' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27687 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix glAdjustAlignment parameter in glCreateClearTexreimar2008-09-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27654 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change glCreateClearTex to use the same host data format as later uploads.reimar