summaryrefslogtreecommitdiff
path: root/src/xine-engine/vo_scale.c
AgeCommit message (Collapse)Author
2006-09-26Use _x_assert.Diego 'Flameeyes' Pettenò
CVS patchset: 8292 CVS date: 2006/09/26 08:00:02
2006-09-25The frame_output_cb function for the scaler is mandatory, assert it so that ↵Diego 'Flameeyes' Pettenò
debug builds will show the error. When the build is non-debug, simply fallback to a certain, although not exactly desiderable, behaviour. Identified by Coverity. CVS patchset: 8276 CVS date: 2006/09/25 22:27:48
2005-07-18Aspect ratio applies to image after croppingJames Stembridge
CVS patchset: 7665 CVS date: 2005/07/18 17:59:37
2004-12-12huge patch ahead: reorganizing config entries with automatic conversionMichael Roitzsch
and backwards compatible translation Sorry, I got a litte tired proof-reading the patch, so their might be bugs lurking around. I will give it some further examination and (as necessary) fixing tomorrow. CVS patchset: 7233 CVS date: 2004/12/12 22:00:47
2004-10-26add frontend cropping supportMiguel Freitas
CVS patchset: 7076 CVS date: 2004/10/26 20:10:20
2004-10-09prevent the user from enabling scaling on video outs not supporting itMichael Roitzsch
CVS patchset: 7027 CVS date: 2004/10/09 06:44:52
2004-10-08* moved image scaling config entry from XShm to vo_scale helperMichael Roitzsch
(closes feature request #987635) * added help texts for horizontal and vertical position config entries CVS patchset: 7023 CVS date: 2004/10/08 20:54:36
2004-09-22- added cropping capability (thanks James Stembridge)Miguel Freitas
- some vo drivers support cropping natively. (only xv and xvmc have been tested) - add software crop fallback to video_out.c - skip yuv2rgb processing at xshm for not yet cropped frames (these frames are never shown) - libmpeg2 and ffmpeg now may use crop support - bump vo api. (changes to xvmc/xxmc will follow) CVS patchset: 6991 CVS date: 2004/09/22 20:29:13
2004-05-11make sure displayed values are sane, that is, we are not trying to displayMiguel Freitas
something outside the delivered image. fixes border calculation for zoom < 100%. CVS patchset: 6517 CVS date: 2004/05/11 02:21:16
2004-01-18this header is not neededMichael Roitzsch
CVS patchset: 6054 CVS date: 2004/01/18 18:17:55
2003-12-09update copyright year (and we have to do it again in 3 weeks... ;-) )Daniel Caujolle-Bert
CVS patchset: 5879 CVS date: 2003/12/09 00:02:28
2003-12-07get rid of XINE_{ASSERT,ABORT} and useless xine_print_trace (useless). ↵Daniel Caujolle-Bert
Replace XINE_ASSERT by _x_assert, which works exaclty as assert, except that it still warns with NDEBUG defined (but don't abort). Fix missuning of assert(0), which isn't safe, abort is abort, assert is for debugging purpose only, so all assert(0) has been converted to abort() alls. In osd_preload_fonts(): alloc needed memory chunk. Define NDEBUG in CFLAGS, for non DEBUG build only. CVS patchset: 5860 CVS date: 2003/12/07 15:34:29
2003-11-26lprintf cleanup, pass I.Daniel Caujolle-Bert
CVS patchset: 5796 CVS date: 2003/11/26 19:43:26
2003-11-11rename internal API function (_x_<function>).Daniel Caujolle-Bert
CVS patchset: 5721 CVS date: 2003/11/11 18:44:50
2003-10-07fix some compiler warningsMichael Roitzsch
CVS patchset: 5461 CVS date: 2003/10/07 14:56:51
2003-10-04Fix scaling by the wrong factor.Robin KAY
CVS patchset: 5433 CVS date: 2003/10/04 11:46:01
2003-08-12these tests are done more cenralized in video out nowMichael Roitzsch
CVS patchset: 5276 CVS date: 2003/08/12 13:54:21
2003-08-04support for arbitrary aspect ratiosMiguel Freitas
patch by Philip Jgenstedt CVS patchset: 5243 CVS date: 2003/08/04 03:47:09
2003-04-24make it more obvious that we are doing floating point subtractionJames Stembridge
CVS patchset: 4671 CVS date: 2003/04/24 11:03:50
2003-04-24fix scaling of video with aspect ratio != 1James Stembridge
CVS patchset: 4668 CVS date: 2003/04/24 00:21:01
2003-02-28Xine assert() replacement:Stephen Torri
All assert() function calls, with exceptions of libdvdread and libdvdnav, have been replaced with XINE_ASSERT. Functionally XINE_ASSERT behaves just likes its predecesor but its adding the ability to print out a stack trace at the point where the assertion fails. So here are a few examples. assert (0); This use of assert was found in a couple locations most favorably being the default case of a switch statement. This was the only thing there. So if the switch statement was unable to find a match it would have defaulted to this and the user and the developers would be stuck wonder who died and where. So it has been replaced with XINE_ASSERT(0, "We have reach this point and don't have a default case"); It may seem a bit none descriptive but there is more going on behind the scene. In addition to checking a condition is true/false, in this case '0', the XINE_ASSERT prints out: <filename>:<function name>:<line number> - assertion '<assertion expression>' failed. <description> An example of this might be: input_dvd.c:open_plugin:1178 - assertion '0' failed. xine_malloc failed!!! You have run out of memory XINE_ASSERT and its helper function, print_trace, are found in src/xine-utils/xineutils.h CVS patchset: 4301 CVS date: 2003/02/28 02:51:47
2002-11-25make guenter happy: raise the expertise level of the position entriesMichael Roitzsch
CVS patchset: 3366 CVS date: 2002/11/25 16:56:06
2002-11-24wtf happened to those black bars ?\!? :>Guenter Bartsch
CVS patchset: 3355 CVS date: 2002/11/24 16:18:34
2002-11-22when the image does not fit the viewport and black bars need to be added, theirMichael Roitzsch
size ratio and therefore the position of the image is now configurable (I remembered my arts lessons at school where the teacher told us that images look more pleasing when the lower border is twice the size of the upper and set the default accordingly. ;) CVS patchset: 3337 CVS date: 2002/11/22 18:06:09
2002-10-24proper rounding for video scalingMichael Roitzsch
CVS patchset: 2989 CVS date: 2002/10/24 16:43:07
2002-09-29make xine less hysterical when it encounters this corner caseMike Melanson
CVS patchset: 2759 CVS date: 2002/09/29 01:01:58
2002-09-17be a bit more tolerantMichael Roitzsch
CVS patchset: 2678 CVS date: 2002/09/17 10:32:45
2002-09-16don't distortMichael Roitzsch
CVS patchset: 2672 CVS date: 2002/09/16 13:17:49
2002-09-15Memory leak fixes, using a slightly modified version of the patch fromJames Courtier-Dutton
ewald@rambo.its.tudelft.nl CVS patchset: 2666 CVS date: 2002/09/15 11:35:08
2002-09-13duplicating behaviour of XShm fixes the bug James discoveredMichael Roitzsch
(some values in vo_scale being 0) CVS patchset: 2661 CVS date: 2002/09/13 19:57:13
2002-09-10Fix a segfault in XV output.James Courtier-Dutton
redraw is being called too early. CVS patchset: 2645 CVS date: 2002/09/10 14:06:33
2002-09-08copy & paste at the wrong placeMichael Roitzsch
CVS patchset: 2628 CVS date: 2002/09/08 16:52:57
2002-09-08- reorder XINE_VO_ASPECT_* constants so they match the order in the oldMichael Roitzsch
api (benefit: no remapping is required between dvd's and xine's aspect codes) - implement new scaling semantics as intended by Matthias Hopf CVS patchset: 2627 CVS date: 2002/09/08 16:20:09
2002-09-05XV Video out at least loads now and we see the xine logo again.James Courtier-Dutton
The DVD plugin now loads, but audio and spu info is lost. What happened to xine_get_spu_channel and xine_get_audio_channel? CVS patchset: 2607 CVS date: 2002/09/05 05:51:14
2002-09-04merging in the new_api branch ... unfortunately video_out / vo_scale is ↵Guenter Bartsch
broken now ... matthias/miguel: please fix it :-) CVS patchset: 2606 CVS date: 2002/09/04 23:31:05
2002-08-28enforce scaling_disabledMiguel Freitas
CVS patchset: 2541 CVS date: 2002/08/28 14:20:09
2002-08-16- syncfb simplified with helper functions (obs: i enabled zoom since it ↵Miguel Freitas
seemed to work in my computer. to disable it again just change vo_scale_init parameter) - some vidix files missing from my last update - vo_scale must set displayed_xxx even without zoom support CVS patchset: 2467 CVS date: 2002/08/16 22:51:39
2002-08-16- simplify sdl video driver with scaling helperMiguel Freitas
- bugfixes CVS patchset: 2464 CVS date: 2002/08/16 21:10:02
2002-08-15- reimplement independent x/y zooming.Miguel Freitas
- new helper module (vo_scale.c) with all common scaling code of video out drivers. it should greatly simplify drivers development by removing the boring frame/window calculation, aspect ratio, zooming etc. obs: not completely tested, may contain bugs and break things. also only xshm and xv have being simplified so far, others will follow shortly. CVS patchset: 2455 CVS date: 2002/08/15 03:12:24