summaryrefslogtreecommitdiff
path: root/src/video_out/alphablend.c
AgeCommit message (Collapse)Author
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
2003-01-19trying to fix color errors and endianness problems in yuy2Miguel Freitas
CVS patchset: 3968 CVS date: 2003/01/19 17:19:36
2002-12-22Make xine-lib compile with the SunPro compilerRobin KAY
CVS patchset: 3623 CVS date: 2002/12/22 00:35:04
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-11-20Add debug info. remove un-used variable.James Courtier-Dutton
CVS patchset: 3318 CVS date: 2002/11/20 14:20:39
2002-10-29Updated pgx64 to newest API. Changed alphablend code to handle pitches.Robin KAY
CVS patchset: 3078 CVS date: 2002/10/29 00:36:21
2002-10-03DTS debug messages.James Courtier-Dutton
blend_rgb16 changes. <- Need testing further. CVS patchset: 2773 CVS date: 2002/10/03 06:04:54
2002-09-30Fixes and performance improvements to the alphablend.c code.James Courtier-Dutton
The fixes involved getting blend_rgb16 to correctly handle different colours in the highlight area and general overlay area. Another fix involved fixing the overlay scaling function so that it scales in the same proportion as the yuv2rgb code. Currently, blend_yuv has not been updated. blend_rgb16 has been improved. blend_rgb24 and blend_rgb32 have not been changed and will probably not work now. The performance improvements are due to two things: - 1) Special detection of overlays without any buttons/clip areas. This is detected by ensuring overl->clip_top = -1 when no button is present. 2) Reorganise the blending code so that for each time round the loop, the fewest possible IF statements are executed. So, for overlays without any buttons, not checks for the clip area is done. For overlay with buttons, state is kept as to whether we are above, to the left, inside or to the right or below the clip area, thus saving having to do IF statements each time round the loop to find out where we are. CVS patchset: 2762 CVS date: 2002/09/30 05:16:45
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-05-23some boundaries checks to alphablend functions. will avoid overlay wrapingMiguel Freitas
and buffer overflows (might fix some recently reported segfaults) CVS patchset: 1932 CVS date: 2002/05/23 23:35:53
2002-02-09the long-awaited video_out changes, not completely debuged (races)Guenter Bartsch
- pts are 64 bit now - scr and video_out-loop run all the time - video_out cleanups - metronom cleanups - buffer type BUF_CONTROL_DISCONTINUITY is used internally now, input plugins should no longer send this one - support for individual frame durations - using nano-/usleep instead of itimer (simpler code, maybe this will help freebsd) CVS patchset: 1487 CVS date: 2002/02/09 07:13:22
2002-01-22cr and cb swappedMiguel Freitas
CVS patchset: 1438 CVS date: 2002/01/22 02:13:55
2002-01-22- small w32codec bugfixesMiguel Freitas
- remove (hopefully) unneeded memcpy - fix SDL capabilities - add fb and SDL warnings CVS patchset: 1436 CVS date: 2002/01/22 01:43:13
2002-01-18small fix to alphablendMiguel Freitas
CVS patchset: 1423 CVS date: 2002/01/18 13:50:35
2002-01-18Try to fix some bleeding in the menus.James Courtier-Dutton
CVS patchset: 1422 CVS date: 2002/01/18 02:32:31
2002-01-16New blend_yuv routine.James Courtier-Dutton
This should fix menus on DVDs like Stargate, latest edition, R2 Big trouble in little China (bonus disk) Still need to modify blend_yuy2, and all rgb blends. CVS patchset: 1415 CVS date: 2002/01/16 00:54:34
2002-01-15Beginning of overlay highlights correction work.James Courtier-Dutton
XV colours look good, XShm colours do not. CVS patchset: 1411 CVS date: 2002/01/15 20:22:43
2001-12-16- fix clipping box inside rle linesMiguel Freitas
- removed blend_yuv_vo_frame CVS patchset: 1254 CVS date: 2001/12/16 17:01:12
2001-11-30blend_yuy2 now availableMiguel Freitas
CVS patchset: 1141 CVS date: 2001/11/30 12:31:58
2001-11-05Fixing cr<->cb swap error in alphablending code; fixed some confusions inMatthias Dahl
the naming conventions within the plugin. CVS patchset: 962 CVS date: 2001/11/05 23:15:13
2001-11-03Fixed a bad bug in the new SyncFB plugin that caused it to crash easily. AndMatthias Dahl
finally added overlay blending support. Also cleaned up the alphablend header file and added new blend_yuv function that uses the vo_frame_t struct for its blending. CVS patchset: 934 CVS date: 2001/11/03 13:57:34
2001-10-09overlay clut colorspace conversionMiguel Freitas
CVS patchset: 783 CVS date: 2001/10/09 22:20:11
2001-10-09Implement rle-image shrinking for blend_rgb*()Juergen Keil
CVS patchset: 780 CVS date: 2001/10/09 18:47:57
2001-10-09blend_rgb* with rle-image scaling. Used by the XShm video_out driver.Juergen Keil
This fixes the position and size for button hilights using the dvdnav plugin and position and size of subtitles. CVS patchset: 773 CVS date: 2001/10/09 09:50:22
2001-08-17Overlays are now passed in rle format. Causes a speed improvementEduard Hasenleithner
for subpicture overlays. CVS patchset: 444 CVS date: 2001/08/17 15:54:31
2001-08-16clut_t is now stored in machine endianess. Simplifies the transferEduard Hasenleithner
of the clut from the input plugin. CVS patchset: 434 CVS date: 2001/08/16 12:33:00
2001-08-14Fixed a bug resulting from the misassumption that the pixelsEduard Hasenleithner
are counted without the right and bottom border. CVS patchset: 429 CVS date: 2001/08/14 17:13:33
2001-08-13major rewrite of the subpicture mechanism in order to support menus.Eduard Hasenleithner
CVS patchset: 416 CVS date: 2001/08/13 12:52:33
2001-07-26Reverted a small error introduced into alphablend.cRich J Wareham
CVS patchset: 349 CVS date: 2001/07/26 00:18:45
2001-07-25A few small changes to help in some specific cases. Also a nasty hack added ↵Rich J Wareham
temporarily CVS patchset: 348 CVS date: 2001/07/25 23:26:14
2001-07-10subtitle patches (esp. for XShm) from JamesGuenter Bartsch
CVS patchset: 263 CVS date: 2001/07/10 19:33:05
2001-07-09latest subtitle patches (cleanups) from jamesGuenter Bartsch
CVS patchset: 261 CVS date: 2001/07/09 16:13:11
2001-07-08subtitle patches from jamesGuenter Bartsch
CVS patchset: 259 CVS date: 2001/07/08 18:15:54
2001-07-04latest overlay patches from James, simple overlays should workuid32519
CVS patchset: 254 CVS date: 2001/07/04 20:32:29
2001-07-04spu support updated (unfinished) from Jamesuid32519
CVS patchset: 250 CVS date: 2001/07/04 17:10:24