Changeset 2228 for libpipi/trunk
- Timestamp:
- Feb 24, 2008, 7:49:39 PM (14 years ago)
- Location:
- libpipi/trunk
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/.gitignore
r2227 r2228 1 1 aclocal.m4 2 autom4te.cache 2 3 configure 3 4 config.h.in … … 9 10 libtool 10 11 pipi/pipi.pc 12 genethumb/genethumb 11 13 stamp-h1 12 14 .auto -
libpipi/trunk/Makefile.am
r2227 r2228 3 3 SUBDIRS = pipi genethumb 4 4 5 EXTRA_DIST = bootstrap 5 EXTRA_DIST = bootstrap common.h 6 6 AUTOMAKE_OPTIONS = dist-bzip2 7 7 -
libpipi/trunk/configure.ac
r2227 r2228 4 4 AC_CONFIG_AUX_DIR(.auto) 5 5 AM_INIT_AUTOMAKE([no-define tar-ustar]) 6 AM_MAINTAINER_MODE6 dnl AM_MAINTAINER_MODE 7 7 8 8 AM_CONFIG_HEADER(config.h) … … 26 26 AC_C_INLINE 27 27 28 AC_ARG_ENABLE(imlib2,29 [ --enable-imlib2 Imlib2 graphics support (autodetected)])30 31 28 AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h) 32 29 … … 36 33 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" 37 34 35 # Use DevIL? 36 #AC_CHECK_HEADERS(IL/il.h, 37 # [ac_cv_my_have_il="yes"], 38 # [ac_cv_my_have_il="no"]) 39 #CPPFLAGS="${save_CPPFLAGS}" 40 #AM_CONDITIONAL(USE_IL, test "${ac_cv_my_have_il}" = "yes") 41 42 # Use Windows? 43 #AC_CHECK_HEADERS(olectl.h, 44 # [ac_cv_my_have_ole="yes"], 45 # [ac_cv_my_have_ole="no"]) 46 #CPPFLAGS="${save_CPPFLAGS}" 47 #AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes") 48 49 # Use SDL? 50 ac_cv_my_have_sdl="no" 51 save_CPPFLAGS="${CPPFLAGS}" 52 AC_PATH_PROG(SDL_CONFIG, sdl-config, no) 53 if test "${SDL_CONFIG}" != "no"; then 54 CPPFLAGS="${CPPFLAGS} `sdl-config --cflags`" 55 fi 56 AC_CHECK_HEADERS(SDL_image.h, 57 [ac_cv_my_have_sdl="yes"], 58 [ac_cv_my_have_sdl="no"]) 59 CPPFLAGS="${save_CPPFLAGS}" 60 AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes") 61 62 # Use OpenCV? 63 ac_cv_my_have_opencv="no" 64 save_CPPFLAGS="${CPPFLAGS}" 65 AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no) 66 if test "${OPENCV_CONFIG}" != "no"; then 67 CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`" 68 fi 69 AC_CHECK_HEADERS(cv.h, 70 [ac_cv_my_have_opencv="yes"], 71 [ac_cv_my_have_opencv="no"]) 72 CPPFLAGS="${save_CPPFLAGS}" 73 AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes") 74 38 75 # Use Imlib2? 39 if test "${enable_imlib2}" != "no"; then 40 IMLIB2="no" 41 PKG_CHECK_MODULES(IMLIB2, imlib2, [IMLIB2="yes"], [AC_MSG_RESULT(no)]) 42 if test "${IMLIB2}" != "no"; then 43 AC_DEFINE(USE_IMLIB2, 1, Define to 1 to use Imlib2) 44 fi 76 ac_cv_my_have_imlib2="no" 77 IMLIB2="no" 78 PKG_CHECK_MODULES(IMLIB2, imlib2, [ac_cv_my_have_imlib2="yes"]) 79 AC_MSG_RESULT($ac_cv_my_have_imlib2) 80 if test "${ac_cv_my_have_imlib2}" != "no"; then 81 AC_DEFINE(USE_IMLIB2, 1, Define to 1 to use Imlib2) 82 fi 83 AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes") 84 85 if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then 86 AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]]) 45 87 fi 46 88 -
libpipi/trunk/pipi/Makefile.am
r2227 r2228 15 15 pipi.c \ 16 16 pipi.h \ 17 pipi_internals.h \ 18 io.c \ 19 pixels.c \ 17 20 $(NULL) 18 libpipi_la_CFLAGS = $( IMLIB2_CFLAGS)19 libpipi_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@20 libpipi_la_LIBADD = $(IMLIB2_LIBS) 21 libpipi_la_CFLAGS = $(CFLAGS_EXTRA) 22 libpipi_la_LDFLAGS = $(LDFLAGS_EXTRA) \ 23 -no-undefined -version-number @LT_VERSION@ 21 24 25 if USE_SDL 26 CFLAGS_EXTRA = `sdl-config --cflags` 27 LDFLAGS_EXTRA = `sdl-config --libs` -lSDL_image 28 else 29 if USE_IMLIB2 30 CFLAGS_EXTRA = @IMLIB2_CFLAGS@ 31 LDFLAGS_EXTRA = @IMLIB2_LIBS@ 32 else 33 if USE_OPENCV 34 CFLAGS_EXTRA = `opencv-config --cflags` 35 LDFLAGS_EXTRA = `opencv-config --libs opencv highgui` 36 endif 37 endif 38 endif 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 23 extern "C" 24 { 25 #endif 26 27 typedef struct pipi_image pipi_image_t; 28 29 extern pipi_image_t *pipi_load(const char *name); 30 extern pipi_image_t *pipi_new(int width, int height); 31 extern pipi_image_t *pipi_copy(const pipi_image_t *img); 32 extern void pipi_free(pipi_image_t *img); 33 extern void pipi_save(pipi_image_t *img, const char *name); 34 35 extern int pipi_getgray(pipi_image_t const *img, int x, int y, int *g); 36 extern int pipi_getpixel(pipi_image_t const *img, 37 int x, int y, int *r, int *g, int *b); 38 extern 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.