Changeset 3019 for libpipi


Ignore:
Timestamp:
Oct 19, 2008, 12:57:18 PM (11 years ago)
Author:
Jean-Yves Lamoureux
Message:
Location:
libpipi/trunk/pipi/codec
Files:
2 edited

Legend:

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

    r2903 r3019  
    3030#include "pipi_internals.h"
    3131
     32struct pipi_codec_coreimage
     33{
     34        NSBitmapFormat format;
     35};
     36
     37
    3238#endif
  • libpipi/trunk/pipi/codec/coreimage.m

    r2905 r3019  
    2121
    2222#ifdef USE_COCOA
     23#import <CIImage.h>
    2324
    24 #import <CIImage.h>
     25
     26static int pipi_free_coreimage(pipi_image_t *img);
    2527
    2628pipi_image_t *pipi_load_coreimage(const char *name)
     
    4951    img->last_modified = PIPI_PIXELS_RGBA_C;
    5052
    51     img->codec_priv = (void*)[myImage bitmapFormat];
    52 
     53    img->codec_priv = (struct pipi_codec_coreimage *) malloc(sizeof(struct pipi_codec_coreimage *));
     54    struct pipi_codec_coreimage *infos = (struct pipi_codec_coreimage *) img->codec_priv;
     55    infos->format = [myImage bitmapFormat];
    5356
    5457    pipi_pixels_t *p = pipi_getpixels(img, PIPI_PIXELS_RGBA_C);
    55 
     58   
     59    img->codec_free = pipi_free_coreimage;
     60   
    5661    [autoreleasepool release];
    5762    return img;
     
    8893}
    8994
     95/*
     96 * XXX: The following functions are local.
     97 */
     98
     99static int pipi_free_coreimage(pipi_image_t *img)
     100{
     101    return 0;
     102}
    90103
    91104#endif
Note: See TracChangeset for help on using the changeset viewer.