sam
d18e224caa
Fix a bug in img2twit's cell allocation.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3524 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
901c4cd590
Make img2twit message length configurable at runtime, improve the initial
guess by smoothing hard colour gradients, and fixed the bitstack copy
constructor to avoid corruption on exit.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3523 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
6a02de1614
Make img2twit more configurable: iterations per second and debug mode can
now be chosen at runtime. Message length will soon be.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3522 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
9d2ab87f85
Add proper Unicode handling to img2twit. This includes an UTF-8 encoder/decoder
and a special bit stack that can handle arbitrary bases within its stream. The
image encoder and decoder are now separate code paths.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3521 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
1779efba6b
Tremendously improve img2twit.cpp: only compute the new error around the
updated pixel, compute bit allocation at runtime, weight operations in
order to try usual "winners" more often, increase RGB allocation size.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3520 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
8bf0131c9f
Add C++ warnings to the build process.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3519 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
4dd30b4ad4
First attempt at a super-compressor for the purpose of sending images to
Twitter, rendering this service slightly more useful. It's still full of
crap, of course.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3518 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
dbd1afd99e
pipi_measure_msd(): fix this function so that it works with colour images, too.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3517 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
d1fa1af3a1
Fix the FFmpeg headers location in example programs.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3516 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
335ba42a95
Look for the awesome CGAL library at configure stage.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3515 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
d64190242f
Update ignore properties.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3422 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
c7ad1f601c
Synchronise Visual Studio projects with the current code.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3421 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
e7c1b11fad
Add missing M_PI definition in wave.c for Win32 compilation.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3420 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
4c9c6fb75c
Make sure that the gdiplus codec initialises GdiPlus before any library
calls are made.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3419 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
25eac661af
wave.c: implement pipi_wave() in addition to pipi_sine(). The effect is
not yet satisfying.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3418 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
44eca2e75e
context.c: factor some code to gain 180 lines of code.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3417 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
78c5fad50e
wave.c: rename pipi_wave() into pipi_sine().
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3416 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
3b38443852
resize.c: add pipi_crop() and the --crop flag.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3415 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
f025663d4a
jpeg.c: fix a huge resource leak in the error codepath of the JPEG codec.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3414 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
9ebe671bd6
makemovie: new example program; this utility reads a list of images from
stdin and encodes them into a movie (name specified on the command line).
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3413 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
80bfef8e57
mean.c: rename this file into merge.c and implement pipi_merge() for trivial
image merging.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3411 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
b7e3368c23
wave.c: change the wave arguments. The format is now eg. 150x100+10r1.3 where
150 is the wave period, 100 is the amplitude, 10 is the phase, and 1.3 is
the angle of the wave direction.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3410 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
9e9d93dab2
histogram.c: fix a shadowing declaration.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3409 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
37a1e5606e
wave.c: better behaviour around image edges.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3403 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
4936ebfa16
Fix a very old crash in the box blur filter that occurred when the image
was broader than tall.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3402 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
05c7be55fc
Fix a crash in the JPEG loader when meeting with ENOENT.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3401 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
7811f184bb
storyboard.c: fix compilation with optimisations disabled.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3400 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
f0b30c6fa1
Properly handle alpha components in the convolution code.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3399 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
1b42147e18
Properly handle alpha components in the resize code.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3398 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
2ff222affb
Add a wave filter for crappy sine effects.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3397 92316355-f0b4-4df1-b90c-862c8a59935f
15 years ago
sam
e0e1a1f26c
storyboard.c: add decorations around thumbnails
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3352 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
48e2c4cebf
storyboard.c:
- generate smaller thumbnail mosaics
- process more images (1 out of 15 instead of 20)
- try to rule out more similar images
- cope with streams that do not advertise their picture size in the headers
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3351 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
78cc659e07
imlib.c: fix support for alpha channel when saving using Imlib2.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3350 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
d759c65d79
storyboard.c: more output filename tuning...
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3349 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
0e8b0d6376
storyboard.c: fix output path.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3348 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
77016401db
storyboard.c: tuned the output file name.
examples/.gitignore: ignore storyboard.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3347 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
f83b0deb78
Conditionally build the movie thumbnailer by detecting libavcodec et al.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3346 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
70e7f92416
Added a movie thumbnailer (storyboard generator) using libavcodec.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3345 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
bc4b740e20
Minor reorg in the JPEG codec.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3344 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
0a241eb088
Got rid of the modular codec stuff. All codecs should work the same way.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3343 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
1ff231b9f7
Change _C pixel format suffixes into _U8 for more clarity.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3342 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
0494eff2ef
Add pipi_release_pixels and pipi_set_colorspace in prevision of
pipi_get_pixels using the tiles system. These functions should
disappear one day, because they're going to leak like crazy.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3341 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
bb926c7a95
Rename pipi_getpixel into pipi_get_pixels.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3340 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
b64a243725
Create basic tile handling functions.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3339 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
nico
f857890dda
* Centralize pipi's errors managment in macro RETURN_SUCCESS
* Change php headers in samples programs
* Add binding for pipi_draw_line
* Check args in pipi_new_histogram and pipi_get_version
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3170 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
jylam
4eb5808fa1
* Added setjmp/longjmp support to jpeg loader.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3165 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
e10e51eaba
Quick and dirty implementation of pipi_draw_rectangle() to save zMoo.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3164 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
c98ad1cf7a
Add configure flags to enable/disable C# bindings, debug mode, and the
upcoming experimental tile support.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3162 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
74f407c040
libpipi: remove extra newlines in debug messages.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3161 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago
sam
5816093c76
Clean up configure.ac.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3147 92316355-f0b4-4df1-b90c-862c8a59935f
16 years ago