#include "asvisual.h"
#include "blender.h"
#include "scanline.h"
Go to the source code of this file.
#define ASIMAGE_QUALITY_DEFAULT -1 |
Definition at line 206 of file imencdec.h.
Referenced by asimage2ximage_ext(), TASImage::BeginPaint(), compose_asimage_xml_from_doc(), convert_argb2ASImage(), copyshade_drawable_area(), cut_pixmap(), direntry2ASImageListEntry(), TASImage::EndPaint(), fill_asimage(), fill_with_darkened_background(), fill_with_pixmapped_background(), TASImage::Gray(), handle_asxml_tag_bevel(), handle_asxml_tag_color2alpha(), handle_asxml_tag_gradient(), handle_asxml_tag_img(), handle_asxml_tag_mirror(), handle_asxml_tag_pad(), handle_asxml_tag_pixelize(), handle_asxml_tag_rotate(), handle_asxml_tag_scale(), handle_asxml_tag_slice(), handle_asxml_tag_text(), TASImage::Image2Drawable(), scale_pixmap(), subimage2ximage(), tga2ASImage(), and tiff2ASImage().
#define ASIMAGE_QUALITY_FAST 1 |
Definition at line 203 of file imencdec.h.
Referenced by get_thumbnail_asimage(), and start_image_output().
#define ASIMAGE_QUALITY_GOOD 2 |
#define ASIMAGE_QUALITY_POOR 0 |
Definition at line 202 of file imencdec.h.
Referenced by asimage2alpha_ximage(), scale_asimage(), scale_asimage2(), and start_image_output().
#define ASIMAGE_QUALITY_TOP 3 |
Definition at line 205 of file imencdec.h.
Referenced by handle_asxml_tag_crop(), handle_asxml_tag_text(), handle_asxml_tag_tile(), TASImage::HSV(), and start_image_output().
#define BEVEL_SOLID_INLINE (0x01<<0) |
Definition at line 77 of file imencdec.h.
Referenced by decode_image_scanline_beveled(), and handle_asxml_tag_bevel().
#define MAX_GRADIENT_DITHER_LINES ASIMAGE_QUALITY_TOP+1 |
Definition at line 208 of file imencdec.h.
Referenced by make_gradient(), and make_gradient_top2bottom().
typedef void(*) decode_asscanline_func(struct ASImageDecoder *imdec, unsigned int skip, int y) |
Definition at line 135 of file imencdec.h.
typedef void(*) decode_image_scanline_func(struct ASImageDecoder *imdec) |
Definition at line 139 of file imencdec.h.
typedef void(*) encode_image_scanline_func(struct ASImageOutput *imout, struct ASScanline *to_store) |
Definition at line 260 of file imencdec.h.
typedef void(*) output_image_scanline_func(struct ASImageOutput *, struct ASScanline *, int) |
Definition at line 262 of file imencdec.h.
void set_decoder_back_color | ( | ASImageDecoder * | imdec, | |
ARGB32 | back_color | |||
) |
Definition at line 472 of file imencdec.c.
References ASScanline::back_color, ASImageDecoder::back_color, and ASImageDecoder::buffer.
Referenced by merge_layers().
void set_decoder_bevel_geom | ( | ASImageDecoder * | imdec, | |
int | x, | |||
int | y, | |||
unsigned int | width, | |||
unsigned int | height | |||
) |
Definition at line 418 of file imencdec.c.
References ASImageDecoder::bevel, ASImageDecoder::bevel_bottom, ASImageDecoder::bevel_h_addon, ASImageDecoder::bevel_left, ASImageDecoder::bevel_right, ASImageDecoder::bevel_top, ASImageDecoder::bevel_v_addon, ASImageBevel::bottom_outline, ASImage::height, ASImageDecoder::im, int, ASImageBevel::left_outline, MAX, MIN, ASImageDecoder::out_height, ASImageDecoder::out_width, ASImageBevel::right_outline, ASImageBevel::top_outline, and ASImage::width.
Referenced by merge_layers().
void set_decoder_shift | ( | ASImageDecoder * | imdec, | |
int | shift | |||
) |
Definition at line 463 of file imencdec.c.
References ASImageDecoder::buffer, and ASScanline::shift.
Referenced by adjust_asimage_hsv(), and merge_layers().
void set_image_output_back_color | ( | ASImageOutput * | imout, | |
ARGB32 | back_color | |||
) |
Definition at line 571 of file imencdec.c.
References ARGB32_ALPHA8, ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, ASImageOutput::chan_fill, IC_ALPHA, IC_BLUE, IC_GREEN, and IC_RED.
ASImageDecoder* start_image_decoding | ( | struct ASVisual * | asv, | |
struct ASImage * | im, | |||
ASFlagType | filter, | |||
int | offset_x, | |||
int | offset_y, | |||
unsigned int | out_width, | |||
unsigned int | out_height, | |||
ASImageBevel * | bevel | |||
) |
Definition at line 299 of file imencdec.c.
References ASImage::alt, ASImage::ASImageAlternative::argb32, ARGB32_DEFAULT_BACK_COLOR, AS_ASSERT, ASIM_DATA_NOT_USEFUL, ASIM_XIMAGE_NOT_USEFUL, ASImageDecoder::asv, ASScanline::back_color, ASImageDecoder::back_color, ASImage::back_color, ASImageDecoder::bevel, ASImageDecoder::bevel_bottom, ASImageDecoder::bevel_h_addon, ASImageDecoder::bevel_left, ASImageDecoder::bevel_right, ASImageDecoder::bevel_top, ASImageDecoder::bevel_v_addon, ASVisual::BGR_mode, ASImageDecoder::buffer, ASImageDecoder::decode_asscanline, decode_asscanline_argb32(), decode_asscanline_native(), decode_asscanline_ximage(), ASImageDecoder::decode_image_scanline, decode_image_scanline_beveled(), decode_image_scanline_normal(), ASImageDecoder::filter, ASScanline::flags, ASImage::flags, get_default_asvisual(), get_flags, ASImage::height, ASImageDecoder::im, int, ASImageBevel::left_outline, ASImage::magic, MAGIC_ASIMAGE, MAX, MAX_BEVEL_OUTLINE, ASImageDecoder::next_line, NULL, ASImageDecoder::offset_x, ASImageDecoder::offset_y, ASImageDecoder::out_height, ASImageDecoder::out_width, prepare_scanline(), safecalloc, ASImage::width, ASImageDecoder::xim_buffer, and ASImage::ASImageAlternative::ximage.
Referenced by adjust_asimage_hsv(), ASImage2DIB(), asimage2drawable_gl(), ASImage2jpeg(), ASImage2png_int(), ASImage2tiff(), asimage2ximage_ext(), blur_asimage_gauss(), color2alpha_asimage(), colormap_asimage(), TASImage::Crop(), fill_asimage(), flip_asimage(), TASImage::GetArray(), TASImage::GetMask(), TASImage::GetPixels(), TASImage::GetScanline(), TASImage::Gray(), TASImage::Image2Drawable(), merge_layers(), mirror_asimage(), pad_asimage(), TASImage::Paint(), pixelize_asimage(), scale_asimage(), scale_asimage2(), slice_asimage2(), and tile_asimage().
ASImageOutput* start_image_output | ( | struct ASVisual * | asv, | |
ASImage * | im, | |||
ASAltImFormats | format, | |||
int | shift, | |||
int | quality | |||
) |
Definition at line 503 of file imencdec.c.
References ARGB32_ALPHA8, ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, AS_ASSERT, ASA_Formats, asimage_format_handlers, ASIMAGE_QUALITY_FAST, ASIMAGE_QUALITY_GOOD, asimage_quality_level, ASIMAGE_QUALITY_POOR, ASIMAGE_QUALITY_TOP, ASImageOutput::asv, ASImageOutput::available, ASImage::back_color, ASImageOutput::bottom_to_top, ASImageOutput::buffer, ASImageOutput::buffer_shift, ASImageOutput::chan_fill, ASImageOutput::encode_image_scanline, ASImageFormatHandlers::encode_image_scanline, get_default_asvisual(), IC_ALPHA, IC_BLUE, IC_GREEN, IC_RED, ASImageOutput::im, ASImage::magic, MAGIC_ASIMAGE, ASImageOutput::next_line, NULL, ASImageOutput::out_format, output_image_line_direct(), output_image_line_fast(), output_image_line_fine(), output_image_line_top(), ASImageOutput::output_image_scanline, prepare_scanline(), ASImageOutput::quality, safecalloc, ASImageOutput::used, and ASImage::width.
Referenced by adjust_asimage_hsv(), asimage2alpha_ximage(), asimage2ximage_ext(), blur_asimage_gauss(), color2alpha_asimage(), colorize_asimage_vector(), convert_argb2ASImage(), TASImage::Crop(), fill_asimage(), flip_asimage(), TASImage::Gray(), make_gradient(), mirror_asimage(), pad_asimage(), pixelize_asimage(), scale_asimage(), scale_asimage2(), slice_asimage2(), subimage2ximage(), tga2ASImage(), tiff2ASImage(), and tile_asimage().
void stop_image_decoding | ( | ASImageDecoder ** | pimdec | ) |
Definition at line 483 of file imencdec.c.
References free(), free_scanline(), NULL, and True.
Referenced by adjust_asimage_hsv(), ASImage2DIB(), asimage2drawable_gl(), ASImage2jpeg(), ASImage2png_int(), ASImage2tiff(), asimage2ximage_ext(), colormap_asimage(), TASImage::Crop(), fill_asimage(), flip_asimage(), TASImage::GetMask(), TASImage::GetScanline(), TASImage::Gray(), TASImage::Image2Drawable(), mirror_asimage(), pad_asimage(), TASImage::Paint(), pixelize_asimage(), scale_asimage(), scale_asimage2(), slice_asimage2(), and tile_asimage().
void stop_image_output | ( | ASImageOutput ** | pimout | ) |
Definition at line 601 of file imencdec.c.
References free(), free_scanline(), NULL, ASImageOutput::output_image_scanline, True, and ASImageOutput::used.
Referenced by adjust_asimage_hsv(), asimage2alpha_ximage(), asimage2ximage_ext(), blur_asimage_gauss(), color2alpha_asimage(), convert_argb2ASImage(), TASImage::Crop(), fill_asimage(), flip_asimage(), TASImage::Gray(), make_gradient(), mirror_asimage(), pad_asimage(), pixelize_asimage(), scale_asimage(), scale_asimage2(), slice_asimage2(), subimage2ximage(), tga2ASImage(), tiff2ASImage(), and tile_asimage().
void toggle_image_output_direction | ( | ASImageOutput * | imout | ) |
Definition at line 582 of file imencdec.c.
References ASImageOutput::bottom_to_top, ASImage::height, ASImageOutput::im, int, and ASImageOutput::next_line.
Referenced by colorize_asimage_vector(), flip_asimage(), make_gradient_diag_height(), make_gradient_diag_width(), mirror_asimage(), and tga2ASImage().