summaryrefslogtreecommitdiff
path: root/src/xine-engine/osd.c
AgeCommit message (Collapse)Author
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2007-07-12Remove realloc from osd.c to prevent memory leak due to fragmentationSimon Farnsworth
show() in osd.c uses realloc in an effort to minimise the amount of memory actually used for rle objects. In practice, this caused xine to fragment memory, and gradually use more and more RAM (measured over a period of 24 to 72 hours). Change osd.c to allocate the maximum amount of memory it could need; because it touches this memory in a linear fashion, lazy page allocation will ensure that most of the memory used is needed. Further, because this makes the per-drawing allocations the same size, it avoids virtual address space fragmentation.
2007-06-13Fix parameter type.Albert Lee
2007-04-04Reorder and pack the structures that are defined inside compilation units ↵nopadding_no_abi_changeDiego 'Flameeyes' Pettenò
instead of headers (and thus are not part of public ABI).
2007-03-03Fix a build error, introduced in the previous commit, which bites when buildingDarren Salt
without Freetype support. CVS patchset: 8642 CVS date: 2007/03/03 22:59:37
2007-03-03Free the FreeType object when freeing the OSD object, should solve a ↵Diego 'Flameeyes' Pettenò
possible memory leak. CVS patchset: 8641 CVS date: 2007/03/03 14:12:50
2007-02-20Fix a lot of format warnings in lprintf calls (mostly %ldd -> %"PRId64").Diego 'Flameeyes' Pettenò
CVS patchset: 8608 CVS date: 2007/02/20 00:34:55
2006-12-14Added configure option --enable-antialing (disabled by default becauseClaudio Ciccani
RLE encoded antialiased fonts don't look good). CVS patchset: 8415 CVS date: 2006/12/14 10:14:48
2006-09-29Improve FreeType2 rendering: do not disable hinting.Diego 'Flameeyes' Pettenò
CVS patchset: 8323 CVS date: 2006/09/29 20:16:44
2006-09-29Add an optional dependency over fontconfig, so that if present it is used to ↵Diego 'Flameeyes' Pettenò
identify which font to load for OSD and subtitles. This allows to use truetype fonts by specifying their friendly name and just that. Also prefer FreeType2 loaded fonts to bitmap fonts. CVS patchset: 8321 CVS date: 2006/09/29 18:36:52
2006-09-12Fixed iconv warnings on FreeBSD, fixed build w/o iconv but require it as ↵František Dvořák
default. CVS patchset: 8223 CVS date: 2006/09/12 21:24:18
2006-04-10Fixed incorrect rectangle clipping.Claudio Ciccani
CVS patchset: 7967 CVS date: 2006/04/10 17:42:14
2006-04-05Fixed primitive clipping.Claudio Ciccani
Also negative coordinates are legal now. CVS patchset: 7958 CVS date: 2006/04/05 12:44:32
2006-03-27osd_line() and osd_filled_rect() should clip the coordinates to prevent ↵Claudio Ciccani
buffer overflows. CVS patchset: 7954 CVS date: 2006/03/27 10:43:11
2005-11-28*BUGFIX*František Dvořák
Improved cross-compiling: detect and precedence of the host-specific libs W32dll: enabled by platforms as originaly, user can override it Fixed shell errors in the Makefile of the hackersguide Detect the place of SDL header independently on platform Fixed spelling in CDDA, include the header sys/param.h if available Fixed format strings (fix warnings (or even bugs) on Gentoo/FreeBSD) CVS patchset: 7815 CVS date: 2005/11/28 12:24:56
2005-09-25move alphablend to coreMiguel Freitas
CVS patchset: 7745 CVS date: 2005/09/25 00:44:04
2005-09-24- rename all clip_top, clip_left, clip_color... to hili_xxxx. thatMiguel Freitas
"clip" thing has caused too much confusion already since these variables define a highlight area. - add overlay offset support to video_out.c/alphablend/vo drivers - use overlay offset to implement proper croping of frames when vo driver doesn't support it - add clipping checks to alphablend to avoid buffer overflow, buffer "underflow" and wrapping. - increase vo api number - note: dxr3 support is incomplete about overlay offset CVS patchset: 7739 CVS date: 2005/09/24 19:08:26
2005-08-25*BUGFIX*František Dvořák
Windows ports fixes and improvements due to my current work on toxine: - first experiments with external win32 pthreads, more portable code (pthread_t may be a struct) - headers refactored - moved dirent win32 replacement to lib/, hide it for frontends, used system version, if found, not used non-POSIX dirent->d_reclen (this item doesn't work in MinGW), fix memleak in dvb - separated settings for postproc and avcodec when using external ffmpeg - check for malloc.h in public xine.m4, used it conditionally in xine headers - replaced random() by POSIX more common rand() - prevent one segfault in directx vo plugin, if fails - M$VC port update CVS patchset: 7709 CVS date: 2005/08/25 15:36:29
2005-07-27ft2 patch by Andrei Lahun: fix spacing and hintingStefan Holst
CVS patchset: 7691 CVS date: 2005/07/27 23:46:34
2005-04-18try to be friendly to older ft2 releasesMiguel Freitas
CVS patchset: 7461 CVS date: 2005/04/18 14:06:29
2005-02-05legacy compiler patch (keep those variable decls at the front of aMike Melanson
function), courtesy of Diego Biurrun CVS patchset: 7383 CVS date: 2005/02/05 20:31:04
2005-01-27fixed and faster clipping for texts, correct height for ft2 fonts. thanks to ↵Stefan Holst
Andreas Roever CVS patchset: 7369 CVS date: 2005/01/27 22:32:24
2005-01-22various fixes and improvements of freetype2 support by Andreas Roever. ↵Stefan Holst
xine_osd_draw_text now has the same semantics for xine- and freetype-fonts regarding the coordinates. xine_osd_get_text_size now returns the font height for freetype fonts. CVS patchset: 7366 CVS date: 2005/01/22 23:29:06
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-27minor osd fix: hide empty (cleared) osd. thanks Stefan for noticing it.Miguel Freitas
CVS patchset: 7083 CVS date: 2004/10/27 23:03:22
2004-09-02Warnings on WIN32.František Dvořák
Compilation fix for CygWin. CVS patchset: 6932 CVS date: 2004/09/02 19:56:40
2004-08-06Improved quality of overlays.James Courtier-Dutton
by Reinhard Nissl. CVS patchset: 6875 CVS date: 2004/08/06 21:35:54
2004-07-22protect from overly long filenamesMichael Roitzsch
CVS patchset: 6839 CVS date: 2004/07/22 14:29:28
2004-04-26help strings added for all remaining config entries (so I hope)Michael Roitzsch
please everybody watch out for spelling (and other) errors CVS patchset: 6442 CVS date: 2004/04/26 17:50:06
2004-03-28this needs to be an irrevocable ticketMichael Roitzsch
CVS patchset: 6313 CVS date: 2004/03/28 19:56:08
2004-03-27"+y"+p code from xine-ui for guessing locale codeset (default encoding for OSD).František Dvořák
CVS patchset: 6309 CVS date: 2004/03/27 12:59:45
2004-03-21revert and really fix the leak, at last...Daniel Caujolle-Bert
CVS patchset: 6297 CVS date: 2004/03/21 23:45:10
2004-03-21memleak (real fix)Daniel Caujolle-Bert
CVS patchset: 6294 CVS date: 2004/03/21 23:13:36
2004-03-21memleakDaniel Caujolle-Bert
CVS patchset: 6293 CVS date: 2004/03/21 23:04:13
2004-02-29Disable back debug output.František Dvořák
CVS patchset: 6193 CVS date: 2004/02/29 17:33:04
2004-02-29Various compilation fixes and updates:František Dvořák
- xine compilable without iconv (scream if I something broke) - update MSVC port, fixes in avi demux - add iff.h into makefiles - ffmpeg depends on zlib (build was OK only when freetype was installed) - commit a patch for goom CVS patchset: 6192 CVS date: 2004/02/29 17:26:45
2004-02-12big commit of the new ticket system to protect the rewiring and moreMichael Roitzsch
(as discussed on xine-devel, slightly improved to block acquires from different threads between atomic revoke and issue) * xine_ticket_t is declared in xine_internal.h and implemented in xine.c * the ticket is acquired for (hopefully) all port operations (no modifications to decoders needed, decoder loop does this) * the ticket is revoked on pausing and on rewiring * OSD does not store the port pointer any more (which was very dangerous, since the pointer can change on rewire) CVS patchset: 6137 CVS date: 2004/02/12 18:19:00
2004-01-26It seems some older systems haven't UCS-2 encoding in the machine encoding. ↵František Dvořák
Force using UCS-2LE or UCS-2BE according to endianness. CVS patchset: 6065 CVS date: 2004/01/26 09:49:33
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-12-05cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's ↵Daniel Caujolle-Bert
relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued... CVS patchset: 5844 CVS date: 2003/12/05 15:54:56
2003-12-03Christian's suggested fix for using full iso-8859-1 when OSD encoding isn't ↵František Dvořák
specified or is NULL. I tested it helped. CVS patchset: 5831 CVS date: 2003/12/03 18:37:17
2003-11-26lprintf cleanup, pass I.Daniel Caujolle-Bert
CVS patchset: 5796 CVS date: 2003/11/26 19:43:26
2003-11-26public api for unscaled osdMiguel Freitas
CVS patchset: 5786 CVS date: 2003/11/26 13:33:54
2003-11-26* new unscaled overlay feature (using XShape extension)Miguel Freitas
text subtitles may now be rendered at full screen resolution * load xine fonts on demand - faster startup note: support added to xv, xshm and vidix CVS patchset: 5780 CVS date: 2003/11/26 01:03:31
2003-11-11rename internal API function (_x_<function>).Daniel Caujolle-Bert
CVS patchset: 5721 CVS date: 2003/11/11 18:44:50
2003-09-18Generating codepages with more than 256 characters (max. 16-bit).František Dvořák
Right computing text size of multibyte texts in OSD. Different alias character for missing character in the conversion and in the font: #, _ CVS patchset: 5402 CVS date: 2003/09/18 18:14:50
2003-08-16fix by Reinhard Nissl <rnissl@gmx.de>Miguel Freitas
CVS patchset: 5294 CVS date: 2003/08/16 16:37:33
2003-08-15I am using the latest internal API increase to rename video_overlay_instace toMichael Roitzsch
video_overlay_manager, because a) this thing is called "overlay manager" by everyone b) the term "instance" is misleading, since it suggests that you would not share the outcome of a get_instance() with others CVS patchset: 5288 CVS date: 2003/08/15 14:35:09
2003-08-12small code beautificationMichael Roitzsch
CVS patchset: 5278 CVS date: 2003/08/12 13:56:51