gdkrgb.c File Reference

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "gdkprivate.h"
#include "gdk.h"
#include "gdkrgb.h"

Go to the source code of this file.

Classes

struct  _GdkRgbInfo

Defines

#define ENABLE_GRAYSCALE
#define IMAGE_WIDTH   256
#define STAGE_ROWSTRIDE   (IMAGE_WIDTH * 3)
#define IMAGE_HEIGHT   64
#define N_IMAGES   6
#define HAIRY_CONVERT_8
#define DM_WIDTH   128
#define DM_WIDTH_SHIFT   7
#define DM_HEIGHT   128
#define HAIRY_CONVERT_565
#define HAIRY_CONVERT_888

Typedefs

typedef _GdkRgbInfo GdkRgbInfo
typedef void(*) GdkRgbConvFunc (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)

Functions

static gint gdk_rgb_cmap_fail (const char *msg, GdkColormap *cmap, gulong *pixels)
static void gdk_rgb_make_colorcube (gulong *pixels, gint nr, gint ng, gint nb)
static void gdk_rgb_make_colorcube_d (gulong *pixels, gint nr, gint ng, gint nb)
static gint gdk_rgb_try_colormap (gint nr, gint ng, gint nb)
static gboolean gdk_rgb_do_colormaps (void)
static void gdk_rgb_colorcube_222 (void)
void gdk_rgb_set_verbose (gboolean verbose)
void gdk_rgb_set_install (gboolean install)
void gdk_rgb_set_min_colors (gint min_colors)
static guint32 gdk_rgb_score_visual (GdkVisual *visual)
static void gdk_rgb_choose_visual (void)
static void gdk_rgb_select_conv (GdkImage *image)
static void gdk_rgb_set_gray_cmap (GdkColormap *cmap)
void gdk_rgb_init (void)
gulong gdk_rgb_xpixel_from_rgb (guint32 rgb)
void gdk_rgb_gc_set_foreground (GdkGC *gc, guint32 rgb)
void gdk_rgb_gc_set_background (GdkGC *gc, guint32 rgb)
static void gdk_rgb_convert_8 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_preprocess_dm_565 (void)
static void gdk_rgb_convert_8_d666 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_8_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_8_indexed (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray8 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray8_gray (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_565 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_565_gray (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_565_br (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_565_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_555 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_555_br (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_888_msb (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_888_lsb (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_0888 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_0888_br (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_8880_br (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_truecolor_lsb (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_truecolor_lsb_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_truecolor_msb (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_truecolor_msb_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_4 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray4 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray4_pack (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray4_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray4_d_pack (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_1 (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static guchargdk_rgb_ensure_stage (void)
static void gdk_rgb_32_to_stage (guchar *buf, gint rowstride, gint width, gint height)
static void gdk_rgb_convert_32_generic (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, gint rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_32_generic_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, gint rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_gray_to_stage (guchar *buf, gint rowstride, gint width, gint height)
static void gdk_rgb_convert_gray_generic (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, gint rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray_generic_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, gint rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_gray_cmap (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, gint rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_indexed_to_stage (guchar *buf, gint rowstride, gint width, gint height, GdkRgbCmap *cmap)
static void gdk_rgb_convert_indexed_generic (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, gint rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static void gdk_rgb_convert_indexed_generic_d (GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, gint rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)
static gint gdk_rgb_alloc_scratch_image (void)
static GdkImagegdk_rgb_alloc_scratch (gint width, gint height, gint *x0, gint *y0)
static void gdk_draw_rgb_image_core (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, guchar *buf, gint pixstride, gint rowstride, GdkRgbConvFunc conv, GdkRgbCmap *cmap, gint xdith, gint ydith)
void gdk_draw_rgb_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *rgb_buf, gint rowstride)
void gdk_draw_rgb_image_dithalign (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *rgb_buf, gint rowstride, gint xdith, gint ydith)
void gdk_draw_rgb_32_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *buf, gint rowstride)
static void gdk_rgb_make_gray_cmap (GdkRgbInfo *info)
void gdk_draw_gray_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *buf, gint rowstride)
GdkRgbCmapgdk_rgb_cmap_new (guint32 *colors, gint n_colors)
void gdk_rgb_cmap_free (GdkRgbCmap *cmap)
void gdk_draw_indexed_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *buf, gint rowstride, GdkRgbCmap *cmap)
gboolean gdk_rgb_ditherable (void)
GdkColormapgdk_rgb_get_cmap (void)
GdkVisualgdk_rgb_get_visual (void)

Variables

static const gcharvisual_names []
static gboolean gdk_rgb_install_cmap = FALSE
static gint gdk_rgb_min_colors = 5 * 5 * 5
static gboolean gdk_rgb_verbose = FALSE
static GdkRgbInfoimage_info = NULL
static GdkImagestatic_image [N_IMAGES]
static gint static_image_idx
static gucharcolorcube
static gucharcolorcube_d
static const guchar DM [128][128]
static guint32DM_565 = NULL
static gint horiz_idx
static gint horiz_y = IMAGE_HEIGHT
static gint vert_idx
static gint vert_x = IMAGE_WIDTH
static gint tile_idx
static gint tile_x = IMAGE_WIDTH
static gint tile_y1 = IMAGE_HEIGHT
static gint tile_y2 = IMAGE_HEIGHT


Define Documentation

#define DM_HEIGHT   128

Definition at line 805 of file gdkrgb.c.

Referenced by gdk_rgb_convert_1(), gdk_rgb_convert_4(), gdk_rgb_convert_565_d(), gdk_rgb_convert_8_d(), gdk_rgb_convert_8_d666(), gdk_rgb_convert_gray4_d(), gdk_rgb_convert_gray4_d_pack(), gdk_rgb_convert_truecolor_lsb_d(), gdk_rgb_convert_truecolor_msb_d(), and gdk_rgb_preprocess_dm_565().

#define DM_WIDTH   128

Definition at line 803 of file gdkrgb.c.

Referenced by gdk_rgb_convert_1(), gdk_rgb_convert_4(), gdk_rgb_convert_565_d(), gdk_rgb_convert_8_d(), gdk_rgb_convert_8_d666(), gdk_rgb_convert_gray4_d(), gdk_rgb_convert_gray4_d_pack(), gdk_rgb_convert_truecolor_lsb_d(), gdk_rgb_convert_truecolor_msb_d(), and gdk_rgb_preprocess_dm_565().

#define DM_WIDTH_SHIFT   7

Definition at line 804 of file gdkrgb.c.

Referenced by gdk_rgb_convert_565_d().

#define ENABLE_GRAYSCALE

Definition at line 47 of file gdkrgb.c.

Referenced by gdk_rgb_score_visual(), and gdk_rgb_select_conv().

#define HAIRY_CONVERT_565

Definition at line 1951 of file gdkrgb.c.

#define HAIRY_CONVERT_8

Definition at line 696 of file gdkrgb.c.

#define HAIRY_CONVERT_888

Definition at line 2432 of file gdkrgb.c.

#define IMAGE_HEIGHT   64

Definition at line 140 of file gdkrgb.c.

Referenced by gdk_draw_rgb_image_core(), gdk_rgb_alloc_scratch(), gdk_rgb_alloc_scratch_image(), gdk_rgb_ensure_stage(), and gdk_rgb_init().

#define IMAGE_WIDTH   256

Definition at line 138 of file gdkrgb.c.

Referenced by gdk_draw_rgb_image_core(), gdk_rgb_alloc_scratch(), gdk_rgb_alloc_scratch_image(), and gdk_rgb_init().

#define N_IMAGES   6

Definition at line 141 of file gdkrgb.c.

Referenced by gdk_rgb_alloc_scratch_image(), and gdk_rgb_init().

#define STAGE_ROWSTRIDE   (IMAGE_WIDTH * 3)

Definition at line 139 of file gdkrgb.c.

Referenced by gdk_rgb_32_to_stage(), gdk_rgb_convert_32_generic(), gdk_rgb_convert_32_generic_d(), gdk_rgb_convert_gray_generic(), gdk_rgb_convert_gray_generic_d(), gdk_rgb_convert_indexed_generic(), gdk_rgb_convert_indexed_generic_d(), gdk_rgb_ensure_stage(), gdk_rgb_gray_to_stage(), and gdk_rgb_indexed_to_stage().


Typedef Documentation

typedef void(*) GdkRgbConvFunc(GdkImage *image, gint x0, gint y0, gint width, gint height, guchar *buf, int rowstride, gint x_align, gint y_align, GdkRgbCmap *cmap)

Definition at line 69 of file gdkrgb.c.

typedef struct _GdkRgbInfo GdkRgbInfo

Definition at line 67 of file gdkrgb.c.


Function Documentation

void gdk_draw_gray_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar buf,
gint  rowstride 
)

Definition at line 3698 of file gdkrgb.c.

References _GdkRgbInfo::bpp, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, gdk_rgb_make_gray_cmap(), GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, _GdkRgbInfo::gray_cmap, image_info, NULL, _GdkVisual::type, and _GdkRgbInfo::visual.

void gdk_draw_indexed_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar buf,
gint  rowstride,
GdkRgbCmap cmap 
)

Definition at line 3754 of file gdkrgb.c.

References _GdkRgbInfo::conv_indexed, _GdkRgbInfo::conv_indexed_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, and image_info.

void gdk_draw_rgb_32_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar buf,
gint  rowstride 
)

Definition at line 3668 of file gdkrgb.c.

References _GdkRgbInfo::conv_32, _GdkRgbInfo::conv_32_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.

void gdk_draw_rgb_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar rgb_buf,
gint  rowstride 
)

Definition at line 3626 of file gdkrgb.c.

References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.

static void gdk_draw_rgb_image_core ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
guchar buf,
gint  pixstride,
gint  rowstride,
GdkRgbConvFunc  conv,
GdkRgbCmap cmap,
gint  xdith,
gint  ydith 
) [static]

Definition at line 3575 of file gdkrgb.c.

References _GdkRgbInfo::bitmap, _GdkRgbInfo::cmap, gdk_color_black(), gdk_color_white(), gdk_draw_image(), gdk_gc_new(), gdk_gc_set_background(), gdk_gc_set_foreground(), gdk_rgb_alloc_scratch(), image, IMAGE_HEIGHT, image_info, IMAGE_WIDTH, MIN, NULL, and _GdkRgbInfo::own_gc.

Referenced by gdk_draw_gray_image(), gdk_draw_indexed_image(), gdk_draw_rgb_32_image(), gdk_draw_rgb_image(), and gdk_draw_rgb_image_dithalign().

void gdk_draw_rgb_image_dithalign ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar rgb_buf,
gint  rowstride,
gint  xdith,
gint  ydith 
)

Definition at line 3646 of file gdkrgb.c.

References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.

static void gdk_rgb_32_to_stage ( guchar buf,
gint  rowstride,
gint  width,
gint  height 
) [static]

Definition at line 3107 of file gdkrgb.c.

References gdk_rgb_ensure_stage(), pi, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_convert_32_generic(), and gdk_rgb_convert_32_generic_d().

static GdkImage* gdk_rgb_alloc_scratch ( gint  width,
gint  height,
gint x0,
gint y0 
) [static]

Definition at line 3513 of file gdkrgb.c.

References g_print(), gdk_rgb_alloc_scratch_image(), image, IMAGE_HEIGHT, IMAGE_WIDTH, and static_image.

Referenced by gdk_draw_rgb_image_core().

static gint gdk_rgb_alloc_scratch_image ( void   )  [static]

Definition at line 3494 of file gdkrgb.c.

References g_print(), gdk_flush(), IMAGE_HEIGHT, IMAGE_WIDTH, N_IMAGES, and static_image_idx.

Referenced by gdk_rgb_alloc_scratch().

static void gdk_rgb_choose_visual ( void   )  [static]

Definition at line 457 of file gdkrgb.c.

References best_visual, g_list_free(), gdk_list_visuals(), gdk_rgb_score_visual(), image_info, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_init().

static gint gdk_rgb_cmap_fail ( const char *  msg,
GdkColormap cmap,
gulong pixels 
) [static]

Definition at line 151 of file gdkrgb.c.

References g_print(), gdk_colors_free(), and i.

Referenced by gdk_rgb_try_colormap().

void gdk_rgb_cmap_free ( GdkRgbCmap cmap  ) 

Definition at line 3748 of file gdkrgb.c.

References g_free().

GdkRgbCmap* gdk_rgb_cmap_new ( guint32 colors,
gint  n_colors 
)

Definition at line 3723 of file gdkrgb.c.

References _GdkRgbInfo::bpp, colorcube, _GdkRgbCmap::colors, g_new, g_print(), g_return_val_if_fail, GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, i, image_info, j, _GdkRgbCmap::lut, NULL, _GdkVisual::type, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_make_gray_cmap().

static void gdk_rgb_colorcube_222 ( void   )  [static]

Definition at line 345 of file gdkrgb.c.

References _GdkRgbInfo::cmap, _GdkRgbInfo::cmap_alloced, colorcube_d, g_new, gdk_color_alloc(), gdk_colormap_get_system(), i, and image_info.

Referenced by gdk_rgb_init().

static void gdk_rgb_convert_0888 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2537 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_0888_br ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2566 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_1 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3057 of file gdkrgb.c.

References DM_HEIGHT, DM_WIDTH, and image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_32_generic ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
gint  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3132 of file gdkrgb.c.

References _GdkRgbInfo::conv, gdk_rgb_32_to_stage(), image, image_info, _GdkRgbInfo::stage_buf, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_32_generic_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
gint  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3147 of file gdkrgb.c.

References _GdkRgbInfo::conv_d, gdk_rgb_32_to_stage(), image, image_info, _GdkRgbInfo::stage_buf, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_4 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2847 of file gdkrgb.c.

References colorcube_d, DM_HEIGHT, DM_WIDTH, and image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_555 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2349 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_555_br ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2378 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_565 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 1964 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_565_br ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2168 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_565_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2203 of file gdkrgb.c.

References DM_HEIGHT, DM_WIDTH, DM_WIDTH_SHIFT, and image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_565_gray ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2082 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_8 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 701 of file gdkrgb.c.

References b, colorcube, g, image, x, and y.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_8880_br ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2595 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_888_lsb ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2437 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_888_msb ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2410 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_8_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 1829 of file gdkrgb.c.

References colorcube_d, DM_HEIGHT, DM_WIDTH, image, image_info, _GdkRgbInfo::nblue_shades, _GdkRgbInfo::ngreen_shades, and _GdkRgbInfo::nred_shades.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_8_d666 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 1792 of file gdkrgb.c.

References colorcube_d, DM_HEIGHT, DM_WIDTH, and image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_8_indexed ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 1870 of file gdkrgb.c.

References c, image, and _GdkRgbCmap::lut.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray4 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2884 of file gdkrgb.c.

References _GdkVisual::depth, image, image_info, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray4_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2963 of file gdkrgb.c.

References _GdkVisual::depth, DM_HEIGHT, DM_WIDTH, image, image_info, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray4_d_pack ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3001 of file gdkrgb.c.

References _GdkVisual::depth, DM_HEIGHT, DM_WIDTH, image, image_info, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray4_pack ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2916 of file gdkrgb.c.

References _GdkVisual::depth, image, image_info, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray8 ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 1900 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray8_gray ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 1930 of file gdkrgb.c.

References image.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray_cmap ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
gint  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3216 of file gdkrgb.c.

References _GdkRgbInfo::conv_indexed, _GdkRgbInfo::gray_cmap, image, and image_info.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray_generic ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
gint  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3188 of file gdkrgb.c.

References _GdkRgbInfo::conv, gdk_rgb_gray_to_stage(), image, image_info, _GdkRgbInfo::stage_buf, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_gray_generic_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
gint  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3201 of file gdkrgb.c.

References _GdkRgbInfo::conv_d, gdk_rgb_gray_to_stage(), image, image_info, _GdkRgbInfo::stage_buf, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_indexed_generic ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
gint  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3268 of file gdkrgb.c.

References _GdkRgbInfo::conv, gdk_rgb_indexed_to_stage(), image, image_info, _GdkRgbInfo::stage_buf, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_indexed_generic_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
gint  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 3282 of file gdkrgb.c.

References _GdkRgbInfo::conv_d, gdk_rgb_indexed_to_stage(), image, image_info, _GdkRgbInfo::stage_buf, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_truecolor_lsb ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2626 of file gdkrgb.c.

References _GdkVisual::blue_prec, _GdkVisual::blue_shift, _GdkRgbInfo::bpp, _GdkVisual::green_prec, _GdkVisual::green_shift, i, image, image_info, _GdkVisual::red_prec, _GdkVisual::red_shift, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_truecolor_lsb_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2675 of file gdkrgb.c.

References _GdkVisual::blue_prec, _GdkVisual::blue_shift, _GdkRgbInfo::bpp, DM_HEIGHT, DM_WIDTH, _GdkVisual::green_prec, _GdkVisual::green_shift, i, image, image_info, r1, _GdkVisual::red_prec, _GdkVisual::red_shift, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_truecolor_msb ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2736 of file gdkrgb.c.

References _GdkVisual::blue_prec, _GdkVisual::blue_shift, _GdkRgbInfo::bpp, _GdkVisual::green_prec, _GdkVisual::green_shift, image, image_info, _GdkVisual::red_prec, _GdkVisual::red_shift, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

static void gdk_rgb_convert_truecolor_msb_d ( GdkImage image,
gint  x0,
gint  y0,
gint  width,
gint  height,
guchar buf,
int  rowstride,
gint  x_align,
gint  y_align,
GdkRgbCmap cmap 
) [static]

Definition at line 2785 of file gdkrgb.c.

References _GdkVisual::blue_prec, _GdkVisual::blue_shift, _GdkRgbInfo::bpp, DM_HEIGHT, DM_WIDTH, _GdkVisual::green_prec, _GdkVisual::green_shift, image, image_info, r1, _GdkVisual::red_prec, _GdkVisual::red_shift, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_select_conv().

gboolean gdk_rgb_ditherable ( void   ) 

Definition at line 3774 of file gdkrgb.c.

References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, and image_info.

static gboolean gdk_rgb_do_colormaps ( void   )  [static]

Definition at line 321 of file gdkrgb.c.

References FALSE, gdk_rgb_try_colormap(), i, sizes, and TRUE.

Referenced by gdk_rgb_init().

static guchar* gdk_rgb_ensure_stage ( void   )  [static]

Definition at line 3098 of file gdkrgb.c.

References g_malloc(), IMAGE_HEIGHT, image_info, NULL, _GdkRgbInfo::stage_buf, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_32_to_stage(), gdk_rgb_gray_to_stage(), and gdk_rgb_indexed_to_stage().

void gdk_rgb_gc_set_background ( GdkGC gc,
guint32  rgb 
)

Definition at line 687 of file gdkrgb.c.

References gdk_gc_set_background(), and gdk_rgb_xpixel_from_rgb().

void gdk_rgb_gc_set_foreground ( GdkGC gc,
guint32  rgb 
)

Definition at line 679 of file gdkrgb.c.

References gdk_gc_set_foreground(), and gdk_rgb_xpixel_from_rgb().

GdkColormap* gdk_rgb_get_cmap ( void   ) 

Definition at line 3779 of file gdkrgb.c.

References _GdkRgbInfo::cmap, gdk_rgb_init(), and image_info.

GdkVisual* gdk_rgb_get_visual ( void   ) 

Definition at line 3785 of file gdkrgb.c.

References gdk_rgb_init(), image_info, and _GdkRgbInfo::visual.

static void gdk_rgb_gray_to_stage ( guchar buf,
gint  rowstride,
gint  width,
gint  height 
) [static]

Definition at line 3161 of file gdkrgb.c.

References gdk_rgb_ensure_stage(), pi, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_convert_gray_generic(), and gdk_rgb_convert_gray_generic_d().

static void gdk_rgb_indexed_to_stage ( guchar buf,
gint  rowstride,
gint  width,
gint  height,
GdkRgbCmap cmap 
) [static]

Definition at line 3241 of file gdkrgb.c.

References _GdkRgbCmap::colors, gdk_rgb_ensure_stage(), pi, and STAGE_ROWSTRIDE.

Referenced by gdk_rgb_convert_indexed_generic(), and gdk_rgb_convert_indexed_generic_d().

void gdk_rgb_init ( void   ) 

Definition at line 524 of file gdkrgb.c.

References _GdkRgbInfo::bitmap, _GdkRgbInfo::bpp, _GdkImage::bpp, _GdkRgbInfo::cmap, _GdkRgbInfo::cmap_alloced, _GdkRgbInfo::color_pixels, _GdkVisual::depth, FALSE, g_error(), g_new0, g_print(), _GdkRgbInfo::gamma, gdk_colormap_get_system(), gdk_colormap_new(), GDK_IMAGE_FASTEST, gdk_image_new(), gdk_image_new_bitmap(), gdk_rgb_choose_visual(), gdk_rgb_colorcube_222(), gdk_rgb_do_colormaps(), gdk_rgb_install_cmap, gdk_rgb_select_conv(), gdk_rgb_set_gray_cmap(), gdk_rgb_verbose, GDK_VISUAL_DIRECT_COLOR, gdk_visual_get_system(), GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, _GdkRgbInfo::gray_pixels, i, IMAGE_HEIGHT, image_info, IMAGE_WIDTH, malloc(), N_IMAGES, _GdkRgbInfo::nblue_shades, _GdkRgbInfo::ngray_shades, _GdkRgbInfo::ngreen_shades, _GdkRgbInfo::nred_shades, _GdkRgbInfo::nreserved, NULL, _GdkRgbInfo::own_gc, _GdkRgbInfo::reserved_pixels, _GdkRgbInfo::stage_buf, static_image, TRUE, _GdkVisual::type, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_get_cmap(), and gdk_rgb_get_visual().

static void gdk_rgb_make_colorcube ( gulong pixels,
gint  nr,
gint  ng,
gint  nb 
) [static]

Definition at line 170 of file gdkrgb.c.

References colorcube, g_new, g_print(), and i.

Referenced by gdk_rgb_try_colormap().

static void gdk_rgb_make_colorcube_d ( gulong pixels,
gint  nr,
gint  ng,
gint  nb 
) [static]

Definition at line 194 of file gdkrgb.c.

References b, colorcube_d, g, g_new, i, and MIN.

Referenced by gdk_rgb_try_colormap().

static void gdk_rgb_make_gray_cmap ( GdkRgbInfo info  )  [static]

Definition at line 3687 of file gdkrgb.c.

References gdk_rgb_cmap_new(), i, and info.

Referenced by gdk_draw_gray_image().

static void gdk_rgb_preprocess_dm_565 ( void   )  [static]

Definition at line 1774 of file gdkrgb.c.

References DM_HEIGHT, DM_WIDTH, g_new, g_print(), i, and NULL.

Referenced by gdk_rgb_select_conv().

static guint32 gdk_rgb_score_visual ( GdkVisual visual  )  [static]

Definition at line 397 of file gdkrgb.c.

References _GdkVisual::blue_mask, _GdkVisual::depth, ENABLE_GRAYSCALE, g_print(), gdk_rgb_verbose, GDK_VISUAL_DIRECT_COLOR, gdk_visual_get_system(), GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, GDK_VISUAL_STATIC_GRAY, GDK_VISUAL_TRUE_COLOR, _GdkVisual::green_mask, quality, _GdkVisual::red_mask, _GdkVisual::type, and visual_names.

Referenced by gdk_rgb_choose_visual().

static void gdk_rgb_select_conv ( GdkImage image  )  [static]

Definition at line 3297 of file gdkrgb.c.

References _GdkRgbInfo::bitmap, _GdkVisual::blue_mask, _GdkRgbInfo::conv, _GdkRgbInfo::conv_32, _GdkRgbInfo::conv_32_d, _GdkRgbInfo::conv_d, _GdkRgbInfo::conv_gray, _GdkRgbInfo::conv_gray_d, _GdkRgbInfo::conv_indexed, _GdkRgbInfo::conv_indexed_d, depth, _GdkVisual::depth, _GdkRgbInfo::dith_default, ENABLE_GRAYSCALE, FALSE, g_print(), GDK_LSB_FIRST, GDK_MSB_FIRST, gdk_rgb_convert_0888(), gdk_rgb_convert_0888_br(), gdk_rgb_convert_1(), gdk_rgb_convert_32_generic(), gdk_rgb_convert_32_generic_d(), gdk_rgb_convert_4(), gdk_rgb_convert_555(), gdk_rgb_convert_555_br(), gdk_rgb_convert_565(), gdk_rgb_convert_565_br(), gdk_rgb_convert_565_d(), gdk_rgb_convert_565_gray(), gdk_rgb_convert_8(), gdk_rgb_convert_8880_br(), gdk_rgb_convert_888_lsb(), gdk_rgb_convert_888_msb(), gdk_rgb_convert_8_d(), gdk_rgb_convert_8_d666(), gdk_rgb_convert_8_indexed(), gdk_rgb_convert_gray4(), gdk_rgb_convert_gray4_d(), gdk_rgb_convert_gray4_d_pack(), gdk_rgb_convert_gray4_pack(), gdk_rgb_convert_gray8(), gdk_rgb_convert_gray8_gray(), gdk_rgb_convert_gray_cmap(), gdk_rgb_convert_gray_generic(), gdk_rgb_convert_gray_generic_d(), gdk_rgb_convert_indexed_generic(), gdk_rgb_convert_indexed_generic_d(), gdk_rgb_convert_truecolor_lsb(), gdk_rgb_convert_truecolor_lsb_d(), gdk_rgb_convert_truecolor_msb(), gdk_rgb_convert_truecolor_msb_d(), gdk_rgb_preprocess_dm_565(), gdk_rgb_verbose, GDK_VISUAL_DIRECT_COLOR, GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_GRAY, GDK_VISUAL_TRUE_COLOR, _GdkVisual::green_mask, image, image_info, _GdkRgbInfo::nblue_shades, _GdkRgbInfo::ngreen_shades, _GdkRgbInfo::nred_shades, NULL, _GdkVisual::red_mask, TRUE, _GdkVisual::type, _GdkRgbInfo::visual, and visual_names.

Referenced by gdk_rgb_init().

static void gdk_rgb_set_gray_cmap ( GdkColormap cmap  )  [static]

Definition at line 486 of file gdkrgb.c.

References b, colorcube, g, g_new, g_print(), gdk_color_alloc(), and i.

Referenced by gdk_rgb_init().

void gdk_rgb_set_install ( gboolean  install  ) 

Definition at line 372 of file gdkrgb.c.

References gdk_rgb_install_cmap.

void gdk_rgb_set_min_colors ( gint  min_colors  ) 

Definition at line 377 of file gdkrgb.c.

References gdk_rgb_min_colors.

void gdk_rgb_set_verbose ( gboolean  verbose  ) 

Definition at line 367 of file gdkrgb.c.

References gdk_rgb_verbose.

static gint gdk_rgb_try_colormap ( gint  nr,
gint  ng,
gint  nb 
) [static]

Definition at line 210 of file gdkrgb.c.

References b, _GdkColor::blue, _GdkRgbInfo::cmap, _GdkRgbInfo::cmap_alloced, _GdkColormap::colors, FALSE, g, g_print(), gdk_color_alloc(), gdk_colormap_get_system(), gdk_colors_alloc(), gdk_colors_free(), gdk_rgb_cmap_fail(), gdk_rgb_install_cmap, gdk_rgb_make_colorcube(), gdk_rgb_make_colorcube_d(), gdk_rgb_min_colors, _GdkColor::green, i, if(), image_info, MIN, _GdkRgbInfo::nblue_shades, _GdkRgbInfo::ngreen_shades, _GdkRgbInfo::nred_shades, NULL, pow(), _GdkColor::red, _GdkColormap::size, sprintf(), and TRUE.

Referenced by gdk_rgb_do_colormaps().

gulong gdk_rgb_xpixel_from_rgb ( guint32  rgb  ) 

Definition at line 633 of file gdkrgb.c.

References _GdkRgbInfo::bitmap, _GdkVisual::blue_prec, _GdkVisual::blue_shift, colorcube, colorcube_d, _GdkVisual::depth, g_print(), GDK_VISUAL_DIRECT_COLOR, GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, GDK_VISUAL_STATIC_GRAY, GDK_VISUAL_TRUE_COLOR, _GdkVisual::green_prec, _GdkVisual::green_shift, image_info, _GdkVisual::red_prec, _GdkVisual::red_shift, _GdkVisual::type, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_gc_set_background(), and gdk_rgb_gc_set_foreground().


Variable Documentation

guchar* colorcube [static]

Definition at line 147 of file gdkrgb.c.

Referenced by gdk_rgb_cmap_new(), gdk_rgb_convert_8(), gdk_rgb_make_colorcube(), gdk_rgb_set_gray_cmap(), and gdk_rgb_xpixel_from_rgb().

guchar* colorcube_d [static]

Definition at line 148 of file gdkrgb.c.

Referenced by gdk_rgb_colorcube_222(), gdk_rgb_convert_4(), gdk_rgb_convert_8_d(), gdk_rgb_convert_8_d666(), gdk_rgb_make_colorcube_d(), and gdk_rgb_xpixel_from_rgb().

const guchar DM[128][128] [static]

Definition at line 806 of file gdkrgb.c.

guint32* DM_565 = NULL [static]

Definition at line 1772 of file gdkrgb.c.

gboolean gdk_rgb_install_cmap = FALSE [static]

Definition at line 134 of file gdkrgb.c.

Referenced by gdk_rgb_init(), gdk_rgb_set_install(), and gdk_rgb_try_colormap().

gint gdk_rgb_min_colors = 5 * 5 * 5 [static]

Definition at line 135 of file gdkrgb.c.

Referenced by gdk_rgb_set_min_colors(), and gdk_rgb_try_colormap().

gboolean gdk_rgb_verbose = FALSE [static]

Definition at line 136 of file gdkrgb.c.

Referenced by gdk_rgb_init(), gdk_rgb_score_visual(), gdk_rgb_select_conv(), and gdk_rgb_set_verbose().

gint horiz_idx [static]

Definition at line 3476 of file gdkrgb.c.

gint horiz_y = IMAGE_HEIGHT [static]

Definition at line 3477 of file gdkrgb.c.

GdkRgbInfo* image_info = NULL [static]

Definition at line 143 of file gdkrgb.c.

Referenced by gdk_draw_gray_image(), gdk_draw_indexed_image(), gdk_draw_rgb_32_image(), gdk_draw_rgb_image(), gdk_draw_rgb_image_core(), gdk_draw_rgb_image_dithalign(), gdk_rgb_choose_visual(), gdk_rgb_cmap_new(), gdk_rgb_colorcube_222(), gdk_rgb_convert_32_generic(), gdk_rgb_convert_32_generic_d(), gdk_rgb_convert_8_d(), gdk_rgb_convert_gray4(), gdk_rgb_convert_gray4_d(), gdk_rgb_convert_gray4_d_pack(), gdk_rgb_convert_gray4_pack(), gdk_rgb_convert_gray_cmap(), gdk_rgb_convert_gray_generic(), gdk_rgb_convert_gray_generic_d(), gdk_rgb_convert_indexed_generic(), gdk_rgb_convert_indexed_generic_d(), gdk_rgb_convert_truecolor_lsb(), gdk_rgb_convert_truecolor_lsb_d(), gdk_rgb_convert_truecolor_msb(), gdk_rgb_convert_truecolor_msb_d(), gdk_rgb_ditherable(), gdk_rgb_ensure_stage(), gdk_rgb_get_cmap(), gdk_rgb_get_visual(), gdk_rgb_init(), gdk_rgb_select_conv(), gdk_rgb_try_colormap(), and gdk_rgb_xpixel_from_rgb().

GdkImage* static_image[N_IMAGES] [static]

Definition at line 144 of file gdkrgb.c.

Referenced by gdk_rgb_alloc_scratch(), and gdk_rgb_init().

gint static_image_idx [static]

Definition at line 145 of file gdkrgb.c.

Referenced by gdk_rgb_alloc_scratch_image().

gint tile_idx [static]

Definition at line 3480 of file gdkrgb.c.

gint tile_x = IMAGE_WIDTH [static]

Definition at line 3481 of file gdkrgb.c.

Referenced by TASImage::Paint(), and tile_pixmap().

gint tile_y1 = IMAGE_HEIGHT [static]

Definition at line 3482 of file gdkrgb.c.

gint tile_y2 = IMAGE_HEIGHT [static]

Definition at line 3483 of file gdkrgb.c.

gint vert_idx [static]

Definition at line 3478 of file gdkrgb.c.

gint vert_x = IMAGE_WIDTH [static]

Definition at line 3479 of file gdkrgb.c.

const gchar* visual_names[] [static]

Initial value:

 {
   "static gray",
   "grayscale",
   "static color",
   "pseudo color",
   "true color",
   "direct color",
}

Definition at line 76 of file gdkrgb.c.

Referenced by gdk_rgb_score_visual(), and gdk_rgb_select_conv().


Generated on Tue Jul 5 15:58:41 2011 for ROOT_528-00b_version by  doxygen 1.5.1