1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 18:42:09 +00:00
Commit Graph

42 Commits

Author SHA1 Message Date
reimar
deba9f3d2b aspect.c: use fallback if screen dimensions are not known
Add fallback values to aspect_save_screenres to avoid division by 0
if screen dimensions are not known.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32452 b3059339-0415-0410-9bf9-f77b7e298cf2

Fix handling of invalid values in aspect_save_screenres to not overwrite
valid values.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32481 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:18:09 +02:00
Uoti Urpala
00323c06e2 Delete things related to old translation system
Remove the help/ subdirectory, configure code to create toplevel
help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
2010-03-10 03:47:14 +02:00
Uoti Urpala
0e1b7765be Merge svn changes up to r29644 2009-09-04 19:49:35 +03:00
reimar
6901602578 Remove unused movie_aspect extern declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29571 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 23:40:36 +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
6ec672e3cc Make panscan cover the same range in -wid -fs mode as in normal mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29560 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 13:31:12 +00:00
reimar
e18b64611c Fix aspect_fit to work correctly when borders need to be added on top and
bottom, previous code accidentally compared against screen dimensions,
resulting in cropping instead of added borders.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29558 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 12:38:22 +00:00
reimar
4cbff98bad Forgotten changes to aspect code to handle -wid with -fs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29557 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 12:35:23 +00:00
Uoti Urpala
0eb321bf2c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
Amar Takhar
e306174952 Translation system changes part 2: replace macros by strings
Replace all MSGTR_ macros in the source by the corresponding English
string.
2009-07-07 01:38:20 +03:00
Amar Takhar
b5972d6f14 Translation system changes part 1: wrap translated strings
Replace mp_msg() calls which have a translated string as the format
argument with mp_tmsg and add _() around all other translated strings.
2009-07-07 01:28:07 +03:00
Uoti Urpala
1e86963828 Merge svn changes up to r28537 2009-02-12 04:17:55 +02: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
Uoti Urpala
1d1ddcb593 Move aspect.c options to option struct 2008-05-01 11:14:29 +03:00
Uoti Urpala
c172b5355f libvo: Move aspect.c static variables to vo struct
This moves non-option variables. aspect.c still defines option globals.
2008-05-01 11:02:26 +03:00
Uoti Urpala
60e2c8604d Move movie_aspect to options struct 2008-04-25 03:34:28 +03:00
reimar
949787e410 Make aspect adjustment calculation simpler and more flexible.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25949 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-02 17:21:19 +00:00
reimar
5558291ae3 -panscan should also work for right and left borders
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25810 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-19 18:12:10 +00:00
reimar
51d433ec9b Some reindentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25809 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-19 18:10:06 +00:00
reimar
e94b93b2c4 Use a new variable for user-supplied monitor-aspect so we can overwrite
a value generated from pixel-aspect if resolution changes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23896 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-28 22:42:20 +00:00
cehoyos
a2dda036d8 Make -monitorpixelaspect 1 the default.
Patch by Onur Küçük <onur.--.-.delipenguen.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23154 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-27 23:16:45 +00:00
kraymer
7ae43d3309 MSGTRs for libvo/aspect.c and libvo/vo_xv.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20781 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-08 14:55:37 +00:00
reynaldo
78417bf0dd Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with lots of corrections
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18235 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 04:23:53 +00:00
reimar
02c0f0258f new monitorpixelaspect option, esp. useful for xinerama setups with upcoming patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18106 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-15 20:50:33 +00:00
reimar
4c90ccf9de Add -panscanrange option
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16608 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-09-27 08:32:37 +00:00
diego
5b0d96c6b4 Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-28 01:15:53 +00:00
attila
092de8005d fix aspect hack
now geometry sets geometry_wh_changed when either width or height is changed.
aspect is still preserved in fullscreen


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11126 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-15 15:17:09 +00:00
gabucino
fadce2d781 many small typo and grammar fixes
Based on Bernard Leak's mail <bernard 4t brenda-arkle.demon.co.uk>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11001 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-04 17:29:08 +00:00
atmos4
2a0ebb47ce temporary fix for attilas 10l, until better solution is found
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10919 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-21 15:34:51 +00:00
attila
386e88d918 make aspect recognize -noaspect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10908 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-21 11:56:09 +00:00
atmos4
57b2503b00 debug++
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8937 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-13 01:50:20 +00:00
pontscho
a3ef885bed fix panscan support and add Jesper Svennevid's <mplayer@svennevid.net> patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6383 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-10 18:40:19 +00:00
arpi
89e9c29aff warning & newline fixes by Dominik Mierzejewski <dominik@rangers.eu.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6336 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-07 22:43:29 +00:00
pontscho
ae8906e42c added panscan support for xmga/xvidix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6308 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-05 19:35:54 +00:00
atmos4
3e85b7e4fb Fix a bug in the aspect coden (roudning at wrong point) and allow donwscaling in second pass.
Also add a testapp for the aspect code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6088 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-14 00:22:03 +00:00
atmos4
cd401555fa Eeeh :) time to sleep!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2251 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-18 02:43:33 +00:00
atmos4
14fe0175c0 Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and vo_xmga are untested!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2250 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-18 02:42:20 +00:00
atmos4
357c10b0a7 Add downscaling as a last resort.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2214 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-15 17:22:41 +00:00
atmos4
31af6ae1cd Add debug printfs to aspect(), add aspect() usage to vo_sdl.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2072 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-04 11:42:21 +00:00
atmos4
dfc9e5e7d3 Fix case where srch, srcw and fitinw and fitinh are really the same variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2059 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-03 17:40:56 +00:00
atmos4
4d053a65c0 Simplified aspect() for the loss of some functionality to get ansi compatibility.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2056 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-03 15:31:51 +00:00
atmos4
abb7153e94 Monitor aspect stuff.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2054 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-03 14:41:53 +00:00