From 3bf0d166a84377d50ba08ad20eefc8bde9539e27 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 8 Oct 2008 08:56:51 +0000 Subject: [PATCH] libpipi: fix file headers. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2903 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/codec/coreimage.h | 2 +- pipi/codec/coreimage.m | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pipi/codec/coreimage.h b/pipi/codec/coreimage.h index c838775..d5f6c10 100644 --- a/pipi/codec/coreimage.h +++ b/pipi/codec/coreimage.h @@ -1,5 +1,5 @@ /* - * libpipi Proper image processing implementation library + * libpipi Pathetic image processing interface library * Copyright (c) 2004-2008 Sam Hocevar * 2008 Jean-Yves Lamoureux * All Rights Reserved diff --git a/pipi/codec/coreimage.m b/pipi/codec/coreimage.m index e5fe587..7852159 100644 --- a/pipi/codec/coreimage.m +++ b/pipi/codec/coreimage.m @@ -1,5 +1,5 @@ /* - * libpipi Proper image processing implementation library + * libpipi Pathetic image processing interface library * Copyright (c) 2004-2008 Sam Hocevar * 2008 Jean-Yves Lamoureux * All Rights Reserved @@ -37,7 +37,7 @@ pipi_image_t *pipi_load_coreimage(const char *name) NSBitmapImageRep * myImage; myImage = [[NSBitmapImageRep alloc] initWithCIImage:source]; - + pipi_image_t *img; img = pipi_new(w, h); img->p[PIPI_PIXELS_RGBA_C].pixels = [myImage bitmapData]; @@ -49,11 +49,11 @@ pipi_image_t *pipi_load_coreimage(const char *name) img->last_modified = PIPI_PIXELS_RGBA_C; img->codec_priv = (void*)[myImage bitmapFormat]; - - + + pipi_pixels_t *p = pipi_getpixels(img, PIPI_PIXELS_RGBA_C); - - [autoreleasepool release]; + + [autoreleasepool release]; return img; } @@ -63,7 +63,7 @@ int pipi_save_coreimage(pipi_image_t *img, const char *name) NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; printf("%d\n", img->last_modified); pipi_pixels_t *p = pipi_getpixels(img, PIPI_PIXELS_RGBA_C); - + NSString *n = [NSString stringWithCString: name]; NSBitmapImageRep *bitmap = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL @@ -80,12 +80,12 @@ int pipi_save_coreimage(pipi_image_t *img, const char *name) ]; if(bitmap == nil) return -1; memcpy([bitmap bitmapData], p->pixels, p->w*p->h*4); - - [[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:n atomically:YES]; - [autoreleasepool release]; + + [[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:n atomically:YES]; + [autoreleasepool release]; return 1; } -#endif \ No newline at end of file +#endif