Ignore:
Timestamp:
Feb 24, 2008, 7:49:39 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Import image loading features from PWNtcha. As they are more than 4-year old, they will certainly require some cleanup, eg. pkg-config transitions.
Location:
libpipi/trunk/pipi
Files:
3 added
2 edited

Legend:

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

    r2227 r2228  
    1515        pipi.c \
    1616        pipi.h \
     17        pipi_internals.h \
     18        io.c \
     19        pixels.c \
    1720        $(NULL)
    18 libpipi_la_CFLAGS = $(IMLIB2_CFLAGS)
    19 libpipi_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
    20 libpipi_la_LIBADD = $(IMLIB2_LIBS)
     21libpipi_la_CFLAGS = $(CFLAGS_EXTRA)
     22libpipi_la_LDFLAGS = $(LDFLAGS_EXTRA) \
     23        -no-undefined -version-number @LT_VERSION@
    2124
     25if USE_SDL
     26CFLAGS_EXTRA = `sdl-config --cflags`
     27LDFLAGS_EXTRA = `sdl-config --libs` -lSDL_image
     28else
     29if USE_IMLIB2
     30CFLAGS_EXTRA = @IMLIB2_CFLAGS@
     31LDFLAGS_EXTRA = @IMLIB2_LIBS@
     32else
     33if USE_OPENCV
     34CFLAGS_EXTRA = `opencv-config --cflags`
     35LDFLAGS_EXTRA = `opencv-config --libs opencv highgui`
     36endif
     37endif
     38endif
     39
  • libpipi/trunk/pipi/pipi.h

    r2227 r2228  
     1/*
     2 *  libpipi       Proper image processing implementation library
     3 *  Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org>
     4 *                All Rights Reserved
     5 *
     6 *  $Id$
     7 *
     8 *  This library is free software. It comes without any warranty, to
     9 *  the extent permitted by applicable law. You can redistribute it
     10 *  and/or modify it under the terms of the Do What The Fuck You Want
     11 *  To Public License, Version 2, as published by Sam Hocevar. See
     12 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     13 */
     14
     15/*
     16 * pipi.h: the full libpipi public API
     17 */
     18
     19#ifndef __PIPI_H__
     20#define __PIPI_H__
     21
     22#ifdef __cplusplus
     23extern "C"
     24{
     25#endif
     26
     27typedef struct pipi_image pipi_image_t;
     28
     29extern pipi_image_t *pipi_load(const char *name);
     30extern pipi_image_t *pipi_new(int width, int height);
     31extern pipi_image_t *pipi_copy(const pipi_image_t *img);
     32extern void pipi_free(pipi_image_t *img);
     33extern void pipi_save(pipi_image_t *img, const char *name);
     34
     35extern int pipi_getgray(pipi_image_t const *img, int x, int y, int *g);
     36extern int pipi_getpixel(pipi_image_t const *img,
     37                         int x, int y, int *r, int *g, int *b);
     38extern int pipi_setpixel(pipi_image_t *img, int x, int y, int r, int g, int b);
     39
     40#ifdef __cplusplus
     41}
     42#endif
     43
     44#endif /* __PIPI_H__ */
     45
Note: See TracChangeset for help on using the changeset viewer.