Pārlūkot izejas kodu

* 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 pirms 16 gadiem
vecāks
revīzija
22b3af001b
1 mainītis faili ar 21 papildinājumiem un 0 dzēšanām
  1. +21
    -0
      pipi/pipi.h

+ 21
- 0
pipi/pipi.h Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt