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 години
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 години