Changeset 2903 for libpipi/trunk


Ignore:
Timestamp:
Oct 8, 2008, 10:56:51 AM (12 years ago)
Author:
Sam Hocevar
Message:

libpipi: fix file headers.

Location:
libpipi/trunk/pipi/codec
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec/coreimage.h

    r2902 r2903  
    11/*
    2  *  libpipi       Proper image processing implementation library
     2 *  libpipi       Pathetic image processing interface library
    33 *  Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org>
    44 *                2008 Jean-Yves Lamoureux <jylam@lnxscene.org>
  • libpipi/trunk/pipi/codec/coreimage.m

    r2897 r2903  
    11/*
    2  *  libpipi       Proper image processing implementation library
     2 *  libpipi       Pathetic image processing interface library
    33 *  Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org>
    44 *                2008 Jean-Yves Lamoureux <jylam@lnxscene.org>
     
    3838    NSBitmapImageRep * myImage;
    3939    myImage = [[NSBitmapImageRep alloc] initWithCIImage:source];
    40    
     40
    4141    pipi_image_t *img;
    4242    img = pipi_new(w, h);
     
    5050
    5151    img->codec_priv = (void*)[myImage bitmapFormat];
    52    
    53    
     52
     53
    5454    pipi_pixels_t *p = pipi_getpixels(img, PIPI_PIXELS_RGBA_C);
    55  
    56     [autoreleasepool release]; 
     55
     56    [autoreleasepool release];
    5757    return img;
    5858}
     
    6464    printf("%d\n", img->last_modified);
    6565    pipi_pixels_t *p = pipi_getpixels(img, PIPI_PIXELS_RGBA_C);
    66  
     66
    6767    NSString *n = [NSString stringWithCString: name];
    6868    NSBitmapImageRep *bitmap = [[NSBitmapImageRep alloc]
     
    8181    if(bitmap == nil) return -1;
    8282    memcpy([bitmap bitmapData], p->pixels, p->w*p->h*4);
    83    
    84     [[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:n  atomically:YES];   
    85     [autoreleasepool release]; 
     83
     84    [[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:n  atomically:YES];
     85    [autoreleasepool release];
    8686
    8787    return 1;
Note: See TracChangeset for help on using the changeset viewer.