/* * libpipi Proper image processing implementation library * Copyright (c) 2004-2008 Sam Hocevar * All Rights Reserved * * $Id$ * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://sam.zoy.org/wtfpl/COPYING for more details. */ /* * pipi.c: core library routines */ #include "config.h" #include "common.h" #include #include #include #include "pipi.h" #include "pipi_internals.h" /* static int init = 0; void _pipi_init(void) { if(init) return; _pipi_init_pixels(); } */ pipi_image_t *pipi_new(int w, int h) { pipi_image_t *img; img = malloc(sizeof(pipi_image_t)); memset(img, 0, sizeof(pipi_image_t)); img->w = w; img->h = h; img->last_modified = PIPI_PIXELS_UNINITIALISED; return img; }