Parcourir la source

* Added string.h to list of included files, for memcpy()

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2722 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
jylam il y a 16 ans
Parent
révision
22b3af001b
1 fichiers modifiés avec 21 ajouts et 0 suppressions
  1. +21
    -0
      pipi/pipi.h

+ 21
- 0
pipi/pipi.h Voir le fichier

@@ -20,6 +20,7 @@
#define __PIPI_H__

#include <stdio.h>
#include <string.h>

#ifdef __cplusplus
extern "C"
@@ -51,6 +52,25 @@ typedef enum
}
pipi_format_t;

struct pixel_u32
{
uint8_t r, g, b, a;
};
struct pixel_float
{
float r, g, b, a;
};

typedef struct
{
union
{
struct pixel_u32 pixel_u32;
struct pixel_float pixel_float;
};
}
pipi_pixel_t;

/* pipi_pixels_t: this structure stores a pixel view of an image. */
typedef struct
{
@@ -117,6 +137,7 @@ extern pipi_image_t *pipi_dither_ostromoukhov(pipi_image_t *, pipi_scan_t);
extern pipi_image_t *pipi_dither_dbs(pipi_image_t *);
extern void pipi_dither_24to16(pipi_image_t *);


#ifdef __cplusplus
}
#endif


Chargement…
Annuler
Enregistrer