aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Make video decoder description structs constGravatar Uoti Urpala2008-04-25
| | | | | | This makes the per-decoder struct vd_functions and its ->info struct constants. Same for the mpcodecs_vd_drivers[] table of pointers to those structs.
* Move vd_use_slices to options structGravatar Uoti Urpala2008-04-25
|
* Remove global vo_flagsGravatar Uoti Urpala2008-04-25
| | | | Move the information to struct sh_video field.
* vd.c: Cosmetic changes + remove malloc.hGravatar Uoti Urpala2008-04-25
| | | | | Adjust formatting slightly and remove some comments. Also remove "#include malloc.h" which seems completely irrelevant.
* Reformat vd.cGravatar Uoti Urpala2008-04-25
| | | | | "indent -kr -l79 -nut dec_video.c --ignore-newlines vd.c", fix two "sh_video_t * sh" to "sh_video_t *sh" by hand.
* Move movie_aspect to options structGravatar Uoti Urpala2008-04-25
|
* Move screen_size_xy to options structGravatar Uoti Urpala2008-04-25
|
* Move opt_screen_size_[x|y] to options structGravatar Uoti Urpala2008-04-25
|
* Move flip and softzoom to options structGravatar Uoti Urpala2008-04-25
|
* Move vidmode to options structGravatar Uoti Urpala2008-04-25
|
* Move fullscreen to options structGravatar Uoti Urpala2008-04-25
|
* Store video decoder functions in struct sh_video fieldGravatar Uoti Urpala2008-04-25
| | | | | | Remove the global variable mpvdec and move the video decoder pointer to struct sh_video field vd_driver. Audio already had a similar ad_driver field from before.
* Remove _s/_st suffix from some struct namesGravatar Uoti Urpala2008-04-25
| | | | | Since the names are always used after the keyword "struct" having a suffix as in "struct demuxer_st" is almost completely pointless.
* dec_video.c: A couple of cosmetic changesGravatar Uoti Urpala2008-04-25
|
* Reformat dec_video.cGravatar Uoti Urpala2008-04-25
| | | | | | "indent -kr -l79 -nut dec_video.c --ignore-newlines dec_video.c", fix some "unknown_typedef * arg" in parameter lists by hand to "unrecognized_typedef *arg".
* Move -lavdopts to options structGravatar Uoti Urpala2008-04-25
|
* vd_ffmpeg.c: Eliminate some compiler warningsGravatar Uoti Urpala2008-04-25
| | | | | Make the functions used in avctx->draw_horiz_band match its type (add a "const"). Add cast to avoid void * arithmetic.
* Modify option helper macrosGravatar Uoti Urpala2008-04-24
| | | | | | | Give them a OPT_ prefix, move them to m_option.h, move the "flags" parameter to third position (so all start with option name, field name, flags) and use "&m_option_type_x" in them instead of the indirect #define "CONF_TYPE_X".
* Merge svn changes up to r26510Gravatar Uoti Urpala2008-04-23
|\ | | | | | | | | r26469 and r26470 (which revert files to inferior versions "because it's policy") are ignored.
* | Remove -Wdeclaration-after-statement from CFLAGSGravatar Uoti Urpala2008-04-23
| | | | | | | | The warnings are pointless and clutter output.
* | Remove some unnecessary recursive includesGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | | | Remove some #include lines from headers, some of those removals made possible by using incomplete struct types instead of typedefs. Include mp_osd.h in mplayer.c and command.c after removing it from mp_core.h. Remove "#ifdef USE_ASS" around some "struct ass_track_s *" fields which will now compile even without ASS support.
* | Move dvdsub_id to options structGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | Name the field "sub_id" as it's not specific to DVD subs. Remove some other unused extern declarations together with dvdsub_id from demux_mkv.c and demux_lavf.c.
* | Move audio_id and video_id to options structGravatar Uoti Urpala2008-04-23
| |
* | Add option pointer to stream struct (at least temporarily)Gravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The stream code does not access many option variables directly, but it does access some such as audio_id and network_bandwidth (and does that without including proper headers for them). Add option pointer to the stream struct to allow access to those variables. Remove the unused (always NULL) and clumsy-looking char** options parameter in the open_stream call and replace it with the option pointer. The parameter is currently only set in the main open_stream() call in MPlayer.c and not in any other locations that can open a stream. In the long term it might be better to pass a more limited set of values somehow, but this should do for now.
* | Mark some functions staticGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | These functions aren't used outside their file and have no prototype in any header. Based on a forgotten patch from 2006 by Stefan Huehner, (stefan huehner org).
* | Move playback_speed to options structGravatar Uoti Urpala2008-04-23
| |
* | Move option helper #defines to cfg-common.h for nowGravatar Uoti Urpala2008-04-23
| |
* | cfg-common-opts.h: Remove multiple inclusion guards and #includeGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | This file cannot be used as a normal header so the multiple inclusion guards are pointless, and the only reason the '#include "config.h"' did not break compilation was that it compiled to whitespace only due to its own multiple inclusion guard.
* | Move global rel_seek_secs and abs_seek_pos to mpctxGravatar Uoti Urpala2008-04-23
| |
* | Remove static mpctx from mplayer.cGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | | | Pass it in function calls instead. There's no reasonable way to pass it to exit_player() when used outside mplayer.c. However most of those uses seem to be wrong (the code should not make the program exit) and should be removed. For now just make exit_player() uses outside mplayer.c simply call exit() without any shutdown code.
* | Move loop_times to option structGravatar Uoti Urpala2008-04-23
| |
* | Remove pointless #ifdefsGravatar Uoti Urpala2008-04-23
| | | | | | | | | | These #ifdefs only made MPContext 2 variables smaller when dvbin support was disabled.
* | Move mRootWin,mScreen,mLocalDisplay to x11 structGravatar Uoti Urpala2008-04-23
| |
* | Move vo_mouse_autohide,vo_wm_type,vo_fs_type,vo_fs_flip to x11 structGravatar Uoti Urpala2008-04-23
| |
* | x11_common: Move vo_old_[x|y|width|height| to x11 structGravatar Uoti Urpala2008-04-23
| |
* | x11_common.c: Move orig_layer and old_gravity to x11 structGravatar Uoti Urpala2008-04-23
| |
* | Move static mouse hide timers to x11 structGravatar Uoti Urpala2008-04-23
| |
* | Move vo_gc,f_gc,vo_hints to x11 structGravatar Uoti Urpala2008-04-23
| |
* | x11_common.c: Move function-static variables to structGravatar Uoti Urpala2008-04-23
| |
* | Mark a table constGravatar Uoti Urpala2008-04-23
| |
* | Move xv_port,xv_colorkey,xv_ck_info to x11 structGravatar Uoti Urpala2008-04-23
| |
* | Move vo_window to x11 structGravatar Uoti Urpala2008-04-23
| |
* | Move static X11 atoms to structGravatar Uoti Urpala2008-04-23
| |
* | Move vo_screenwidth,vo_screenheight to options structGravatar Uoti Urpala2008-04-23
| |
* | Move vo_depthonscreen to x11 structGravatar Uoti Urpala2008-04-23
| |
* | Remove vo_depthonscreen references from non-X VOsGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | 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 structGravatar Uoti Urpala2008-04-23
| |
* | Move vo_dx,vo_dy,vo_dwidth,vo_dheight to vo structGravatar Uoti Urpala2008-04-23
| |
* | Move global vo_config_count to vo structGravatar Uoti Urpala2008-04-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 structGravatar Uoti Urpala2008-04-23
| |