Ignore:
Timestamp:
08/11/08 22:02:10 (5 years ago)
Author:
sam
Message:
  • codec.c: support for stock images in pipi_load().
  • stock.c: start working on stock image generation; for instance:

pipi pipi:bayer64 -o image.png

will generate a 64x64 Bayer dithering pattern and save it to image.png.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec.c

    r2632 r2695  
    1717 */ 
    1818 
     19#include "config.h" 
     20#include "common.h" 
     21 
    1922#include <stdio.h> 
    2023#include <stdlib.h> 
    21  
    22 #include "config.h" 
    23 #include "common.h" 
     24#include <string.h> 
    2425 
    2526#include "pipi.h" 
    2627#include "pipi_internals.h" 
    2728 
    28 pipi_image_t *pipi_load(const char *name) 
     29pipi_image_t *pipi_load(char const *name) 
    2930{ 
     31    if(!strncmp(name, "pipi:", 5)) 
     32        return pipi_load_stock(name + 5); 
     33 
    3034#if USE_IMLIB2 
    3135    return pipi_load_imlib2(name); 
Note: See TracChangeset for help on using the changeset viewer.