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.
пре 14 година
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 година
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 година