Changeset 2814


Ignore:
Timestamp:
Sep 3, 2008, 8:33:46 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Moved accessors to their own file, and added a pipi_get_format_name()
Location:
libpipi/trunk/pipi
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/Makefile.am

    r2812 r2814  
    2626        dither.c \
    2727        measure.c \
     28        accessors.c \
    2829        $(codec_sources) \
    2930        $(paint_sources) \
  • libpipi/trunk/pipi/codec/opencv.c

    r2772 r2814  
    3535{
    3636    pipi_image_t *img;
     37
    3738    IplImage *priv = cvLoadImage(name, 1);
    3839
  • libpipi/trunk/pipi/paint/line.c

    r2810 r2814  
    22 *  libpipi       Proper image processing implementation library
    33 *  Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org>
    4  *                2008 Jean-Yves Lamoureux <jylam@lnxscene.org
     4 *                2008 Jean-Yves Lamoureux <jylam@lnxscene.org>
    55 *                All Rights Reserved
    66 *
  • libpipi/trunk/pipi/pipi.h

    r2812 r2814  
    123123extern int pipi_get_image_height(pipi_image_t *img);
    124124extern int pipi_get_image_pitch(pipi_image_t *img);
     125extern int pipi_get_image_last_modified(pipi_image_t *img);
     126extern const char* pipi_get_format_name(int format);
     127
    125128
    126129extern double pipi_measure_msd(pipi_image_t *, pipi_image_t *);
  • libpipi/trunk/pipi/pixels.c

    r2777 r2814  
    266266    done = 1;
    267267}
    268 
    269 /* Accessors */
    270 int pipi_get_image_width(pipi_image_t *img)
    271 {
    272     return img->w;
    273 }
    274 int pipi_get_image_height(pipi_image_t *img)
    275 {
    276     return img->h;
    277 }
    278 int pipi_get_image_pitch(pipi_image_t *img)
    279 {
    280     return img->pitch;
    281 }
Note: See TracChangeset for help on using the changeset viewer.