summaryrefslogtreecommitdiffstats
path: root/libvo
Commit message (Collapse)AuthorAgeFilesLines
* font_load_ft.c: Make tables constUoti Urpala2008-04-281-2/+2
|
* Move vo_gamma_* to options structUoti Urpala2008-04-261-9/+0
|
* Remove global vo_flagsUoti Urpala2008-04-252-4/+0
| | | | Move the information to struct sh_video field.
* Move movie_aspect to options structUoti Urpala2008-04-254-3/+1
|
* Move vidmode to options structUoti Urpala2008-04-252-2/+1
|
* Merge svn changes up to r26510Uoti Urpala2008-04-231-28/+0
|\ | | | | | | | | r26469 and r26470 (which revert files to inferior versions "because it's policy") are ignored.
| * Merge libvo/Makefile into top-level Makefile.diego2008-04-231-27/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26509 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Move mRootWin,mScreen,mLocalDisplay to x11 structUoti Urpala2008-04-233-33/+37
| |
* | Move vo_mouse_autohide,vo_wm_type,vo_fs_type,vo_fs_flip to x11 structUoti Urpala2008-04-233-30/+29
| |
* | x11_common: Move vo_old_[x|y|width|height| to x11 structUoti Urpala2008-04-232-18/+19
| |
* | x11_common.c: Move orig_layer and old_gravity to x11 structUoti Urpala2008-04-232-8/+9
| |
* | Move static mouse hide timers to x11 structUoti Urpala2008-04-232-12/+11
| |
* | Move vo_gc,f_gc,vo_hints to x11 structUoti Urpala2008-04-233-63/+64
| |
* | x11_common.c: Move function-static variables to structUoti Urpala2008-04-232-25/+30
| |
* | Mark a table constUoti Urpala2008-04-231-1/+1
| |
* | Move xv_port,xv_colorkey,xv_ck_info to x11 structUoti Urpala2008-04-233-73/+71
| |
* | Move vo_window to x11 structUoti Urpala2008-04-233-86/+80
| |
* | Move static X11 atoms to structUoti Urpala2008-04-233-59/+65
| |
* | Move vo_screenwidth,vo_screenheight to options structUoti Urpala2008-04-236-54/+61
| |
* | Move vo_depthonscreen to x11 structUoti Urpala2008-04-234-13/+13
| |
* | Remove vo_depthonscreen references from non-X VOsUoti Urpala2008-04-233-11/+15
| | | | | | | | | | | | | | X-specific code uses this global as its internal variable (assuming that X is initialized if it is set). While using non-X VOs the variable is not accessed outside the VO. So make those VOs use their own variables instead of the global vo_depthonscreen.
* | Move vo_dbpp to options structUoti Urpala2008-04-233-7/+3
| |
* | Move vo_dx,vo_dy,vo_dwidth,vo_dheight to vo structUoti Urpala2008-04-237-74/+77
| |
* | Move global vo_config_count to vo structUoti Urpala2008-04-234-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the global and Add a corresponding field to the vo struct, plus another which tells whether the LAST config call was successful.The latter value which tells whether the VO should be properly configured at the moment seems a better match for the semantics actually needed in most places where the old value was used. The 'count' field with the old semantics is not currently used by anything, but I'm leaving it there for vo drivers which would need those semantics if converted to use the struct. Existing uses of the global outside old vo drivers are either converted to use the struct field or moved inside the vo_xyz() calls (instead of "if (vo_config_count) vo_flip_page(..." just call vo_flip_page which will now do nothing if not configured). The removal of the check in mpcommon.c/update_subtitles() is less trivial than the others, but I think it shouldn't cause problems.
* | Move global mDisplay to x11 state structUoti Urpala2008-04-234-194/+225
| |
* | Create a struct for X11 stateUoti Urpala2008-04-234-4/+17
| | | | | | | | | | | | | | | | Will be used for common data between X11 VOs. The main reasons for making it a separate struct rather than extra fields in the main VO struct are that some field definitions need X headers and that the code keeps basic X state such as the display connection over opening and closing of individual VOs.
* | x11_common.c: Make some functions staticUoti Urpala2008-04-232-15/+8
| |
* | Allocate vo struct with tallocUoti Urpala2008-04-232-5/+5
| | | | | | | | | | Also allocate the private vo_xv struct as a child and remove explicit free() for it.
* | Move vo_ontop to options structUoti Urpala2008-04-2310-20/+55
| | | | | | | | | | | | | | | | | | | | | | Add a 'struct vo *vo' argument to the x11_common.c functions that access the variable so it's available as vo->opts->vo_ontop. To keep VOs using the old API working create a global vo variable that is set to the currently used old vo. "vo_ontop" will be #defined to "global_vo->opts->vo_ontop", and x11_common.h will add defines like the following when it is included by old VOs: #define vo_x11_ontop() vo_x11_ontop(global_vo) so that they will call the function according to the new declaration.
* | vo_gl[2]: Rename conflicting vo_ontop macroUoti Urpala2008-04-233-4/+4
| | | | | | | | | | | | | | | | Rename the vo_ontop() macro to vo_gl_ontop(). It caused problems with other changes because it conflicts with a global variable name (gl2 actually called vo_ontop() as a function and used vo_ontop as an int - this only worked because vo_ontop was defined as a function-like macro and use without parentheses didn't trigger replacement).
* | Add option pointer to vo structUoti Urpala2008-04-232-4/+7
| |
* | vo_xv: Free resources in error casesUoti Urpala2008-04-231-9/+19
| | | | | | | | | | | | | | | | | | If preinit() failed after allocating some resources it didn't free them. Also if preinit() completed but all (if any) calls to config() failed then uninit() it not free resources. Add checks to uninit() to make it safe with only a subset of resources allocated, then make it execute independently of vo_config_count and also make preinit() call it in error cases.
* | vo_xv.c: Make reconfig logic more robustUoti Urpala2008-04-231-7/+6
| | | | | | | | | | | | The previous version was not buggy, but this is easier to see correct. Now it doesn't depend on options determining num_buffers staying constant and on vo_config_count.
* | vo_xv.c: remove unnecessary #ifdefs and static varsUoti Urpala2008-04-231-11/+4
| | | | | | | | | | | | | | | | Combine code unnecessarily split in 3 #ifdef blocks into one block and change local variables there were pointlessly declared static to normal ones. After this vo_xv.c no longer defines any global or static variables.
* | vo_xv.c: Cosmetic changesUoti Urpala2008-04-231-15/+10
| | | | | | | | | | Remove an unnecessary inner scope in a function and separate 'i' loop counter variable declared in it, reindent.
* | Change vo_xv to use new VO APIUoti Urpala2008-04-231-238/+283
| |
* | Add a context argument to mp_input_add_event_fd callbackUoti Urpala2008-04-231-2/+4
| |
* | vo_xv.c: Remove #if 0 codeUoti Urpala2008-04-231-25/+1
| |
* | Add context variable to vo_draw_text callbackUoti Urpala2008-04-237-12/+29
| | | | | | | | | | Add a context variable and rename the function to osd_draw_text. Create a new vo_draw_text that is a wrapper for VOs using old API.
* | Add new video driver APIUoti Urpala2008-04-2318-126/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | Create new video driver API that has a per-instance context structure and does not rely on keeping status in global or static variables. Existing drivers are not yet converted to this API; instead there is a wrapper which translates calls to them. In the new API, an old API call vo_functions->xyz(args) is generally replaced by vo_xyz(vo_instance, args). The changes to keep the vesa, dxr2 and xover drivers compiling have not been tested.
* | video_out.c: Cosmetic changesUoti Urpala2008-04-231-62/+65
| | | | | | | | Reformat some code, rename local variable, remove trailing whitespace.
* | Remove variable arguments from vo control() functionsUoti Urpala2008-04-2349-51/+50
| | | | | | | | | | No voctrl uses them any more, and using them would not be a good idea because it makes forwarding arguments to other functions harder.
* | Change VOCTRL_[GET|SET]_EQUALIZER argument passingUoti Urpala2008-04-2319-376/+126
|/ | | | | | | | These were the only voctrl types with more than one argument. The second argument was passed using variable arguments. Change them to use a single argument (address of a struct containing both old arguments). This makes forwarding the arguments to other functions easier and allows simplifying code.
* revert commits 26437-26439attila2008-04-191-11/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26468 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: fix indentationattila2008-04-131-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26439 b3059339-0415-0410-9bf9-f77b7e298cf2
* move the #ifdef HAVE_XINERAMA to enclose the whole functionattila2008-04-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26438 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always calculate the xinerama screen mplayer is on.attila2008-04-131-6/+3
| | | | | | | | Bug reported by thomas.lindroth(<at>)gmail.com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26437 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace "all rights reserved" statement with standard GPL license header.diego2008-04-131-5/+16
| | | | | | | Done with the permission of Andreas Ackermann, the author of the file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26432 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove -I CFLAGS hack, -I../libavcodec is no longer in CFLAGS.diego2008-04-091-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26372 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix nonsensical license header, mpeg2dec is not GNU Make.diego2008-04-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26361 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change I_TYPE -> FF_I_TYPE to fix compilation.reimar2008-04-031-1/+1
| | | | | | | The whole functionality should probably be used to libavcodec though. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26322 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use __AMIGAOS4__ instead of AMIGA, like everywhere else.diego2008-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26246 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a separate definition for quartz.diego2008-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26245 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently use __APPLE__ instead of MACOSX as preprocessor condition.diego2008-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26243 b3059339-0415-0410-9bf9-f77b7e298cf2
* MACOSX_COREVIDEO --> corevideodiego2008-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26241 b3059339-0415-0410-9bf9-f77b7e298cf2
* #include config.h before all other headers.diego2008-03-145-9/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26235 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix and simplify lscale=2 (bicub_x) scaler, produced funnyreimar2008-03-121-7/+7
| | | | | | | noise on ATI cards due to cdelta.y never being set. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26227 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix wrong check for vidix usage.iive2008-03-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26206 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't use void * arithmetic.iive2008-03-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26205 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle vga_init() error and output error message.iive2008-03-091-3/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26204 b3059339-0415-0410-9bf9-f77b7e298cf2
* This header uses parts of stdint.h, so #include it.diego2008-03-071-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26195 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing header #includes to fix 'make checkheaders'.diego2008-03-076-0/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26194 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary #ifdef nesting.diego2008-03-071-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26192 b3059339-0415-0410-9bf9-f77b7e298cf2
* Wrap '#include <sys/mman.h>' in HAVE_SYS_MMAN_H.diego2008-03-011-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26137 b3059339-0415-0410-9bf9-f77b7e298cf2
* FFmpeg now uses different (unified) #include paths.diego2008-02-251-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add MPLAYER_ prefix to multiple inclusion guards.diego2008-02-2218-55/+54
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26061 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing multiple inclusion guards.diego2008-02-211-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26044 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently use filename as multiple inclusion guard.diego2008-02-211-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26043 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless #ifdefs around extern declarations.diego2008-02-203-40/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26039 b3059339-0415-0410-9bf9-f77b7e298cf2
* libvo: change asm syntax to use ASMALIGN and " # nop"uau2008-02-152-5/+5
| | | | | | | | | Change ".balign 16\n\t" to ASMALIGN(4) and "/nop" to " # nop". The new version is what other code in MPlayer uses, and works with old assembler versions like that used on OS X. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26005 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert accidentially committed line of r25994.cehoyos2008-02-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25995 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fix: inited --> initializeddiego2008-02-149-16/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
* Try harder to find OpenGL functions on Windows.reimar2008-02-111-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25985 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
* Remove an extern for a variable that no longer existsreimar2008-02-111-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25982 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove left-over extern definitions that should not be therereimar2008-02-111-2/+0
| | | |