Sam Hocevar
1022d97496
dither: fix integer multiplication overflow that caused crashes.
Fixes : #38 (CVE-2018-20546)
Fixes : #39 (CVE-2018-20547)
6 年前
Sam Hocevar
84bd155087
dither: fix integer overflows that were causing a division by zero.
Fixes : #36 (CVE-2018-20544)
6 年前
Sam Hocevar
f1267fbd3c
Fix copyright headers so that the testsuite passes again.
6 年前
Sam Hocevar
5f0ec215f8
Remove legacy code from 10 years ago.
6 年前
Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
12 年前
Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
15 年前
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
15 年前
Sam Hocevar
1362d8e24f
Update my e-mail address everywhere.
15 年前
Sam Hocevar
bef81f8ea7
Mark dithered bitmap array as const.
15 年前
Sam Hocevar
d1e6e5f559
Make "fullgray" dithering work properly, to force greyscale rendering. To use
it, just call caca_set_dither_color(d, "fullgray") on the dither object.
15 年前
Sam Hocevar
319cc69db3
Continue the libcaca/libcucul merge. Source and binary compatibility
are almost there.
16 年前
Sam Hocevar
f61816ceb7
Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.
16 年前
Sam Hocevar
4ea785f818
* Remove all unsigned ints from exported functions. Signed arithmetic is
far better for error checking.
16 年前
Sam Hocevar
6a3f5c21f0
* Changed most of the long ints in the API into C99 types. WARNING: this
completely breaks compatibility with previous versions of libcaca on
64-bit systems.
16 年前
Sam Hocevar
f44b5e11fa
* Changed most "unsigned char" variables into "uint8_t", including in
prototypes. As they are equivalent, this does not break the ABI.
16 年前
Sam Hocevar
99b5396e8e
* Remove #include <stdint.h> etc. from "common.h". Instead, make sure that
<cucul.h> will provide the C99 types, even if libcaca has been installed.
* Rename what's left of "common.h" to "stubs.h".
* Remove all references to erroneous <inttypes.h> from source files.
16 年前
Sam Hocevar
2149829bdf
* Added as many "const" qualifiers as possible to the public API.
17 年前
Sam Hocevar
dd463f6e7d
* Renamed cucul_set_dither_mode() into cucul_set_dither_algorithm(). It’s
a longer name but "mode" really wasn’t appropriate here.
17 年前
Sam Hocevar
a0ea39643e
* Implemented cucul_get_dither_charset() and cucul_get_dither_mode().
17 年前
Sam Hocevar
7c5430e84c
* Implemented cucul_get_dither_antialias() and cucul_get_dither_color().
17 年前
Sam Hocevar
49f230f863
* cucul_get_dither_brightness() is no longer a stub.
* Implemented missing cucul_get_dither_contrast().
17 年前
Sam Hocevar
e28b8cca4d
* Add cucul_get_dither_brightness(), _gamma() and _contrast(). There is no
reason to keep a copy of them in the calling program.
* Deprecate cucul_set_dither_invert(). Inverting a dither's colours is now
done by setting a negative gamma value.
17 年前
Sam Hocevar
05ae318af0
* Save user attributes when calling cucul_dither_bitmap().
17 年前
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
18 年前
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
18 年前
Sam Hocevar
51936f585c
* Got rid of HAVE_ERRNO_H ifdefs by defining seterrno()/geterrno() functions.
* More debugging information in the import/export and font functions.
18 年前
Sam Hocevar
3243101ff0
* Rename cucul_put*() into cucul_put_*(). Updated all code to reflect that.
18 年前
Sam Hocevar
d549d07c0a
* Got rid of very old _cucul_init_dither() function call.
18 年前
Sam Hocevar
42c9518d2a
* Got rid of cucul_ansi_to_attr() and cucul_argb_to_attr() and restored
cucul_set_color() and cucul_set_truecolor() under the new names
cucul_set_color_ansi() and cucul_set_color_argb().
* Renamed cucul_get_color_name() into cucul_ansi_to_str().
18 年前
Sam Hocevar
0b37a307dd
* Get rid of cucul_set_attr_ansi() and cucul_set_attr_argb and merge the
functionality into cucul_set_attr().
* Add cucul_ansi_to_attr() and cucul_argb_to_attr().
* Rename CUCUL_COLOR_* to CUCUL_*.
18 年前
Sam Hocevar
aa93ad25f6
* Remove cucul_set_color() from the exported API and replaced all calls
with cucul_set_attr_ansi(). Old application will still compile (but issue
a warning) and run, though.
18 年前
Sam Hocevar
23afd54c7c
* Fix enumeration layout in the manpage documentation.
18 年前
Sam Hocevar
1f8549fc6a
* Fixed typos in cucul/dither.c that prevented using ordered dither modes,
thanks to Sean D'Epagnier.
18 年前
Sam Hocevar
7754db5ccf
* Changed cucul_putchar's prototype so that it accepts a 32-bit unsigned
int which shall be used as an UTF-32 character. We do not have any casting
problems due to the signedness of chars because all characters were
ASCII (ie. <= 0x7f) beforehands.
18 年前
Sam Hocevar
aa6cb520ab
* Use UTF-32 instead of UTF-8 in the dithering glyph block list for slightly
better performances.
18 年前
Sam Hocevar
d6e4744861
* Changed the cucul_create_dither() prototype to make sure the mask
arguments are at least 32 bits.
18 年前
Sam Hocevar
0a53a92195
* Completed return value and errno handling in libcucul API.
18 年前
Sam Hocevar
5cb4d4dedf
* Removed duplicate uint*_t defines from *_internal.h and included common.h
in all .c files that needed it.
18 年前
Sam Hocevar
2353ad9215
* Minor documentation improvements.
18 年前
Sam Hocevar
0deb4abc25
* Changed the cucul_dither_bitmap behaviour so that the 4 coordinates are
now x/y/width/height instead of x1/y1/x2/y2. Avoids unnecessary +1/-1
computations.
18 年前
Sam Hocevar
e3f0d6c57d
* Changed the cucul_rand() behaviour. Now cucul_rand(0, 10) returns random
values between 0 and 9 (used to be 0 and 10). Updated documentation
accordingly.
18 年前
Sam Hocevar
687a2c43f6
* Renamed caca_t into caca_display_t.
* Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
18 年前
Sam Hocevar
246c5b4d67
* Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
18 年前
Sam Hocevar
17c065a49e
* Replaced "struct cucul_*" and "struct caca_*" types with opaque typedefs
such as cucul_dither_t instead of struct cucul_dither.
* Made cucul_buffer_t an opaque structure and implemented the two getters
cucul_get_buffer_data() and cucul_get_buffer_size().
* Documented all missing functions and function parameters.
18 年前
Sam Hocevar
2c5ccb65e6
* Improved documentation in many places.
18 年前
Sam Hocevar
018fda76e8
* Removed \file directives from all files except caca.h and cucul.h, to
remove redundencies in the Doxygen documentation.
18 年前
Sam Hocevar
5193172468
* Renamed bitmap.c into dither.c.
18 年前
Sam Hocevar
58ff9ea1f5
* Renamed *bitmap to *dither. Ben ouais connard, je fais ce que je veux.
18 年前
Sam Hocevar
988f2f4e92
* Replaced enum cucul_color with unsigned int. The size of an enum is not
really portable, and Visual Studio complains when they are not explicitely
cast.
18 年前
Sam Hocevar
273371c6b1
* Fixed a syntax error. Gruik.
18 年前