- Timestamp:
- Aug 30, 2008, 12:03:33 PM (13 years ago)
- Location:
- libpipi/trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/examples/Makefile.am
r2788 r2809 3 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/pipi 4 4 5 bin_PROGRAMS = edd img2rubik sharpen floodfill line bezier 5 bin_PROGRAMS = edd img2rubik sharpen floodfill line bezier histogram 6 6 7 7 edd_SOURCES = edd.c … … 22 22 bezier_SOURCES = bezier.c 23 23 bezier_LDADD = ../pipi/libpipi.la 24 25 histogram_SOURCES = histogram.c 26 histogram_LDADD = ../pipi/libpipi.la -
libpipi/trunk/pipi/Makefile.am
r2798 r2809 32 32 $(quantize_sources) \ 33 33 $(dither_sources) \ 34 $(histogram_sources) \ 34 35 $(NULL) 35 36 libpipi_la_CFLAGS = $(codec_cflags) … … 80 81 dither/random.c 81 82 83 histogram_sources = \ 84 histogram/histogram.c 85 82 86 if USE_SDL 83 87 codec_cflags += `sdl-config --cflags` -
libpipi/trunk/pipi/pipi.h
r2790 r2809 55 55 pipi_format_t; 56 56 57 58 typedef enum 59 { 60 PIPI_COLOR_R = 1, 61 PIPI_COLOR_G = 2, 62 PIPI_COLOR_B = 4, 63 PIPI_COLOR_A = 8, 64 PIPI_COLOR_Y = 16 65 } 66 pipi_color_flag_t; 67 57 68 struct pixel_u32 58 69 { … … 89 100 typedef struct pipi_context pipi_context_t; 90 101 102 /* pipi_histogram_t: the histogram type */ 103 typedef struct pipi_histogram pipi_histogram_t; 91 104 92 105 extern pipi_context_t *pipi_create_context(void); … … 171 184 extern void pipi_dither_24to16(pipi_image_t *); 172 185 186 extern pipi_histogram_t* pipi_new_histogram(void); 187 extern int pipi_get_image_histogram(pipi_image_t *, pipi_histogram_t *, int); 188 extern int pipi_free_histogram(pipi_histogram_t*); 189 extern int pipi_render_histogram(pipi_image_t *, pipi_histogram_t*, int); 190 173 191 174 192 #ifdef __cplusplus -
libpipi/trunk/pipi/pipi_internals.h
r2794 r2809 23 23 #define SET_FLAG_WRAP 0x00000002 24 24 #define SET_FLAG_8BIT 0x00000004 25 26 struct pipi_histogram 27 { 28 int r_present, g_present, b_present, y_present; 29 unsigned int a[256]; 30 unsigned int r[256]; 31 unsigned int g[256]; 32 unsigned int b[256]; 33 unsigned int y[256]; 34 }; 35 25 36 26 37 /* pipi_image_t: the image structure. This is probably going to be the most
Note: See TracChangeset
for help on using the changeset viewer.