summaryrefslogtreecommitdiffstats
path: root/libvo/aspect.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove dead codewm42012-08-011-5/+0
| | | | | | | | | | | | | This was done with the help of callcatcher [1]. Only functions which are statically known to be unused are removed. Some unused functions are not removed yet, because they might be needed in the near future (such as open_output_stream for the encode branch). There is one user visible change: the --subcc option did nothing, and is removed with this commit. [1] http://www.skynet.ie/~caolan/Packages/callcatcher.html
* VO: silence "[ASPECT] Warning: No suitable new res found!"Uoti Urpala2011-07-051-1/+1
| | | | | | | | | | The warning "[ASPECT] Warning: No suitable new res found!" was printed from aspect() if the video ended up being downscaled from the original size AND the horizontal direction was the more limiting one for aspect-aware scaling. Also, because aspect() can run multiple times when starting playback this warning could be output multiple times. Change the code so that downscaling alone no longer triggers this message.
* VO: clean up aspect.c, remove aspecttest toolUoti Urpala2011-07-051-68/+43
| | | | | | | | | | Clean up aspect.c code and simplify it somewhat (without changing the overall logic). Replace debug output printf calls under #ifdef with mp_msg() debug output (somewhat modified). Remove the file aspecttest.c which created a binary to test aspect.c functionality. It did not compile and would not be particularly useful anyway. Remove some support lines from aspect.c and Makefile.
* aspect.c: use fallback if screen dimensions are not knownreimar2010-11-021-0/+6
| | | | | | | | | | | | 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
* Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* Merge svn changes up to r29644Uoti Urpala2009-09-041-11/+41
|\
| * Remove unused movie_aspect extern declaration.reimar2009-08-271-1/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29571 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add infrastructure and test code to enable aspect scaling and panscan in ↵reimar2009-08-271-4/+17
| | | | | | | | | | | | windowed mode. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29566 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Make panscan cover the same range in -wid -fs mode as in normal mode.reimar2009-08-271-8/+17
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29560 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix aspect_fit to work correctly when borders need to be added on top andreimar2009-08-271-2/+2
| | | | | | | | | | | | | | | | 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
| * Forgotten changes to aspect code to handle -wid with -fs.reimar2009-08-271-0/+5
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29557 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-1/+0
| |
* | Translation system changes part 2: replace macros by stringsAmar Takhar2009-07-071-2/+2
| | | | | | | | | | Replace all MSGTR_ macros in the source by the corresponding English string.
* | Translation system changes part 1: wrap translated stringsAmar Takhar2009-07-071-2/+2
| | | | | | | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
* | Merge svn changes up to r28537Uoti Urpala2009-02-121-0/+18
|\|
| * Add standard license headers, unify header formatting.diego2009-02-081-0/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28481 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Move aspect.c options to option structUoti Urpala2008-05-011-12/+10
| |
* | libvo: Move aspect.c static variables to vo structUoti Urpala2008-05-011-55/+47
| | | | | | | | This moves non-option variables. aspect.c still defines option globals.
* | Move movie_aspect to options structUoti Urpala2008-04-251-1/+0
|/
* Make aspect adjustment calculation simpler and more flexible.reimar2008-02-021-24/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25949 b3059339-0415-0410-9bf9-f77b7e298cf2
* -panscan should also work for right and left bordersreimar2008-01-191-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25810 b3059339-0415-0410-9bf9-f77b7e298cf2
* Some reindentationreimar2008-01-191-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25809 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a new variable for user-supplied monitor-aspect so we can overwritereimar2007-07-281-1/+4
| | | | | | | a value generated from pixel-aspect if resolution changes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23896 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make -monitorpixelaspect 1 the default.cehoyos2007-04-271-3/+3
| | | | | | | Patch by Onur Küçük <onur.--.-.delipenguen.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23154 b3059339-0415-0410-9bf9-f77b7e298cf2
* MSGTRs for libvo/aspect.c and libvo/vo_xv.ckraymer2006-11-081-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20781 b3059339-0415-0410-9bf9-f77b7e298cf2
* Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with ↵reynaldo2006-04-241-3/+3
| | | | | | lots of corrections git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18235 b3059339-0415-0410-9bf9-f77b7e298cf2
* new monitorpixelaspect option, esp. useful for xinerama setups with upcoming ↵reimar2006-04-151-0/+3
| | | | | | patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18106 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add -panscanrange optionreimar2005-09-271-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16608 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.diego2004-10-281-1/+1
| | | | | | | 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
* fix aspect hackattila2003-10-151-1/+3
| | | | | | | | 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
* many small typo and grammar fixesgabucino2003-10-041-1/+1
| | | | | | | 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
* temporary fix for attilas 10l, until better solution is foundatmos42003-09-211-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10919 b3059339-0415-0410-9bf9-f77b7e298cf2
* make aspect recognize -noaspectattila2003-09-211-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10908 b3059339-0415-0410-9bf9-f77b7e298cf2
* debug++atmos42003-01-131-1/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8937 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix panscan support and add Jesper Svennevid's <mplayer@svennevid.net> patchpontscho2002-06-101-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6383 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning & newline fixes by Dominik Mierzejewski <dominik@rangers.eu.org>arpi2002-06-071-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6336 b3059339-0415-0410-9bf9-f77b7e298cf2
* added panscan support for xmga/xvidixpontscho2002-06-051-0/+23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6308 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a bug in the aspect coden (roudning at wrong point) and allow ↵atmos42002-05-141-3/+12
| | | | | | | | | 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
* Eeeh :) time to sleep!atmos42001-10-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2251 b3059339-0415-0410-9bf9-f77b7e298cf2
* Update to new (cleaner, more bugfree, better) aspect api. vo_gl vo_gl2 and ↵atmos42001-10-181-23/+55
| | | | | | vo_xmga are untested! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2250 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add downscaling as a last resort.atmos42001-10-151-6/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2214 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add debug printfs to aspect(), add aspect() usage to vo_sdl.atmos42001-10-041-4/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2072 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix case where srch, srcw and fitinw and fitinh are really the same variables.atmos42001-10-031-9/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2059 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplified aspect() for the loss of some functionality to get ansi ↵atmos42001-10-031-19/+12
| | | | | | compatibility. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2056 b3059339-0415-0410-9bf9-f77b7e298cf2
* Monitor aspect stuff.atmos42001-10-031-0/+32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2054 b3059339-0415-0410-9bf9-f77b7e298cf2