summaryrefslogtreecommitdiff
path: root/src/xine-engine/osd.c
AgeCommit message (Collapse)Author
2011-12-16Fixed osd_hide() return valuePetri Hintukainen
--HG-- branch : point-release
2011-10-10Fixed asprintf usagePetri Hintukainen
2009-11-30Trim trailing space & reduce space+tab.Darren Salt
2008-11-03Free up resources when we finish with a Freetype font.Maximilian Schwerin
2008-05-21Free up resources when we finish with Freetype.Darren Salt
2008-07-04Use calloc to allocate the area for the OSD.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %99%9B%D5%B3Ro%87%BFV%E9%2BY%AA%83QE/%CD%5D%ED
2008-05-23Remove MIN/MAX macro definitions on unit.Diego 'Flameeyes' Pettenò
Now that the macro are either imported from the system or defined by configure. don't define them in every source file.
2008-05-23Mark initialisation functions with malloc attribute.Diego 'Flameeyes' Pettenò
All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call.
2008-05-07Use asprintf() rather than malloc() + sprintf().Diego 'Flameeyes' Pettenò
Using asprintf() instead of malloc() + sprintf() reduces the lines of code in xine-lib (moving the allocation to the C library or asprintf replacement), makes it safer to access the string and can also improve performance whenever the value returned by a function was used as parameter, as before it had to run the function twice in almost every case (once for strlen(), once for sprintf()).
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
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