#include "asvisual.h"
#include "blender.h"
#include "asstorage.h"
Go to the source code of this file.
Classes | |
struct | ASImage |
struct | ASImage::ASImageAlternative |
struct | ASImageManager |
struct | ASVectorPalette |
struct | ASImageLayer |
struct | ASGradient |
Defines | |
#define | ASIMAGE_PATH_ENVVAR "IMAGE_PATH" |
#define | ASFONT_PATH_ENVVAR "FONT_PATH" |
#define | MAGIC_ASIMAGE 0xA3A314AE |
#define | ASIM_DATA_NOT_USEFUL (0x01<<0) |
#define | ASIM_VECTOR_TOP2BOTTOM (0x01<<1) |
#define | ASIM_XIMAGE_8BIT_MASK (0x01<<2) |
#define | ASIM_NO_COMPRESSION (0x01<<3) |
#define | ASIM_ALPHA_IS_BITMAP (0x01<<4) |
#define | ASIM_RGB_IS_BITMAP (0x01<<5) |
#define | ASIM_XIMAGE_NOT_USEFUL (0x01<<6) |
#define | ASIM_NAME_IS_FILENAME (0x01<<7) |
#define | MAX_IMPORT_IMAGE_SIZE 8000 |
#define | MAX_BEVEL_OUTLINE 100 |
#define | MAX_SEARCH_PATHS 8 |
#define | GRADIENT_TYPE_DIAG (0x01<<0) |
#define | GRADIENT_TYPE_ORIENTATION (0x01<<1) |
#define | GRADIENT_TYPE_MASK |
#define | GRADIENT_Left2Right 0 |
#define | GRADIENT_TopLeft2BottomRight GRADIENT_TYPE_DIAG |
#define | GRADIENT_Top2Bottom GRADIENT_TYPE_ORIENTATION |
#define | GRADIENT_BottomLeft2TopRight |
#define | FLIP_VERTICAL (0x01<<0) |
#define | FLIP_UPSIDEDOWN (0x01<<1) |
#define | FLIP_MASK (FLIP_UPSIDEDOWN|FLIP_VERTICAL) |
#define | TINT_NONE 0 |
#define | TINT_LEAVE_SAME (0x7F7F7F7F) |
#define | TINT_HALF_DARKER (0x3F3F3F3F) |
#define | TINT_HALF_BRIGHTER (0xCFCFCFCF) |
#define | TINT_RED (0x7F7F0000) |
#define | TINT_GREEN (0x7F007F00) |
#define | TINT_BLUE (0x7F00007F) |
#define | ASIM_COMPRESSION_NONE 0 |
#define | ASIM_COMPRESSION_FULL 100 |
#define | VRB_LINE_SUMMARY (0x01<<0) |
#define | VRB_LINE_CONTENT (0x01<<1) |
#define | VRB_CTRL_EXPLAIN (0x01<<2) |
#define | VRB_EVERYTHING |
#define | print_asimage_ptr (ptr) print_asimage_func(AS_HASHABLE(ptr)) |
#define | ENCODE_SCANLINE(im, src, y) |
#define | SCANLINE_FUNC(f, src, dst, scales, len) |
#define | SCANLINE_FUNC_FILTERED(f, src, dst, scales, len) |
#define | CHOOSE_SCANLINE_FUNC(r, src, dst, scales, len) |
#define | SCANLINE_MOD(f, src, p, len) |
#define | SCANLINE_MOD_FILTERED(f, src, p, len) |
#define | SCANLINE_COMBINE_slow(f, c1, c2, c3, c4, o1, o2, p, len) |
#define | SCANLINE_COMBINE(f, c1, c2, c3, c4, o1, o2, p, len) |
#define | QUANT_ERR_BITS 8 |
#define | QUANT_ERR_MASK 0x000000FF |
Enumerations | |
enum | ASAltImFormats |
Functions | |
void | asimage_init (ASImage *im, Bool free_resources) |
void | flush_asimage_cache (ASImage *im) |
void | asimage_start (ASImage *im, unsigned int width, unsigned int height, unsigned int compression) |
ASImage * | create_asimage (unsigned int width, unsigned int height, unsigned int compression) |
ASImage * | create_static_asimage (unsigned int width, unsigned int height, unsigned int compression) |
ASImage * | clone_asimage (ASImage *src, ASFlagType filter) |
void | destroy_asimage (ASImage **im) |
Bool | asimage_replace (ASImage *im, ASImage *from) |
Bool | set_asimage_vector (ASImage *im, register double *vector) |
ASVectorPalette * | vectorize_asimage (ASImage *im, unsigned int max_colors, unsigned int dither, int opaque_threshold) |
ASImageManager * | create_image_manager (struct ASImageManager *reusable_memory, double gamma,...) |
void | destroy_image_manager (struct ASImageManager *imman, Bool reusable) |
Bool | store_asimage (ASImageManager *imageman, ASImage *im, const char *name) |
void | relocate_asimage (ASImageManager *to_imageman, ASImage *im) |
ASImage * | fetch_asimage (ASImageManager *imageman, const char *name) |
ASImage * | query_asimage (ASImageManager *imageman, const char *name) |
ASImage * | dup_asimage (ASImage *im) |
int | release_asimage (ASImage *im) |
int | release_asimage_by_name (ASImageManager *imman, char *name) |
void | forget_asimage (ASImage *im) |
void | forget_asimage_name (ASImageManager *imman, const char *name) |
int | safe_asimage_destroy (ASImage *im) |
void | print_asimage_manager (ASImageManager *imageman) |
void | destroy_asgradient (ASGradient **pgrad) |
ASGradient * | flip_gradient (ASGradient *orig, int flip) |
void | init_image_layers (register ASImageLayer *l, int count) |
ASImageLayer * | create_image_layers (int count) |
void | destroy_image_layers (register ASImageLayer *l, int count, Bool reusable) |
size_t | asimage_add_line (ASImage *im, ColorPart color, CARD32 *data, unsigned int y) |
size_t | asimage_add_line_mono (ASImage *im, ColorPart color, CARD8 value, unsigned int y) |
size_t | asimage_add_line_bgra (ASImage *im, register CARD32 *data, unsigned int y) |
ASFlagType | get_asimage_chanmask (ASImage *im) |
int | check_asimage_alpha (ASVisual *asv, ASImage *im) |
int | asimage_decode_line (ASImage *im, ColorPart color, CARD32 *to_buf, unsigned int y, unsigned int skip, unsigned int out_width) |
void | move_asimage_channel (ASImage *dst, int channel_dst, ASImage *src, int channel_src) |
void | copy_asimage_channel (ASImage *dst, int channel_dst, ASImage *src, int channel_src) |
void | copy_asimage_lines (ASImage *dst, unsigned int offset_dst, ASImage *src, unsigned int offset_src, unsigned int nlines, ASFlagType filter) |
unsigned int | asimage_print_line (ASImage *im, ColorPart color, unsigned int y, unsigned long verbosity) |
void | print_asimage (ASImage *im, int flags, char *func, int line) |
void | print_asimage_func (ASHashableValue value) |
void | print_asimage_registry () |
void | purge_asimage_registry () |
void | copy_component (register CARD32 *src, register CARD32 *dst, int *unused, int len) |
XRectangle * | get_asimage_channel_rects (ASImage *src, int channel, unsigned int threshold, unsigned int *rects_count_ret) |
void | raw2scanline (register CARD8 *row, struct ASScanline *buf, CARD8 *gamma_table, unsigned int width, Bool grayscale, Bool do_alpha) |
Variables | |
Bool | asimage_use_mmx |
#define ASFONT_PATH_ENVVAR "FONT_PATH" |
#define ASIM_DATA_NOT_USEFUL (0x01<<0) |
Definition at line 176 of file asimage.h.
Referenced by clone_asimage(), create_destination_image(), encode_image_scanline_xim(), pixmap2ximage(), and start_image_decoding().
#define ASIM_NAME_IS_FILENAME (0x01<<7) |
Definition at line 185 of file asimage.h.
Referenced by asimage_replace(), get_asimage(), and reload_asimage_manager().
#define ASIM_NO_COMPRESSION (0x01<<3) |
Definition at line 179 of file asimage.h.
Referenced by asimage_replace(), asimage_start(), and check_created_asimage().
#define ASIM_VECTOR_TOP2BOTTOM (0x01<<1) |
#define ASIM_XIMAGE_8BIT_MASK (0x01<<2) |
Definition at line 178 of file asimage.h.
Referenced by asimage2alpha_ximage(), create_image_xim(), and picture2asimage().
#define ASIM_XIMAGE_NOT_USEFUL (0x01<<6) |
Definition at line 184 of file asimage.h.
Referenced by asimage2ximage_ext(), and start_image_decoding().
#define ASIMAGE_PATH_ENVVAR "IMAGE_PATH" |
Value:
switch(r) \ { case 0: SCANLINE_FUNC(shrink_component11,(src),(dst),(scales),(len));break; \ case 1: SCANLINE_FUNC(shrink_component, (src),(dst),(scales),(len)); break; \ case 2: SCANLINE_FUNC(enlarge_component_dumb,(src),(dst),(scales),(len));break ;\ case 3: SCANLINE_FUNC(enlarge_component12,(src),(dst),(scales),(len));break ; \ case 4: SCANLINE_FUNC(enlarge_component23,(src),(dst),(scales),(len));break; \ default:SCANLINE_FUNC(enlarge_component, (src),(dst),(scales),(len)); \ }
Definition at line 1037 of file asimage.h.
Referenced by scale_image_down(), scale_image_up(), and scale_image_up_dumb().
Value:
do{ asimage_add_line((im), IC_RED, (src).red, (y)); \ asimage_add_line((im), IC_GREEN, (src).green, (y)); \ asimage_add_line((im), IC_BLUE, (src).blue, (y)); \ if( get_flags((src).flags,SCL_DO_ALPHA))asimage_add_line((im), IC_ALPHA, (src).alpha, (y)); \ }while(0)
#define FLIP_MASK (FLIP_UPSIDEDOWN|FLIP_VERTICAL) |
#define FLIP_UPSIDEDOWN (0x01<<1) |
Definition at line 403 of file asimage.h.
Referenced by flip_asimage(), flip_gradient(), and handle_asxml_tag_rotate().
#define FLIP_VERTICAL (0x01<<0) |
Definition at line 402 of file asimage.h.
Referenced by flip_asimage(), flip_gradient(), and handle_asxml_tag_rotate().
#define GRADIENT_BottomLeft2TopRight |
Value:
Definition at line 359 of file asimage.h.
Referenced by flip_gradient(), TASImage::Gradient(), handle_asxml_tag_gradient(), and make_gradient().
#define GRADIENT_Left2Right 0 |
Definition at line 356 of file asimage.h.
Referenced by flip_gradient(), TASImage::Gradient(), handle_asxml_tag_gradient(), make_gradient(), and TASPaletteEditor::PaintPalette::Paint().
#define GRADIENT_Top2Bottom GRADIENT_TYPE_ORIENTATION |
Definition at line 358 of file asimage.h.
Referenced by flip_gradient(), TASImage::Gradient(), handle_asxml_tag_gradient(), make_gradient(), and TASImage::Paint().
#define GRADIENT_TopLeft2BottomRight GRADIENT_TYPE_DIAG |
Definition at line 357 of file asimage.h.
Referenced by flip_gradient(), TASImage::Gradient(), handle_asxml_tag_gradient(), and make_gradient().
#define GRADIENT_TYPE_DIAG (0x01<<0) |
#define GRADIENT_TYPE_MASK |
#define GRADIENT_TYPE_ORIENTATION (0x01<<1) |
#define MAGIC_ASIMAGE 0xA3A314AE |
Definition at line 124 of file asimage.h.
Referenced by asimage_destroy(), asimage_init(), asimage_replace(), dup_asimage(), forget_asimage(), print_asimage_func(), query_asimage(), release_asimage(), relocate_asimage(), safe_asimage_destroy(), start_image_decoding(), start_image_output(), and store_asimage().
#define MAX_BEVEL_OUTLINE 100 |
#define MAX_IMPORT_IMAGE_SIZE 8000 |
Definition at line 204 of file asimage.h.
Referenced by gif2ASImage(), open_xpm_data(), open_xpm_file(), open_xpm_raw_data(), ppm2ASImage(), read_bmp_image(), tga2ASImage(), and tiff2ASImage().
#define MAX_SEARCH_PATHS 8 |
Definition at line 206 of file asimage.h.
Referenced by compose_asimage_xml_from_doc(), create_image_manager(), destroy_image_manager(), and file2ASImage().
#define QUANT_ERR_BITS 8 |
Definition at line 1076 of file asimage.h.
Referenced by best_output_filter(), colorize_asimage_vector(), fast_output_filter(), fine_output_filter(), fine_output_filter_mod(), make_gradient(), make_gradient_diag_height(), make_gradient_top2bottom(), merge_layers(), scale_asimage(), scale_asimage2(), scale_image_down(), scale_image_up(), scale_image_up_dumb(), and vectorize_asimage().
#define QUANT_ERR_MASK 0x000000FF |
Definition at line 1077 of file asimage.h.
Referenced by best_output_filter(), fine_output_filter(), and fine_output_filter_mod().
Value:
do{ f((c1).red,(c2).red,(c3).red,(c4).red,(o1).red,(o2).red,(p),(len)); \ f((c1).green,(c2).green,(c3).green,(c4).green,(o1).green,(o2).green,(p),(len)); \ f((c1).blue,(c2).blue,(c3).blue,(c4).blue,(o1).blue,(o2).blue,(p),(len)); \ if(get_flags((c1).flags,SCL_DO_ALPHA)) f((c1).alpha,(c2).alpha,(c3).alpha,(c4).alpha,(o1).alpha,(o2).alpha,(p),(len)); \ }while(0)
Value:
do{ if( (src).offset_x > 0 || (dst).offset_x > 0 ) \ LOCAL_DEBUG_OUT( "(src).offset_x = %d. (dst).offset_x = %d", (src).offset_x, (dst).offset_x ); \ f((src).red+(src).offset_x, (dst).red+(dst).offset_x, (scales),(len)); \ f((src).green+(src).offset_x,(dst).green+(dst).offset_x,(scales),(len)); \ f((src).blue+(src).offset_x, (dst).blue+(dst).offset_x, (scales),(len)); \ if(get_flags((src).flags,SCL_DO_ALPHA)) f((src).alpha+(src).offset_x,(dst).alpha+(dst).offset_x,(scales),(len)); \ }while(0)
Definition at line 1019 of file asimage.h.
Referenced by mirror_asimage(), scale_image_down(), and scale_image_up().
Value:
do{ if( (src).offset_x > 0 || (dst).offset_x > 0 ) \ LOCAL_DEBUG_OUT( "(src).offset_x = %d. (dst).offset_x = %d", (src).offset_x, (dst).offset_x ); \ if(get_flags((src).flags,SCL_DO_RED)) f((src).red+(src).offset_x, (dst).red+(dst).offset_x, (scales),(len)); \ if(get_flags((src).flags,SCL_DO_GREEN)) f((src).green+(src).offset_x,(dst).green+(dst).offset_x,(scales),(len)); \ if(get_flags((src).flags,SCL_DO_BLUE)) f((src).blue+(src).offset_x, (dst).blue+(dst).offset_x, (scales),(len)); \ if(get_flags((src).flags,SCL_DO_ALPHA)) f((src).alpha+(src).offset_x,(dst).alpha+(dst).offset_x,(scales),(len)); \ }while(0)
Definition at line 1028 of file asimage.h.
Referenced by flip_asimage(), output_image_line_direct(), output_image_line_fast(), output_image_line_fine(), and output_image_line_top().
Value:
do{ if(get_flags((src).flags,SCL_DO_RED)) f((src).red+(src).offset_x,(p),(len)); \ if(get_flags((src).flags,SCL_DO_GREEN)) f((src).green+(src).offset_x,(p),(len)); \ if(get_flags((src).flags,SCL_DO_BLUE)) f((src).blue+(src).offset_x,(p),(len)); \ if(get_flags((src).flags,SCL_DO_ALPHA)) f((src).alpha+(src).offset_x,(p),(len));\ }while(0)
Definition at line 1054 of file asimage.h.
Referenced by output_image_line_top().
#define TINT_LEAVE_SAME (0x7F7F7F7F) |
Definition at line 427 of file asimage.h.
Referenced by CopyAndShadeArea(), copyshade_drawable_area(), cut_pixmap(), fill_with_darkened_background(), scale_pixmap(), and shading2tint32().
#define TINT_NONE 0 |
#define VRB_EVERYTHING |
#define VRB_LINE_CONTENT (0x01<<1) |
#define VRB_LINE_SUMMARY (0x01<<0) |
enum ASAltImFormats |
Definition at line 829 of file asimage.c.
References AS_ASSERT, ASStorage_16BitShift, ASStorage_24BitShift, ASStorage_32Bit, ASStorage_8BitShift, ASStorage_Masked, ASStorage_RLEDiffCompress, ASImage::channels, forget_data(), ASImage::height, IC_ALPHA, IC_BLUE, IC_GREEN, IC_RED, NULL, store_data(), and ASImage::width.
Referenced by picture_ximage2asimage().
Definition at line 802 of file asimage.c.
References AS_ASSERT, ASImage::channels, forget_data(), ASImage::height, IC_NUM_CHANNELS, NULL, store_data(), and ASImage::width.
Referenced by encode_image_scanline_asim().
int asimage_decode_line | ( | ASImage * | im, | |
ColorPart | color, | |||
CARD32 * | to_buf, | |||
unsigned int | y, | |||
unsigned int | skip, | |||
unsigned int | out_width | |||
) |
Definition at line 892 of file asimage.c.
References ASImage::channels, fetch_data32(), fprintf(), i, LOCAL_DEBUG_CALLER_OUT, LOCAL_DEBUG_OUT, NULL, and ASImage::width.
Referenced by asimage2alpha_ximage(), asimage2ximage_ext(), asimage_compare_line(), check_asimage_alpha(), and subimage2ximage().
Definition at line 123 of file asimage.c.
References ASImage::alt, ASImage::ASImageAlternative::argb32, ARGB32_DEFAULT_BACK_COLOR, ASImage::back_color, forget_data(), free(), ASImage::height, i, ASImage::magic, MAGIC_ASIMAGE, ASImage::ASImageAlternative::mask_ximage, ASImage::name, NULL, ASImage::red, ASImage::ASImageAlternative::vector, and ASImage::ASImageAlternative::ximage.
Referenced by asimage_replace(), asimage_start(), and destroy_asimage().
unsigned int asimage_print_line | ( | ASImage * | im, | |
ColorPart | color, | |||
unsigned int | y, | |||
unsigned long | verbosity | |||
) |
Definition at line 859 of file asimage.c.
References AS_ASSERT, ASImage::channels, ASImage::height, IC_NUM_CHANNELS, NULL, and print_storage_slot().
Referenced by copy_asimage_lines(), get_asimage_channel_rects(), and print_asimage().
Definition at line 209 of file asimage.c.
References ASIM_NAME_IS_FILENAME, ASIM_NO_COMPRESSION, asimage_init(), False, ASImage::flags, ASImage::imageman, ASImage::magic, MAGIC_ASIMAGE, ASImage::name, name, NULL, ASImage::ref_count, set_flags, and True.
Referenced by reload_asimage_manager().
void asimage_start | ( | ASImage * | im, | |
unsigned int | width, | |||
unsigned int | height, | |||
unsigned int | compression | |||
) |
Definition at line 193 of file asimage.c.
References alloc_asimage_channels(), ASIM_NO_COMPRESSION, asimage_init(), set_flags, and True.
Referenced by create_asimage().
Definition at line 1032 of file asimage.c.
References ARGB32_ALPHA8, asimage_decode_line(), ASImage::back_color, ASVisual::BGR_mode, buf, get_default_asvisual(), ASImage::height, i, IC_ALPHA, NULL, prepare_scanline(), SCL_DO_ALPHA, and ASImage::width.
ASImage* clone_asimage | ( | ASImage * | src, | |
ASFlagType | filter | |||
) |
Definition at line 1172 of file asimage.c.
References AS_ASSERT, ASIM_DATA_NOT_USEFUL, create_asimage(), dup_data(), get_flags, i, IC_NUM_CHANNELS, NULL, set_flags, SHOW_TIME, START_TIME, and x01.
Referenced by TASImage::Clone(), commit_xml_image_built(), file2ASImage_extra(), TASImage::FromPad(), handle_asxml_tag_background(), TASImage::operator=(), pad_asimage(), and TASImage::TASImage().
Definition at line 938 of file asimage.c.
References AS_ASSERT, dup_data(), forget_data(), i, IC_NUM_CHANNELS, LOCAL_DEBUG_OUT, MIN, and NULL.
void copy_asimage_lines | ( | ASImage * | dst, | |
unsigned int | offset_dst, | |||
ASImage * | src, | |||
unsigned int | offset_src, | |||
unsigned int | nlines, | |||
ASFlagType | filter | |||
) |
Definition at line 957 of file asimage.c.
References AS_ASSERT, asimage_print_line(), dup_data(), forget_data(), get_flags, height, i, IC_ALPHA, IC_NUM_CHANNELS, LOCAL_DEBUG_OUT, NULL, VRB_EVERYTHING, VRB_LINE_SUMMARY, and x01.
Referenced by pad_asimage().
void copy_component | ( | register CARD32 * | src, | |
register CARD32 * | dst, | |||
int * | unused, | |||
int | len | |||
) |
Definition at line 204 of file imencdec.c.
References i.
Referenced by blur_asimage_gauss(), interpolate_asim_strip_custom_rggb2(), load_gauss_scanline(), output_image_line_top(), and scale_image_up().
ASImage* create_asimage | ( | unsigned int | width, | |
unsigned int | height, | |||
unsigned int | compression | |||
) |
Definition at line 261 of file asimage.c.
References asimage_start(), check_created_asimage(), and safecalloc.
Referenced by TASImage::Bevel(), bitmap2asimage(), TASImage::Blur(), clone_asimage(), convert_argb2ASImage(), create_destination_image(), create_xpm_image(), TASImage::Crop(), DIB2ASImage(), draw_text_internal(), TASImage::DrawBox(), TASImage::DrawRectangle(), TASImage::DrawText(), TASImage::FillRectangle(), gif2ASImage(), TASImage::Gray(), handle_asxml_tag_text(), TASImage::HSV(), jpeg2ASImage(), TASImage::Pad(), picture_ximage2asimage(), pixmap2ximage(), png2ASImage_int(), ppm2ASImage(), read_bmp_image(), read_xcf_hierarchy(), subimage2ximage(), TASImage::TASImage(), tga2ASImage(), tiff2ASImage(), and TASImage::Vectorize().
ASImageLayer* create_image_layers | ( | int | count | ) |
ASImageManager* create_image_manager | ( | struct ASImageManager * | reusable_memory, | |
double | gamma, | |||
... | ||||
) |
Definition at line 405 of file asimage.c.
References asimage_destroy(), create_ashash, ASImageManager::gamma, i, ASImageManager::image_hash, MAX_SEARCH_PATHS, mystrdup, NULL, safecalloc, ASImageManager::search_path, string_compare, and string_hash_value.
Referenced by create_generic_imageman().
ASImage* create_static_asimage | ( | unsigned int | width, | |
unsigned int | height, | |||
unsigned int | compression | |||
) |
void destroy_asgradient | ( | ASGradient ** | pgrad | ) |
void destroy_asimage | ( | ASImage ** | im | ) |
Definition at line 269 of file asimage.c.
References AS_ASSERT_NOTVAL, AS_HASHABLE, asimage_init(), False, free(), NULL, print_asimage_func(), remove_hash_item, show_error, show_progress, True, and ASImage::width.
Referenced by adjust_asimage_hsv(), asimage_destroy(), TASImage::Bevel(), blur_asimage_gauss(), ClassImp(), color2alpha_asimage(), convert_argb2ASImage(), copyshade_drawable_area(), TASImage::CreateThumbnail(), TASImage::Crop(), cut_pixmap(), destroy_image_layers(), direntry2ASImageListEntry(), TASImage::DrawText(), file2pixmap(), fill_with_darkened_background(), fill_with_pixmapped_background(), flip_asimage(), free_xcf_hierarchy(), get_thumbnail_asimage(), TASImage::Gradient(), TASImage::Image2Drawable(), make_gradient(), mirror_asimage(), pad_asimage(), TASImage::Paint(), TASPaletteEditor::PaintPalette::Paint(), pixelize_asimage(), release_asimage(), reload_asimage_manager(), safe_asimage_destroy(), scale_asimage(), scale_asimage2(), scale_pixmap(), slice_asimage2(), subimage2ximage(), tga2ASImage(), tiff2ASImage(), and tile_asimage().
void destroy_image_layers | ( | register ASImageLayer * | l, | |
int | count, | |||
Bool | reusable | |||
) |
Definition at line 772 of file asimage.c.
References destroy_asimage(), free(), i, and release_asimage().
void destroy_image_manager | ( | struct ASImageManager * | imman, | |
Bool | reusable | |||
) |
Definition at line 435 of file asimage.c.
References destroy_ashash, free(), i, ASImageManager::image_hash, MAX_SEARCH_PATHS, and ASImageManager::search_path.
Referenced by compose_asimage_xml_from_doc().
Definition at line 514 of file asimage.c.
References AS_ASSERT, AS_ASSERT_NOTVAL, ASImage::imageman, ASImage::magic, MAGIC_ASIMAGE, NULL, ASImage::ref_count, show_debug, and show_error.
Referenced by commit_xml_image_built(), and get_thumbnail_asimage().
ASImage* fetch_asimage | ( | ASImageManager * | imageman, | |
const char * | name | |||
) |
Definition at line 502 of file asimage.c.
References query_asimage(), and ASImage::ref_count.
Referenced by build_image_from_xml(), get_asimage(), get_thumbnail_asimage(), handle_asxml_tag_recall(), and handle_asxml_tag_text().
ASGradient* flip_gradient | ( | ASGradient * | orig, | |
int | flip | |||
) |
Definition at line 682 of file asimage.c.
References ASGradient::color, False, FLIP_MASK, FLIP_UPSIDEDOWN, FLIP_VERTICAL, get_flags, GRADIENT_BottomLeft2TopRight, GRADIENT_Left2Right, GRADIENT_Top2Bottom, GRADIENT_TopLeft2BottomRight, i, k, ASGradient::npoints, NULL, ASGradient::offset, safecalloc, safemalloc, True, type, and ASGradient::type.
void flush_asimage_cache | ( | ASImage * | im | ) |
Definition at line 155 of file asimage.c.
References ASImage::alt, ASImage::ASImageAlternative::mask_ximage, NULL, and ASImage::ASImageAlternative::ximage.
void forget_asimage | ( | ASImage * | im | ) |
Definition at line 557 of file asimage.c.
References AS_ASSERT, False, ASImageManager::image_hash, ASImage::imageman, ASImage::magic, MAGIC_ASIMAGE, ASImage::name, NULL, ASImage::ref_count, and remove_hash_item.
Referenced by compose_asimage_xml_from_doc(), and file2ASImage_extra().
void forget_asimage_name | ( | ASImageManager * | imman, | |
const char * | name | |||
) |
Definition at line 600 of file asimage.c.
References AS_ASSERT, AS_HASHABLE, False, ASImageManager::image_hash, NULL, and remove_hash_item.
ASFlagType get_asimage_chanmask | ( | ASImage * | im | ) |
Definition at line 1011 of file asimage.c.
References AS_ASSERT, ASImage::channels, ASImage::height, height, IC_NUM_CHANNELS, mask, set_flags, x01, and y.
Referenced by ASImage2gif(), ASImage2png_int(), ASImage2tiff(), file2pixmap(), and flip_asimage().
XRectangle* get_asimage_channel_rects | ( | ASImage * | src, | |
int | channel, | |||
unsigned int | threshold, | |||
unsigned int * | rects_count_ret | |||
) |
Definition at line 1203 of file asimage.c.
References ARGB32_CHAN8, AS_ASSERT, asimage_print_line(), fprintf(), height, i, IC_NUM_CHANNELS, k, l, NULL, realloc(), safemalloc, start, START_TIME, threshold_stored_data(), VRB_LINE_CONTENT, and y.
void init_image_layers | ( | register ASImageLayer * | l, | |
int | count | |||
) |
Definition at line 748 of file asimage.c.
References alphablend_scanlines().
Referenced by TASImage::Bevel(), create_image_layers(), TASImage::CreateThumbnail(), TASImage::DrawText(), fill_with_pixmapped_background(), TASImage::Gradient(), handle_asxml_tag_bevel(), handle_asxml_tag_text(), and TASImage::Merge().
Definition at line 918 of file asimage.c.
References AS_ASSERT, forget_data(), i, IC_NUM_CHANNELS, MIN, and NULL.
Referenced by TASImage::DrawText(), and handle_asxml_tag_text().
void print_asimage | ( | ASImage * | im, | |
int | flags, | |||
char * | func, | |||
int | line | |||
) |
Definition at line 869 of file asimage.c.
References asimage_print_line(), fprintf(), ASImage::height, IC_ALPHA, IC_BLUE, IC_GREEN, IC_RED, k, and ASImage::width.
Referenced by colormap_asimage().
void print_asimage_func | ( | ASHashableValue | value | ) |
void print_asimage_manager | ( | ASImageManager * | imageman | ) |
void print_asimage_registry | ( | ) |
void purge_asimage_registry | ( | ) |
ASImage* query_asimage | ( | ASImageManager * | imageman, | |
const char * | name | |||
) | [inline] |
Definition at line 485 of file asimage.c.
References AS_ASSERT, AS_HASHABLE, ASH_Success, get_hash_item, ASImageManager::image_hash, ASImage::magic, MAGIC_ASIMAGE, NULL, and ASHashData::vptr.
Referenced by fetch_asimage(), and get_thumbnail_asimage().
void raw2scanline | ( | register CARD8 * | row, | |
struct ASScanline * | buf, | |||
CARD8 * | gamma_table, | |||
unsigned int | width, | |||
Bool | grayscale, | |||
Bool | do_alpha | |||
) |
Definition at line 1451 of file asimage.c.
Referenced by bitmap2asimage(), jpeg2ASImage(), png2ASImage_int(), and ppm2ASImage().
int release_asimage | ( | ASImage * | im | ) | [inline] |
Definition at line 536 of file asimage.c.
References AS_ASSERT, ASH_Success, destroy_asimage(), ASImageManager::image_hash, ASImage::imageman, ASImage::magic, MAGIC_ASIMAGE, ASImage::name, NULL, ASImage::ref_count, remove_hash_item, and True.
Referenced by build_image_from_xml(), destroy_image_layers(), file2ASImage_extra(), handle_asxml_tag_text(), and release_asimage_by_name().
int release_asimage_by_name | ( | ASImageManager * | imman, | |
char * | name | |||
) |
Definition at line 633 of file asimage.c.
References AS_ASSERT, AS_HASHABLE, ASH_Success, get_hash_item, ASImageManager::image_hash, NULL, release_asimage(), and ASHashData::vptr.
Referenced by handle_asxml_tag_release().
void relocate_asimage | ( | ASImageManager * | to_imageman, | |
ASImage * | im | |||
) |
Definition at line 573 of file asimage.c.
References add_hash_item, AS_ASSERT, AS_HASHABLE, ASH_Success, False, ASImageManager::image_hash, ASImage::imageman, ASImage::magic, MAGIC_ASIMAGE, ASImage::name, NULL, ASImage::ref_count, and remove_hash_item.
int safe_asimage_destroy | ( | ASImage * | im | ) | [inline] |
Definition at line 609 of file asimage.c.
References AS_ASSERT, destroy_asimage(), ASImageManager::image_hash, ASImage::imageman, ASImage::magic, MAGIC_ASIMAGE, ASImage::name, NULL, ASImage::ref_count, remove_hash_item, and True.
Referenced by build_image_from_xml(), commit_xml_image_built(), compose_asimage_xml_from_doc(), handle_asxml_tag_img(), handle_asxml_tag_text(), and unref_asimage_list_entry().
Definition at line 1085 of file asimage.c.
References ASImage::alt, False, ASImage::height, i, NULL, safemalloc, True, ASImage::ASImageAlternative::vector, and ASImage::width.
Referenced by create_asimage_from_vector().
Bool store_asimage | ( | ASImageManager * | imageman, | |
ASImage * | im, | |||
const char * | name | |||
) |
Definition at line 453 of file asimage.c.
References add_hash_item, AS_ASSERT, AS_ASSERT_NOTVAL, AS_HASHABLE, ASH_Success, False, free(), ASImageManager::image_hash, ASImage::imageman, ASImage::magic, MAGIC_ASIMAGE, mystrdup, ASImage::name, NULL, and ASImage::ref_count.
Referenced by commit_xml_image_built(), get_asimage(), and get_thumbnail_asimage().
ASVectorPalette* vectorize_asimage | ( | ASImage * | im, | |
unsigned int | max_colors, | |||
unsigned int | dither, | |||
int | opaque_threshold | |||
) |
Definition at line 1104 of file asimage.c.
References ASImage::alt, b, ASColormapEntry::blue, ASVectorPalette::channels, colormap_asimage(), ASColormap::count, destroy_colormap(), ASColormap::entries, free(), g, ASColormapEntry::green, ASImage::height, i, IC_ALPHA, IC_BLUE, IC_GREEN, IC_RED, INDEX_SHIFT_BLUE, INDEX_SHIFT_GREEN, INDEX_SHIFT_RED, j, MAKE_INDEXED_COLOR24, ASVectorPalette::npoints, NULL, ASVectorPalette::points, QUANT_ERR_BITS, ASColormapEntry::red, safecalloc, safemalloc, True, ASImage::ASImageAlternative::vector, ASImage::width, x, and y.