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 лет назад
Sam Hocevar
e8ae71156d
* Changed the cucul_set_bitmap_antialias() argument to a string.
18 лет назад
Sam Hocevar
7f5fb19a39
* Set the default dithering mode to Floyd-Steinberg.
18 лет назад
Sam Hocevar
cfadd8b64d
* Removed CUCUL_BACKGROUND, CUCUL_ANTIALIASING and CUCUL_DITHERING
environment variables handling. Replaced that with three per-bitmap
functions: cucul_set_bitmap_antialias(), cucul_set_bitmap_color() and
cucul_set_bitmap_dithering().
* Added cucul_set_bitmap_brightness() and cucul_set_bitmap_contrast()
prototypes (but did not implement them yet).
* Added cucul_set_bitmap_charset() to choose what characters are going
to be used for the bitmap rendering.
* Removed the now useless cucul_get_feature(), cucul_set_feature() etc.
18 лет назад
Jean-Yves Lamoureux
604852e3ba
* Ok, invert works. OK OK SAM THAT WAS MY FAULT
AHAHAH _
_._ _..._ .-', _.._(`))
'-. ` ' /-._.-' ',/
) MAIS \ '.
/ _ _ | JE \
| a a / SUIS |
\ .-. ;
'-('' ).-' ,' UN ;
'-; | .'
\ VIEUX \ /
| 7 .__ _.-\ \
| | | ``/ /` /
/,_| | /,_/ /
/,_/ '`-'
POOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOORC!
18 лет назад
Jean-Yves Lamoureux
f53bc3937a
* Added bitmap invert routine. It doesn't work well, so don't use it right now. Sam is working hard to correct the strange behaviour.
18 лет назад
Sam Hocevar
77f995023d
* Slightly changed header comments.
18 лет назад
Sam Hocevar
36886a339e
* Removed the cucul_t * argument from cucul_create_bitmap(). It's not needed.
18 лет назад
Sam Hocevar
5fff7db514
* Use ln(x) = 2 * (t + t^3/3 + t^5/5 + ...) with t = (x-1)/(x+1).
18 лет назад
Sam Hocevar
b662acdd4e
* Added optional support for CP437 gray blocks in the bitmap renderer.
* Use a custom pow() function for gamma computation.
18 лет назад
Sam Hocevar
dcaccc744c
* Got rid of useless parameters in cucul_*_bitmap and cucul_*_sprite.
18 лет назад
Sam Hocevar
15ac34a918
* Added glue code to compile libcaca without a libc and build applications
as multiboot kernels.
19 лет назад
Sam Hocevar
70d96c811b
* Polished the driver split a bit (still no events, except resize events),
properly credited authors and documented a few things.
19 лет назад