Browse 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 16 years ago
parent
commit
22b3af001b
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      pipi/pipi.h

+ 21
- 0
pipi/pipi.h View File

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


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


#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
@@ -51,6 +52,25 @@ typedef enum
} }
pipi_format_t; 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. */ /* pipi_pixels_t: this structure stores a pixel view of an image. */
typedef struct 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 pipi_image_t *pipi_dither_dbs(pipi_image_t *);
extern void pipi_dither_24to16(pipi_image_t *); extern void pipi_dither_24to16(pipi_image_t *);



#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif


Loading…
Cancel
Save