Go to the source code of this file.
Classes | |
struct | ColorPair |
struct | ASVisual |
Defines | |
#define | ALPHA_TRANSPARENT 0x00 |
#define | ALPHA_SEMI_TRANSPARENT 0x7F |
#define | ALPHA_SOLID 0xFF |
#define | ARGB32_White 0xFFFFFFFF |
#define | ARGB32_Black 0xFF000000 |
#define | ARGB32_DEFAULT_BACK_COLOR ARGB32_Black |
#define | ARGB32_ALPHA_CHAN 3 |
#define | ARGB32_RED_CHAN 2 |
#define | ARGB32_GREEN_CHAN 1 |
#define | ARGB32_BLUE_CHAN 0 |
#define | ARGB32_CHANNELS 4 |
#define | MAKE_ARGB32(a, r, g, b) |
#define | MAKE_ARGB32_GREY8(a, l) |
#define | ARGB32_ALPHA8(c) (((c)>>24)&0x00FF) |
#define | ARGB32_RED8(c) (((c)>>16)&0x00FF) |
#define | ARGB32_GREEN8(c) (((c)>>8 )&0x00FF) |
#define | ARGB32_BLUE8(c) ( (c) &0x00FF) |
#define | ARGB32_CHAN8(c, i) (((c)>>((i)<<3))&0x00FF) |
#define | MAKE_ARGB32_CHAN8(v, i) (((v)&0x0000FF)<<((i)<<3)) |
#define | ARGB32_ALPHA16(c) ((((c)>>16)&0x00FF00)|(((c)>>24)&0x0000FF)) |
#define | ARGB32_RED16(c) ((((c)>>8 )&0x00FF00)|(((c)>>16)&0x0000FF)) |
#define | ARGB32_GREEN16(c) (( (c) &0x00FF00)|(((c)>>8 )&0x0000FF)) |
#define | ARGB32_BLUE16(c) ((((c)<<8) &0x00FF00)|(((c) )&0x0000FF)) |
#define | ARGB32_CHAN16(c, i) ((ARGB32_CHAN8(c,i)<<8)|ARGB32_CHAN8(c,i)) |
#define | MAKE_ARGB32_CHAN16(v, i) ((((v)&0x00FF00)>>8)<<((i)<<3)) |
#define | ASVISUAL_ID_ENVVAR "AFTERIMAGE_VISUAL_ID" |
#define | ASGLX_Unavailable 0 |
#define | ASGLX_Available (0x01<<0) |
#define | ASGLX_DoubleBuffer (0x01<<1) |
#define | ASGLX_RGBA (0x01<<2) |
#define | ASGLX_UseForImageTx (0x01<<3) |
#define | ARGB2PIXEL(asv, argb, pixel) (asv)->color2pixel_func((asv),(argb),(pixel)) |
#define | GET_SCANLINE(asv, xim, sl, y, xim_data) (asv)->ximage2scanline_func((asv),(xim),(sl),(y),(xim_data)) |
#define | PUT_SCANLINE(asv, xim, sl, y, xim_data) (asv)->scanline2ximage_func((asv),(xim),(sl),(y),(xim_data)) |
#define | query_screen_visual(a, d, s, r, dd) query_screen_visual_id((a),(d),(s),(r),(dd),0,0) |
#define | INPUTONLY_LEGAL_MASK |
#define | ASSHM_SAVED_MAX (256*1024) |
Typedefs | |
typedef CARD32 | ARGB32 |
Enumerations | |
enum | ColorPart |
Functions | |
long | ARGB32_manhattan_distance (long a, long b) |
CARD32 | color2pixel32bgr (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel32rgb (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel24bgr (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel24rgb (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel16bgr (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel16rgb (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel15bgr (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel15rgb (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel_pseudo3bpp (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel_pseudo6bpp (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
CARD32 | color2pixel_pseudo12bpp (ASVisual *asv, CARD32 encoded_color, unsigned long *pixel) |
void | pixel2color32rgb (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | pixel2color32bgr (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | pixel2color24rgb (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | pixel2color24bgr (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | pixel2color16rgb (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | pixel2color16bgr (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | pixel2color15rgb (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | pixel2color15bgr (ASVisual *asv, unsigned long pixel, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | ximage2scanline32 (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | ximage2scanline16 (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | ximage2scanline15 (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | ximage2scanline_pseudo3bpp (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | ximage2scanline_pseudo6bpp (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | ximage2scanline_pseudo12bpp (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | scanline2ximage32 (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | scanline2ximage16 (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | scanline2ximage15 (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | scanline2ximage_pseudo3bpp (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | scanline2ximage_pseudo6bpp (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
void | scanline2ximage_pseudo12bpp (ASVisual *asv, XImage *xim, struct ASScanline *sl, int y, register unsigned char *xim_data) |
Bool | query_screen_visual_id (ASVisual *asv, Display *dpy, int screen, Window root, int default_depth, VisualID visual_id, Colormap cmap) |
Bool | setup_truecolor_visual (ASVisual *asv) |
void | setup_pseudo_visual (ASVisual *asv) |
void | setup_as_colormap (ASVisual *asv) |
ASVisual * | create_asvisual_for_id (Display *dpy, int screen, int default_depth, VisualID visual_id, Colormap cmap, ASVisual *reusable_memory) |
ASVisual * | create_asvisual (Display *dpy, int screen, int default_depth, ASVisual *reusable_memory) |
ASVisual * | get_default_asvisual () |
void | destroy_asvisual (ASVisual *asv, Bool reusable) |
Bool | visual2visual_prop (ASVisual *asv, size_t *size, unsigned long *version, unsigned long **data) |
Bool | visual_prop2visual (ASVisual *asv, Display *dpy, int screen, size_t size, unsigned long version, unsigned long *data) |
Window | create_visual_window (ASVisual *asv, Window parent, int x, int y, unsigned int width, unsigned int height, unsigned int border_width, unsigned int wclass, unsigned long mask, XSetWindowAttributes *attributes) |
GC | create_visual_gc (ASVisual *asv, Window root, unsigned long mask, XGCValues *gcvalues) |
Pixmap | create_visual_pixmap (ASVisual *asv, Window root, unsigned int width, unsigned int height, unsigned int depth) |
void | destroy_visual_pixmap (ASVisual *asv, Pixmap *ppmap) |
int | get_dpy_drawable_size (Display *drawable_dpy, Drawable d, unsigned int *ret_w, unsigned int *ret_h) |
Bool | get_dpy_window_position (Display *window_dpy, Window root, Window w, int *px, int *py, int *transparency_x, int *transparency_y) |
XImage * | create_visual_ximage (ASVisual *asv, unsigned int width, unsigned int height, unsigned int depth) |
XImage * | create_visual_scratch_ximage (ASVisual *asv, unsigned int width, unsigned int height, unsigned int depth) |
Bool | enable_shmem_images () |
void | disable_shmem_images () |
Bool | check_shmem_images_enabled () |
void * | check_XImage_shared (XImage *xim) |
Bool | ASPutXImage (ASVisual *asv, Drawable d, GC gc, XImage *xim, int src_x, int src_y, int dest_x, int dest_y, unsigned int width, unsigned int height) |
XImage * | ASGetXImage (ASVisual *asv, Drawable d, int x, int y, unsigned int width, unsigned int height, unsigned long plane_mask) |
#define ALPHA_SEMI_TRANSPARENT 0x7F |
Definition at line 45 of file asvisual.h.
#define ALPHA_SOLID 0xFF |
Definition at line 46 of file asvisual.h.
#define ALPHA_TRANSPARENT 0x00 |
Definition at line 44 of file asvisual.h.
Definition at line 275 of file asvisual.h.
Definition at line 96 of file asvisual.h.
Definition at line 82 of file asvisual.h.
Referenced by alpha_blend_point_argb32(), apply_tool_2D_colored(), apply_tool_point_colored(), asimage2alpha_ximage(), asimage2ximage_ext(), build_xpm_colormap(), check_asimage_alpha(), convert_argb2ASImage(), convert_xpm_scanline(), copytintpad_scanline(), decode_asscanline_argb32(), decode_image_scanline_beveled(), draw_fading_bevel_sides(), draw_transp_bevel_sides(), encode_image_scanline_asim(), encode_image_scanline_xim(), fill_asimage(), fill_hline_notile_colored(), flip_asimage(), GetAverage(), handle_asxml_tag_color(), handle_asxml_tag_tile(), set_image_output_back_color(), start_image_output(), subimage2ximage(), and tile_asimage().
#define ARGB32_ALPHA_CHAN 3 |
Definition at line 69 of file asvisual.h.
#define ARGB32_Black 0xFF000000 |
Definition at line 65 of file asvisual.h.
Referenced by TASImage::DrawText(), handle_asxml_tag_background(), handle_asxml_tag_color(), handle_asxml_tag_pad(), handle_asxml_tag_text(), make_gradient_scanline(), and query_screen_visual_id().
Definition at line 99 of file asvisual.h.
Referenced by ASImage2png_int(), draw_text_internal(), handle_asxml_tag_color(), and handle_asxml_tag_hsv().
Definition at line 85 of file asvisual.h.
Referenced by ARGB32_manhattan_distance(), asimage2ximage_ext(), color2alpha_asimage(), color2pixel32bgr(), convert_argb2ASImage(), convert_xpm_scanline(), copytintpad_scanline(), encode_image_scanline_argb32(), encode_image_scanline_asim(), encode_image_scanline_xim(), fill_asimage(), flip_asimage(), GetAverage(), handle_asxml_tag_color(), handle_asxml_tag_tile(), set_image_output_back_color(), start_image_output(), subimage2ximage(), tile_asimage(), ximage2scanline_pseudo12bpp(), ximage2scanline_pseudo3bpp(), and ximage2scanline_pseudo6bpp().
#define ARGB32_BLUE_CHAN 0 |
Definition at line 72 of file asvisual.h.
Referenced by calculate_green_diff(), interpolate_from_green_diff(), and interpolate_green_diff().
Definition at line 100 of file asvisual.h.
Definition at line 86 of file asvisual.h.
Referenced by decode_asscanline_ximage(), draw_fading_bevel_sides(), draw_solid_bevel_line(), draw_transp_bevel_line(), draw_transp_bevel_sides(), get_asimage_channel_rects(), get_best_grad_back_color(), make_gradient_scanline(), and pad_asimage().
#define ARGB32_CHANNELS 4 |
Definition at line 73 of file asvisual.h.
Referenced by draw_fading_bevel_sides(), draw_solid_bevel_line(), draw_transp_bevel_line(), and draw_transp_bevel_sides().
#define ARGB32_DEFAULT_BACK_COLOR ARGB32_Black |
Definition at line 67 of file asvisual.h.
Referenced by asimage_init(), create_asimage_from_vector(), make_gradient_top2bottom(), merge_layers(), prepare_scanline(), and start_image_decoding().
Definition at line 98 of file asvisual.h.
Referenced by ASImage2png_int(), draw_text_internal(), handle_asxml_tag_color(), and handle_asxml_tag_hsv().
Definition at line 84 of file asvisual.h.
Referenced by ARGB32_manhattan_distance(), asimage2ximage_ext(), color2alpha_asimage(), color2pixel32bgr(), convert_argb2ASImage(), convert_xpm_scanline(), copytintpad_scanline(), encode_image_scanline_argb32(), encode_image_scanline_asim(), encode_image_scanline_xim(), fill_asimage(), flip_asimage(), GetAverage(), handle_asxml_tag_color(), handle_asxml_tag_tile(), set_image_output_back_color(), start_image_output(), subimage2ximage(), tile_asimage(), ximage2scanline_pseudo12bpp(), ximage2scanline_pseudo3bpp(), and ximage2scanline_pseudo6bpp().
#define ARGB32_GREEN_CHAN 1 |
Definition at line 71 of file asvisual.h.
Definition at line 97 of file asvisual.h.
Referenced by ASImage2png_int(), draw_text_internal(), handle_asxml_tag_color(), and handle_asxml_tag_hsv().
Definition at line 83 of file asvisual.h.
Referenced by ARGB32_manhattan_distance(), asimage2ximage_ext(), color2alpha_asimage(), color2pixel32bgr(), convert_argb2ASImage(), convert_xpm_scanline(), copytintpad_scanline(), decode_asscanline_argb32(), encode_image_scanline_argb32(), encode_image_scanline_asim(), encode_image_scanline_xim(), fill_asimage(), flip_asimage(), GetAverage(), handle_asxml_tag_color(), handle_asxml_tag_tile(), load_gauss_scanline(), set_image_output_back_color(), start_image_output(), subimage2ximage(), tile_asimage(), ximage2scanline_pseudo12bpp(), ximage2scanline_pseudo3bpp(), and ximage2scanline_pseudo6bpp().
#define ARGB32_RED_CHAN 2 |
#define ARGB32_White 0xFFFFFFFF |
Definition at line 64 of file asvisual.h.
Referenced by TASImage::Blur(), draw_fancy_text(), draw_text(), draw_unicode_text(), draw_utf8_text(), TASImage::FillRectangle(), handle_asxml_tag_solid(), handle_asxml_tag_text(), TASImage::HSV(), TASImage::Pad(), query_screen_visual_id(), and TASImage::Vectorize().
#define ASGLX_Available (0x01<<0) |
Definition at line 263 of file asvisual.h.
Referenced by asimage2drawable_gl(), and setup_truecolor_visual().
#define ASGLX_DoubleBuffer (0x01<<1) |
Definition at line 264 of file asvisual.h.
Referenced by asimage2drawable_gl(), and setup_truecolor_visual().
#define ASGLX_RGBA (0x01<<2) |
Definition at line 265 of file asvisual.h.
Referenced by asimage2drawable_gl(), and setup_truecolor_visual().
#define ASGLX_Unavailable 0 |
Definition at line 262 of file asvisual.h.
#define ASGLX_UseForImageTx (0x01<<3) |
#define ASSHM_SAVED_MAX (256*1024) |
Definition at line 655 of file asvisual.h.
#define ASVISUAL_ID_ENVVAR "AFTERIMAGE_VISUAL_ID" |
#define GET_SCANLINE | ( | asv, | |||
xim, | |||||
sl, | |||||
y, | |||||
xim_data | ) | (asv)->ximage2scanline_func((asv),(xim),(sl),(y),(xim_data)) |
Definition at line 277 of file asvisual.h.
Referenced by decode_asscanline_ximage(), and picture_ximage2asimage().
#define INPUTONLY_LEGAL_MASK |
Value:
(CWWinGravity | CWEventMask | \ CWDontPropagate | CWOverrideRedirect | \ CWCursor )
Definition at line 541 of file asvisual.h.
Referenced by create_visual_window().
Value:
((( (CARD32)a) <<24)| \ ((((CARD32)r)&0x00FF)<<16)| \ ((((CARD32)g)&0x00FF)<<8 )| \ (( (CARD32)b)&0x00FF))
Definition at line 75 of file asvisual.h.
Referenced by encode_image_scanline_argb32(), flip_asimage(), GetAverage(), handle_asxml_tag_tile(), make_reverse_colorhash(), make_reverse_colormap(), read_xcf_channels(), and shading2tint32().
#define MAKE_ARGB32_GREY8 | ( | a, | |||
l | ) |
Definition at line 405 of file asvisual.h.
typedef CARD32 ARGB32 |
Definition at line 63 of file asvisual.h.
enum ColorPart |
Definition at line 125 of file asvisual.h.
Definition at line 97 of file asvisual.c.
References ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, d, int, and t.
XImage* ASGetXImage | ( | ASVisual * | asv, | |
Drawable | d, | |||
int | x, | |||
int | y, | |||
unsigned int | width, | |||
unsigned int | height, | |||
unsigned long | plane_mask | |||
) |
Definition at line 1504 of file asvisual.c.
References ASVisual::dpy, None, and NULL.
Referenced by picture2asimage(), and pixmap2ximage().
Bool ASPutXImage | ( | ASVisual * | asv, | |
Drawable | d, | |||
GC | gc, | |||
XImage * | xim, | |||
int | src_x, | |||
int | src_y, | |||
int | dest_x, | |||
int | dest_y, | |||
unsigned int | width, | |||
unsigned int | height | |||
) |
Definition at line 1491 of file asvisual.c.
References ASVisual::dpy, False, and NULL.
Referenced by asimage2alpha(), and put_ximage().
Bool check_shmem_images_enabled | ( | ) |
void* check_XImage_shared | ( | XImage * | xim | ) |
Definition at line 1742 of file asvisual.c.
Definition at line 1747 of file asvisual.c.
Definition at line 1732 of file asvisual.c.
References ARGB32_BLUE8, ARGB32_GREEN8, and ARGB32_RED8.
Referenced by setup_truecolor_visual().
Definition at line 1791 of file asvisual.c.
References ASVisual::as_colormap, and c.
Referenced by setup_pseudo_visual().
Definition at line 1777 of file asvisual.c.
References ASVisual::as_colormap, and c.
Referenced by setup_pseudo_visual().
Definition at line 1784 of file asvisual.c.
References ASVisual::as_colormap, and c.
Referenced by setup_pseudo_visual().
ASVisual* create_asvisual | ( | Display * | dpy, | |
int | screen, | |||
int | default_depth, | |||
ASVisual * | reusable_memory | |||
) |
Definition at line 369 of file asvisual.c.
References ASVISUAL_ID_ENVVAR, create_asvisual_for_id(), getenv(), None, NULL, and strtol().
Referenced by TASImage::InitVisual(), and WinMain().
ASVisual* create_asvisual_for_id | ( | Display * | dpy, | |
int | screen, | |||
int | default_depth, | |||
VisualID | visual_id, | |||
Colormap | cmap, | |||
ASVisual * | reusable_memory | |||
) |
Definition at line 335 of file asvisual.c.
References _set_default_asvisual(), free(), None, NULL, query_screen_visual_id(), root, safecalloc, setup_as_colormap(), setup_pseudo_visual(), and setup_truecolor_visual().
Referenced by create_asvisual(), and TASImage::InitVisual().
Definition at line 980 of file asvisual.c.
References create_visual_window(), ASVisual::dpy, None, NULL, and ASVisual::scratch_window.
Pixmap create_visual_pixmap | ( | ASVisual * | asv, | |
Window | root, | |||
unsigned int | width, | |||
unsigned int | height, | |||
unsigned int | depth | |||
) |
Definition at line 998 of file asvisual.c.
References ASVisual::dpy, MAX, None, NULL, p, and ASVisual::true_depth.
Referenced by asimage2alpha(), asimage2pixmap(), fill_with_darkened_background(), and fill_with_pixmapped_background().
XImage* create_visual_scratch_ximage | ( | ASVisual * | asv, | |
unsigned int | width, | |||
unsigned int | height, | |||
unsigned int | depth | |||
) |
Definition at line 1618 of file asvisual.c.
References _XInitImageFuncPtrs(), create_visual_ximage(), data, ASVisual::dpy, get_scratch_data(), MAX, My_XDestroyImage(), NULL, ASVisual::true_depth, and unit.
Referenced by create_image_xim().
Window create_visual_window | ( | ASVisual * | asv, | |
Window | parent, | |||
int | x, | |||
int | y, | |||
unsigned int | width, | |||
unsigned int | height, | |||
unsigned int | border_width, | |||
unsigned int | wclass, | |||
unsigned long | mask, | |||
XSetWindowAttributes * | attributes | |||
) |
Definition at line 906 of file asvisual.c.
References ASVisual::black_pixel, clear_flags, ASVisual::colormap, depth, ASVisual::dpy, get_flags, INPUTONLY_LEGAL_MASK, LOCAL_DEBUG_OUT, None, NULL, set_flags, show_warning, and ASVisual::visual_info.
Referenced by create_visual_gc(), and cut_pixmap().
XImage* create_visual_ximage | ( | ASVisual * | asv, | |
unsigned int | width, | |||
unsigned int | height, | |||
unsigned int | depth | |||
) |
Definition at line 1535 of file asvisual.c.
References _XInitImageFuncPtrs(), data, ASVisual::dpy, False, free(), MAX, My_XDestroyImage(), NULL, safecalloc, safemalloc, show_error, show_warning, ASVisual::true_depth, unit, and ASVisual::visual_info.
Referenced by create_image_xim(), and create_visual_scratch_ximage().
Definition at line 382 of file asvisual.c.
References _set_default_asvisual(), ASVisual::as_colormap, ASVisual::as_colormap_reverse, ASVisual::as_colormap_type, ASVisual::colormap, destroy_ashash, ASVisual::dpy, free(), get_default_asvisual(), ASVisual::glx_scratch_gc_direct, ASVisual::glx_scratch_gc_indirect, glXDestroyContext(), ASVisual::hash, NULL, ASVisual::own_colormap, ASVisual::scratch_window, and ASVisual::xref.
Referenced by TASImage::InitVisual().
void destroy_visual_pixmap | ( | ASVisual * | asv, | |
Pixmap * | ppmap | |||
) |
void disable_shmem_images | ( | ) |
Definition at line 1488 of file asvisual.c.
Bool enable_shmem_images | ( | ) |
ASVisual* get_default_asvisual | ( | ) |
Definition at line 87 of file asimage.c.
References __as_default_asvisual, and __as_dummy_asvisual.
Referenced by asim_asxml_var_init(), asim_get_drawable_size(), asim_parse_argb_color(), ASImage2bmp(), center_pixmap(), CenterPixmap(), check_asimage_alpha(), CopyAndShadeArea(), copyshade_drawable_area(), cut_pixmap(), CutPixmap(), CutWinPixmap(), destroy_asvisual(), fill_with_darkened_background(), FillPixmapWithTile(), GetRootDimensions(), GetRootPixmap(), GetWinPosition(), grow_pixmap(), GrowPixmap(), ScalePixmap(), ShadePixmap(), ShadeTiledPixmap(), start_image_decoding(), start_image_output(), and ValidatePixmap().
int get_dpy_drawable_size | ( | Display * | drawable_dpy, | |
Drawable | d, | |||
unsigned int * | ret_w, | |||
unsigned int * | ret_h | |||
) |
Definition at line 1039 of file asvisual.c.
References Display(), int, None, NULL, quiet_xerror_handler(), result(), and root.
Referenced by get_dpy_window_position(), and handle_asxml_tag_img().
Bool get_dpy_window_position | ( | Display * | window_dpy, | |
Window | root, | |||
Window | w, | |||
int * | px, | |||
int * | py, | |||
int * | transparency_x, | |||
int * | transparency_y | |||
) |
Definition at line 1063 of file asvisual.c.
References False, get_dpy_drawable_size(), height, None, NULL, result(), width, x, and y.
Referenced by cut_win_pixmap(), CutWinPixmap(), and GetWinPosition().
void pixel2color24bgr | ( | ASVisual * | asv, | |
unsigned long | pixel, | |||
CARD32 * | red, | |||
CARD32 * | green, | |||
CARD32 * | blue | |||
) |
Definition at line 1804 of file asvisual.c.
void pixel2color24rgb | ( | ASVisual * | asv, | |
unsigned long | pixel, | |||
CARD32 * | red, | |||
CARD32 * | green, | |||
CARD32 * | blue | |||
) |
Definition at line 1802 of file asvisual.c.
Bool query_screen_visual_id | ( | ASVisual * | asv, | |
Display * | dpy, | |||
int | screen, | |||
Window | root, | |||
int | default_depth, | |||
VisualID | visual_id, | |||
Colormap | cmap | |||
) |
Definition at line 199 of file asvisual.c.
References ARGB32_Black, ARGB32_White, ASV_ALLOC_COLOR, ASVisual::black_pixel, black_xcol, ASVisual::colormap, ASVisual::dpy, False, find_useable_visual(), fprintf(), get_output_threshold, i, list, mask, MSBFirst, NULL, OUTPUT_VERBOSE_THRESHOLD, ASVisual::own_colormap, show_error, True, ASVisual::visual_info, ASVisual::white_pixel, and white_xcol.
Referenced by create_asvisual_for_id().
void scanline2ximage15 | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 2099 of file asvisual.c.
References b, c, ENCODE_LSBF_555, ENCODE_MSBF_555, g, i, MIN, ASVisual::msb_first, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by encode_image_scanline_xim(), and setup_truecolor_visual().
void scanline2ximage16 | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 2041 of file asvisual.c.
References b, c, ENCODE_LSBF_565, ENCODE_MSBF_565, g, i, MIN, ASVisual::msb_first, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by encode_image_scanline_xim(), and setup_truecolor_visual().
void scanline2ximage32 | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 2010 of file asvisual.c.
References a, ASScanline::alpha, b, g, i, MIN, ASVisual::msb_first, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by encode_image_scanline_xim(), and setup_truecolor_visual().
void scanline2ximage_pseudo12bpp | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 2245 of file asvisual.c.
References ASVisual::as_colormap, b, c, g, i, MIN, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by setup_pseudo_visual().
void scanline2ximage_pseudo3bpp | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 2161 of file asvisual.c.
References ASVisual::as_colormap, b, c, g, i, MIN, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by setup_pseudo_visual().
void scanline2ximage_pseudo6bpp | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 2190 of file asvisual.c.
References ASVisual::as_colormap, b, c, g, i, MIN, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by setup_pseudo_visual().
void setup_as_colormap | ( | ASVisual * | asv | ) |
Definition at line 865 of file asvisual.c.
References ASVisual::as_colormap, ASVisual::as_colormap_reverse, ASVisual::as_colormap_type, free(), ASVisual::hash, make_12bpp_colormap(), make_3bpp_colormap(), make_6bpp_colormap(), make_9bpp_colormap(), make_reverse_colorhash(), make_reverse_colormap(), NULL, ASVisual::true_depth, and ASVisual::xref.
Referenced by create_asvisual_for_id().
void setup_pseudo_visual | ( | ASVisual * | asv | ) |
Definition at line 651 of file asvisual.c.
References ASVisual::as_colormap, ASVisual::as_colormap_reverse, ASVisual::as_colormap_type, as_colormap_type2size(), ASVisual::color2pixel_func, color2pixel_pseudo12bpp(), color2pixel_pseudo3bpp(), color2pixel_pseudo6bpp(), ASVisual::hash, make_reverse_colorhash(), make_reverse_colormap(), mask, NULL, ASVisual::scanline2ximage_func, scanline2ximage_pseudo12bpp(), scanline2ximage_pseudo3bpp(), scanline2ximage_pseudo6bpp(), ASVisual::true_depth, ASVisual::visual_info, ASVisual::ximage2scanline_func, ximage2scanline_pseudo12bpp(), ximage2scanline_pseudo3bpp(), ximage2scanline_pseudo6bpp(), and ASVisual::xref.
Referenced by create_asvisual_for_id().
Definition at line 537 of file asvisual.c.
References ASGLX_Available, ASGLX_DoubleBuffer, ASGLX_RGBA, ASGLX_UseForImageTx, ASVisual::bbits, ASVisual::BGR_mode, ASVisual::bshift, color2pixel15bgr(), color2pixel15rgb(), color2pixel16bgr(), color2pixel16rgb(), color2pixel32bgr(), color2pixel32rgb(), ASVisual::color2pixel_func, ASVisual::dpy, False, ASVisual::gbits, get_bits(), get_shifts(), GLX_DOUBLEBUFFER, GLX_RGBA, ASVisual::glx_scratch_gc_direct, ASVisual::glx_scratch_gc_indirect, ASVisual::glx_support, GLX_USE_GL, glXCreateContext(), glXDestroyContext(), glXGetConfig(), glXIsDirect(), glXQueryExtension(), ASVisual::gshift, ASVisual::msb_first, MSBFirst, NULL, pixel2color15bgr(), pixel2color15rgb(), pixel2color16bgr(), pixel2color16rgb(), pixel2color32bgr(), pixel2color32rgb(), ASVisual::pixel2color_func, ASVisual::rbits, ASVisual::rshift, scanline2ximage15(), scanline2ximage16(), scanline2ximage32(), ASVisual::scanline2ximage_func, set_flags, True, ASVisual::true_depth, val, ASVisual::visual_info, ximage2scanline15(), ximage2scanline16(), ximage2scanline32(), and ASVisual::ximage2scanline_func.
Referenced by create_asvisual_for_id().
Bool visual2visual_prop | ( | ASVisual * | asv, | |
size_t * | size, | |||
unsigned long * | version, | |||
unsigned long ** | data | |||
) |
Definition at line 436 of file asvisual.c.
References ASVisual::as_colormap, ASVisual::as_colormap_type, as_colormap_type2size(), ASVisual::black_pixel, ASVisual::colormap, False, i, NULL, safemalloc, size, size_t, True, ASVisual::visual_info, and ASVisual::white_pixel.
Bool visual_prop2visual | ( | ASVisual * | asv, | |
Display * | dpy, | |||
int | screen, | |||
size_t | size, | |||
unsigned long | version, | |||
unsigned long * | data | |||
) |
Definition at line 475 of file asvisual.c.
References ASVisual::as_colormap, ASVisual::as_colormap_type, as_colormap_type2size(), ASVisual::black_pixel, ASVisual::colormap, ASVisual::dpy, False, free(), i, list, None, NULL, ASVisual::own_colormap, safemalloc, True, ASVisual::visual_info, and ASVisual::white_pixel.
void ximage2scanline15 | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 1878 of file asvisual.c.
References b, g, i, MIN, ASVisual::msb_first, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by setup_truecolor_visual().
void ximage2scanline16 | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 1851 of file asvisual.c.
References b, g, i, MIN, ASVisual::msb_first, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by setup_truecolor_visual().
void ximage2scanline32 | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 1815 of file asvisual.c.
References a, ASScanline::alpha, b, g, i, MIN, ASVisual::msb_first, ASScanline::offset_x, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by setup_truecolor_visual().
void ximage2scanline_pseudo12bpp | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 1968 of file asvisual.c.
References ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, ASVisual::as_colormap_reverse, AS_HASHABLE, ASH_Success, b, c, ASHashData::c32, g, get_hash_item, ASVisual::hash, i, MIN, ASScanline::offset_x, query_pixel_color(), ASHashData::vptr, ASScanline::width, ASScanline::xc1, ASScanline::xc2, and ASScanline::xc3.
Referenced by setup_pseudo_visual().
void ximage2scanline_pseudo3bpp | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 1908 of file asvisual.c.
References ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, ASVisual::as_colormap_reverse, b, c, g, i, MIN, ASScanline::offset_x, query_pixel_color(), ASScanline::width, ASScanline::xc1, ASScanline::xc2, ASScanline::xc3, and ASVisual::xref.
Referenced by setup_pseudo_visual().
void ximage2scanline_pseudo6bpp | ( | ASVisual * | asv, | |
XImage * | xim, | |||
struct ASScanline * | sl, | |||
int | y, | |||
register unsigned char * | xim_data | |||
) |
Definition at line 1930 of file asvisual.c.
References ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, ASVisual::as_colormap_reverse, b, c, g, i, MIN, ASScanline::offset_x, query_pixel_color(), ASScanline::width, ASScanline::xc1, ASScanline::xc2, ASScanline::xc3, and ASVisual::xref.
Referenced by setup_pseudo_visual().