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
před 16 roky
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
před 16 roky
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
před 16 roky
jylam
e2d6916c06
* Images were saved with R and B inverted
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3136 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
7d5c789c26
* Changed petit pédé's stuff
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3088 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
995514ae7d
* Added bound-checking to file extension detection
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3085 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
d9c4fee5be
* Added file extension detection to modular codec
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3083 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
245b982a17
* Added hability to save jpeg using modular codec
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3081 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
44b5817450
libpipi: the GDI+ codec defaults to BMP when the file extension is unknown.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3078 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
b090037daf
Cope with disparities between GDI+ versions.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3077 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
2c79783bee
libpipi: improve GDI+ codec cross-compilation.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3076 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
e488046fb0
* Added 'Modular' codec as a testbed for hand-written codecs, as well as a JPEG decoder (libjpeg). Some stuff are
temporary, though.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3075 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
8067d945dc
libpipi: the GDI+ codec can now compile using mingw32, unfortunately it
does not link yet due to a bug in mingw's ld.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3074 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
c30aa41e9c
libpipi: make gdiplus.cpp build on older Windows versions.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3073 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
b186af90bf
Full GDI+ load and save support.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3070 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
eb2a30336b
libpipi: duplicate the GDI codec in order to prepare the GDI+ one.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3067 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
47be8caac5
libpipi: remove unused variables.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3066 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
fd023dae55
* Added compilation to xcode project (using main Makefile)
* Fixed a leak in CoreImage image release function
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3038 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
4354bf70a4
* Convert CoreImage buffer to RGBA right after loading
* Crop padding while needed, making pitch consistent with (width*bytesperpixel)
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3032 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
0a3fb452ad
* CoreImage codec now recognizes file extention and saves the image according to it
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3021 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
2303855238
* CoreImage loader fails cleanly when specified image doesn't exist
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3020 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
260a030eba
* Added free callback to CoreImage codec
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3019 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
8f68604bcc
libpipi: do not swap bytes in the GDI loader.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2945 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
9b044feef7
libpipi: fix a double free in the Oric codec.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2944 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
a63c525fb7
libpipi: fix a buffer underallocation.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2943 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
92c813ec69
libpipi: get rid of all remaining large stack allocations.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2942 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
d8f42fb418
libpipi: replace large stack buffer allocations with malloc().
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2941 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
497e7330e8
libpipi: sometimes imlib_load_image() succeeds but imlib_image_get_data()
returns NULL. Working around this properly.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2934 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
77d650ccf5
libpipi: fix a sign bug in the GDI loader.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2909 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
6c8787f346
Remove tabs in the code here and there.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2905 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
3bf0d166a8
libpipi: fix file headers.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2903 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
0eb36a6225
Support C99 types on Win32 through the same hacks as in libcaca.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2902 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
b222945a6e
* Added preliminary support of CoreImage (Cocoa/Mac OS X)
Changed default hidden unicode glyph to 'x' in The Pimp to fix a compilation problem
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2897 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
b254b61998
oric.c: allow to load invalid files that img2oric used to generate.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2862 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
ab741dd245
Wrote an Oric hires file writer, based on img2oric.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2845 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
36438eed8f
Fix headers.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2844 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
2f5dae2927
Wrote an Oric hires file parser.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2842 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
de6742dd3f
Fix uninitialised values in most codec image writers.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2841 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
9f10fdd2b9
gdi.c: the GDI codec can now open and save BMP files.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2840 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
89d3be6048
Detect Windows GDI at configuration time.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2839 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
6fc2b78f37
Allow to use all available image loaders instead of just the first one.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2837 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
jylam
4a41d81ee6
* Moved accessors to their own file, and added a pipi_get_format_name()
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2814 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
23bd005f9c
* pipi.h: add the PIPI_PIXELS_MASK_C pixel format for canvas boundaries.
* pipi.h: rename RGBA32 and BGR24 into RGBA_C and BGR_C.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2772 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
3784480d3b
* Add a new image flag, u8, which indicates whether the image samples come
from an 8-bpp source.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2756 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
a17c6753e3
* pixels.c: store byte length and bits-per-pixel value in the pipi_pixels_t
structure.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2667 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
af15db52cb
* opencv.c: bring the OpenCV codec up to date.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2631 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
8953c91d6b
* pipi.c: reimplement pipi_new() without relying on the underlying codec
library, so we can have several or none of them at some time.
* sdl.c imlib.c: allow to save images that weren't created using the
current codec.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2629 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
31328a14aa
* Big API reorganisation. Now libpipi can transparently convert between
colour spaces for a given image. For instance, if pipi_gaussian_blur is
applied to a 32-bpp image, it is automatically converted to gamma-corrected
32-bit floats beforehands, then converted back to normal.
* TODO: clipping, regions of interest, more formats, getpixel macros...
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2605 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky
sam
6a86e2b643
* Split the image loaders into sdl.c, imlib.c and opencv.c. We'll do
something far better, but later.
git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2261 92316355-f0b4-4df1-b90c-862c8a59935f
před 16 roky