imencdec.c File Reference

#include "config.h"
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <mmintrin.h>
#include "afterbase.h"
#include "asvisual.h"
#include "blender.h"
#include "asimage.h"
#include "imencdec.h"

Go to the source code of this file.

Classes

struct  ASImageFormatHandlers

Defines

#define COPY_TILE_CHAN(op)

Functions

static void decode_asscanline_native (ASImageDecoder *imdec, unsigned int skip, int y)
static void decode_asscanline_ximage (ASImageDecoder *imdec, unsigned int skip, int y)
static void decode_asscanline_argb32 (ASImageDecoder *imdec, unsigned int skip, int y)
void decode_image_scanline_normal (ASImageDecoder *imdec)
void decode_image_scanline_beveled (ASImageDecoder *imdec)
void decode_image_scl_bevel_solid (ASImageDecoder *imdec)
Bool create_image_xim (ASVisual *asv, ASImage *im, ASAltImFormats format)
Bool create_image_argb32 (ASVisual *asv, ASImage *im, ASAltImFormats format)
void encode_image_scanline_asim (ASImageOutput *imout, ASScanline *to_store)
void encode_image_scanline_xim (ASImageOutput *imout, ASScanline *to_store)
void encode_image_scanline_mask_xim (ASImageOutput *imout, ASScanline *to_store)
void encode_image_scanline_argb32 (ASImageOutput *imout, ASScanline *to_store)
void output_image_line_top (ASImageOutput *, ASScanline *, int)
void output_image_line_fine (ASImageOutput *, ASScanline *, int)
void output_image_line_fast (ASImageOutput *, ASScanline *, int)
void output_image_line_direct (ASImageOutput *, ASScanline *, int)
static void asimage_dup_line (ASImage *im, ColorPart color, unsigned int y1, unsigned int y2, unsigned int length)
void asimage_erase_line (ASImage *im, ColorPart color, unsigned int y)
void copy_component (register CARD32 *src, register CARD32 *dst, int *unused, int len)
static int set_component (register CARD32 *src, register CARD32 value, int offset, int len)
static void divide_component (register CARD32 *src, register CARD32 *dst, CARD16 ratio, int len)
ASImageDecoderstart_image_decoding (ASVisual *asv, ASImage *im, ASFlagType filter, int offset_x, int offset_y, unsigned int out_width, unsigned int out_height, ASImageBevel *bevel)
void set_decoder_bevel_geom (ASImageDecoder *imdec, int x, int y, unsigned int width, unsigned int height)
void set_decoder_shift (ASImageDecoder *imdec, int shift)
void set_decoder_back_color (ASImageDecoder *imdec, ARGB32 back_color)
void stop_image_decoding (ASImageDecoder **pimdec)
ASImageOutputstart_image_output (ASVisual *asv, ASImage *im, ASAltImFormats format, int shift, int quality)
void set_image_output_back_color (ASImageOutput *imout, ARGB32 back_color)
void toggle_image_output_direction (ASImageOutput *imout)
void stop_image_output (ASImageOutput **pimout)
static void best_output_filter (register CARD32 *line1, register CARD32 *line2, int unused, int len)
static void fine_output_filter (register CARD32 *src, register CARD32 *dst, short ratio, int len)
static void fast_output_filter (register CARD32 *src, register CARD32 *dst, short ratio, int len)
static void fine_output_filter_mod (register CARD32 *data, int unused, int len)
static void draw_solid_bevel_line (register ASScanline *scl, int alt_left, int hi_end, int lo_start, int alt_right, ARGB32 bevel_color, ARGB32 shade_color, ARGB32 hi_corner, ARGB32 lo_corner)
static void draw_fading_bevel_sides (ASImageDecoder *imdec, int left_margin, int left_delta, int right_delta, int right_margin)
static void draw_transp_bevel_sides (ASImageDecoder *imdec, int left_margin, int left_delta, int right_delta, int right_margin)
static void draw_transp_bevel_line (ASImageDecoder *imdec, int left_delta, int right_delta, CARD32 ca, ARGB32 left_color, ARGB32 color, ARGB32 right_color)
static void tile_ximage_line (XImage *xim, unsigned int line, int step, int range)
static void tile_argb32_line (ARGB32 *data, unsigned int line, int step, unsigned int width, unsigned int height, int range)

Variables

static struct ASImageFormatHandlers asimage_format_handlers [ASA_Formats]
static int asimage_quality_level = ASIMAGE_QUALITY_GOOD


Define Documentation

#define COPY_TILE_CHAN ( op   ) 

Value:

for(; k < count ; k++ ) dst[k] = op; \
                while( k < width ) \
                {       src = xim_scl->channels[i]-k ; \
                        count = MIN(xim_width+k,width); \
                        for(; k < count ; k++ ) dst[k] = op; \
                }

Referenced by decode_asscanline_ximage().


Function Documentation

static void asimage_dup_line ( ASImage im,
ColorPart  color,
unsigned int  y1,
unsigned int  y2,
unsigned int  length 
) [static]

Definition at line 162 of file imencdec.c.

References ASImage::channels, dup_data(), forget_data(), and NULL.

Referenced by encode_image_scanline_asim(), and encode_image_scanline_xim().

void asimage_erase_line ( ASImage im,
ColorPart  color,
unsigned int  y 
)

Definition at line 175 of file imencdec.c.

References AS_ASSERT, c, ASImage::channels, forget_data(), IC_NUM_CHANNELS, and NULL.

Referenced by encode_image_scanline_asim().

static void best_output_filter ( register CARD32 *  line1,
register CARD32 *  line2,
int  unused,
int  len 
) [inline, static]

Definition at line 620 of file imencdec.c.

References c, i, QUANT_ERR_BITS, and QUANT_ERR_MASK.

Referenced by output_image_line_top().

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().

Bool create_image_argb32 ( ASVisual asv,
ASImage im,
ASAltImFormats  format 
)

Definition at line 152 of file imencdec.c.

References ASImage::alt, ASImage::ASImageAlternative::argb32, ASImage::height, NULL, safemalloc, True, and ASImage::width.

Bool create_image_xim ( ASVisual asv,
ASImage im,
ASAltImFormats  format 
)

Definition at line 119 of file imencdec.c.

References ASImage::alt, ASA_MaskXImage, ASA_ScratchMaskXImage, ASA_ScratchXImage, ASA_ScratchXImageAndAlpha, ASA_XImage, ASIM_XIMAGE_8BIT_MASK, create_visual_scratch_ximage(), create_visual_ximage(), depth, False, ASImage::flags, get_flags, ASImage::height, ASImage::ASImageAlternative::mask_ximage, NULL, show_error, True, ASVisual::visual_info, ASImage::width, and ASImage::ASImageAlternative::ximage.

static void decode_asscanline_argb32 ( ASImageDecoder imdec,
unsigned int  skip,
int  y 
) [static]

Definition at line 776 of file imencdec.c.

References a, ASScanline::alpha, ASImage::alt, ASImage::ASImageAlternative::argb32, ARGB32_ALPHA8, ARGB32_RED8, b, ASScanline::blue, ASImageDecoder::buffer, ASImageDecoder::filter, g, get_flags, ASScanline::green, ASImageDecoder::im, ASImageDecoder::offset_x, ASScanline::red, row, SCL_DO_ALPHA, SCL_DO_RED, ASScanline::shift, ASScanline::width, width, ASImage::width, and x.

Referenced by start_image_decoding().

static void decode_asscanline_native ( ASImageDecoder imdec,
unsigned int  skip,
int  y 
) [static]

Definition at line 749 of file imencdec.c.

References ASImageDecoder::buffer, ASScanline::channels, ASImage::channels, fetch_data32(), ASImageDecoder::filter, get_flags, i, IC_NUM_CHANNELS, ASImageDecoder::im, k, NULL, ASImageDecoder::offset_x, ASScanline::shift, ASScanline::width, width, and x01.

Referenced by start_image_decoding().

static void decode_asscanline_ximage ( ASImageDecoder imdec,
unsigned int  skip,
int  y 
) [static]

Definition at line 832 of file imencdec.c.

References ASScanline::alpha, ASImage::alt, ARGB32_CHAN8, ASImageDecoder::asv, ASImageDecoder::back_color, ASImageDecoder::buffer, ASScanline::channels, clear_flags, COPY_TILE_CHAN, define(), ASImageDecoder::filter, ASScanline::flags, get_flags, GET_SCANLINE, i, IC_NUM_CHANNELS, ASImageDecoder::im, k, ASImage::ASImageAlternative::mask_ximage, MIN, NULL, offset_x, ASScanline::offset_x, ASImageDecoder::offset_x, SCL_DO_ALL, set_component(), set_flags, ASScanline::shift, ASScanline::width, width, x, x01, ASImageDecoder::xim_buffer, and ASImage::ASImageAlternative::ximage.

Referenced by start_image_decoding().

void decode_image_scanline_beveled ( ASImageDecoder imdec  ) 

Definition at line 1095 of file imencdec.c.

References ARGB32_ALPHA8, ASScanline::back_color, ASImageDecoder::back_color, ASImageDecoder::bevel, ASImageDecoder::bevel_bottom, ASImageDecoder::bevel_left, ASImageDecoder::bevel_right, BEVEL_SOLID_INLINE, ASImageDecoder::bevel_top, ASImageDecoder::bevel_v_addon, ASImageDecoder::buffer, ASImageDecoder::decode_asscanline, draw_fading_bevel_sides(), draw_solid_bevel_line(), draw_transp_bevel_line(), draw_transp_bevel_sides(), ASImageDecoder::filter, ASScanline::flags, get_flags, ASImage::height, ASImageDecoder::im, int, line, MAX, MIN, ASImageDecoder::next_line, ASImageDecoder::offset_y, ASImageDecoder::out_height, set_flags, ASScanline::width, and y.

Referenced by start_image_decoding().

void decode_image_scanline_normal ( ASImageDecoder imdec  ) 

Definition at line 938 of file imencdec.c.

References ASScanline::back_color, ASImageDecoder::back_color, ASImageDecoder::buffer, ASImageDecoder::decode_asscanline, ASScanline::flags, ASImage::height, ASImageDecoder::im, ASImageDecoder::next_line, ASImageDecoder::offset_y, ASImageDecoder::out_height, and y.

Referenced by start_image_decoding().

void decode_image_scl_bevel_solid ( ASImageDecoder imdec  ) 

static void divide_component ( register CARD32 *  src,
register CARD32 *  dst,
CARD16  ratio,
int  len 
) [inline, static]

Definition at line 245 of file imencdec.c.

References asimage_use_mmx, c1, and i.

Referenced by output_image_line_direct(), and output_image_line_top().

static void draw_fading_bevel_sides ( ASImageDecoder imdec,
int  left_margin,
int  left_delta,
int  right_delta,
int  right_margin 
) [inline, static]

Definition at line 983 of file imencdec.c.

References ARGB32_ALPHA8, ARGB32_CHAN8, ARGB32_CHANNELS, ASImageDecoder::bevel, ASImageDecoder::bevel_left, ASImageDecoder::buffer, ASScanline::channels, ASScanline::flags, get_flags, ASImageBevel::hi_color, i, ASImageBevel::left_inline, ASImageBevel::lo_color, MIN, ASImageBevel::right_inline, ASScanline::shift, ASScanline::width, and x01.

Referenced by decode_image_scanline_beveled().

static void draw_solid_bevel_line ( register ASScanline scl,
int  alt_left,
int  hi_end,
int  lo_start,
int  alt_right,
ARGB32  bevel_color,
ARGB32  shade_color,
ARGB32  hi_corner,
ARGB32  lo_corner 
) [inline, static]

Definition at line 955 of file imencdec.c.

References ARGB32_CHAN8, ARGB32_CHANNELS, get_flags, set_component(), and x01.

Referenced by decode_image_scanline_beveled().

static void draw_transp_bevel_line ( ASImageDecoder imdec,
int  left_delta,
int  right_delta,
CARD32  ca,
ARGB32  left_color,
ARGB32  color,
ARGB32  right_color 
) [inline, static]

Definition at line 1051 of file imencdec.c.

References ARGB32_CHAN8, ARGB32_CHANNELS, ASImageDecoder::bevel, ASImageDecoder::bevel_left, ASImageDecoder::bevel_right, ASImageDecoder::buffer, ASScanline::channels, ASScanline::flags, get_flags, i, int, ASImageBevel::left_inline, ASImageBevel::right_inline, ASScanline::shift, start_point, ASScanline::width, and x01.

Referenced by decode_image_scanline_beveled().

static void draw_transp_bevel_sides ( ASImageDecoder imdec,
int  left_margin,
int  left_delta,
int  right_delta,
int  right_margin 
) [inline, static]

Definition at line 1020 of file imencdec.c.

References ARGB32_ALPHA8, ARGB32_CHAN8, ARGB32_CHANNELS, ASImageDecoder::bevel, ASImageDecoder::bevel_left, ASImageDecoder::bevel_right, ASImageDecoder::buffer, ASScanline::channels, ASScanline::flags, get_flags, ASImageBevel::hi_color, i, ASImageBevel::left_inline, ASImageBevel::lo_color, MAX, ASImageBevel::right_inline, ASScanline::shift, and x01.

Referenced by decode_image_scanline_beveled().

void encode_image_scanline_argb32 ( ASImageOutput imout,
ASScanline to_store 
)

Definition at line 1436 of file imencdec.c.

References ASScanline::alpha, ASImage::alt, ASImage::ASImageAlternative::argb32, ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, ASScanline::back_color, blue, ASScanline::blue, ASImageOutput::bottom_to_top, data, ASScanline::flags, get_flags, green, ASScanline::green, ASImage::height, ASImageOutput::im, MAKE_ARGB32, ASImageOutput::next_line, ASScanline::red, red, SCL_DO_ALPHA, SCL_DO_BLUE, SCL_DO_GREEN, SCL_DO_RED, set_component(), tile_argb32_line(), ASImageOutput::tiling_range, ASImageOutput::tiling_step, ASScanline::width, ASImage::width, and x.

void encode_image_scanline_asim ( ASImageOutput imout,
ASScanline to_store 
)

Definition at line 1358 of file imencdec.c.

References ARGB32_ALPHA8, ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, asimage_add_line(), asimage_add_line_mono(), asimage_dup_line(), asimage_erase_line(), ASScanline::back_color, ASImageOutput::bottom_to_top, ASImageOutput::chan_fill, ASScanline::channels, ASScanline::flags, get_flags, ASImage::height, i, IC_ALPHA, IC_BLUE, IC_GREEN, IC_NUM_CHANNELS, IC_RED, ASImageOutput::im, line, LOCAL_DEBUG_CALLER_OUT, LOCAL_DEBUG_OUT, MAX, MIN, ASImageOutput::next_line, ASScanline::offset_x, ASImageOutput::tiling_range, ASImageOutput::tiling_step, and x01.

void encode_image_scanline_mask_xim ( ASImageOutput imout,
ASScanline to_store 
)

Definition at line 1267 of file imencdec.c.

References a, ASScanline::alpha, ASImage::alt, ASImageOutput::bottom_to_top, ASScanline::flags, get_flags, ASImage::height, ASImageOutput::im, ASImage::ASImageAlternative::mask_ximage, MIN, ASImageOutput::next_line, SCL_DO_ALPHA, tile_ximage_line(), ASImageOutput::tiling_range, ASImageOutput::tiling_step, ASScanline::width, and x.

void encode_image_scanline_xim ( ASImageOutput imout,
ASScanline to_store 
)

Definition at line 1300 of file imencdec.c.

References ASScanline::alpha, ASImage::alt, ARGB32_ALPHA8, ARGB32_BLUE8, ARGB32_GREEN8, ARGB32_RED8, ASA_ScratchXImageAndAlpha, ASIM_DATA_NOT_USEFUL, asimage_add_line(), asimage_dup_line(), ASImageOutput::asv, ASScanline::back_color, ASScanline::blue, ASImageOutput::bottom_to_top, ASScanline::channels, ASScanline::flags, ASImage::flags, get_flags, ASScanline::green, ASImage::height, i, IC_ALPHA, ASImageOutput::im, line, LOCAL_DEBUG_OUT, MAX, MIN, ASImageOutput::next_line, ASScanline::offset_x, ASImageOutput::out_format, PUT_SCANLINE, ASScanline::red, scanline2ximage15(), scanline2ximage16(), scanline2ximage32(), SCL_DO_ALPHA, SCL_DO_BLUE, SCL_DO_GREEN, SCL_DO_RED, set_component(), tile_ximage_line(), ASImageOutput::tiling_range, ASImageOutput::tiling_step, ASVisual::visual_info, ASScanline::width, and ASImage::ASImageAlternative::ximage.

static void fast_output_filter ( register CARD32 *  src,
register CARD32 *  dst,
short  ratio,
int  len 
) [inline, static]

Definition at line 693 of file imencdec.c.

References c, i, and QUANT_ERR_BITS.

Referenced by output_image_line_fast().

static void fine_output_filter ( register CARD32 *  src,
register CARD32 *  dst,
short  ratio,
int  len 
) [inline, static]

Definition at line 648 of file imencdec.c.

References c, i, QUANT_ERR_BITS, and QUANT_ERR_MASK.

Referenced by output_image_line_fine().

static void fine_output_filter_mod ( register CARD32 *  data,
int  unused,
int  len 
) [inline, static]

Definition at line 730 of file imencdec.c.

References c, i, QUANT_ERR_BITS, and QUANT_ERR_MASK.

Referenced by output_image_line_top().

void output_image_line_direct ( ASImageOutput ,
ASScanline ,
int   
)

Definition at line 1540 of file imencdec.c.

References ASImageOutput::available, ASScanline::back_color, divide_component(), ASImageOutput::encode_image_scanline, ASScanline::flags, SCANLINE_FUNC_FILTERED, and ASScanline::width.

Referenced by start_image_output().

void output_image_line_fast ( ASImageOutput ,
ASScanline ,
int   
)

Definition at line 1527 of file imencdec.c.

References ASImageOutput::available, ASScanline::back_color, ASImageOutput::encode_image_scanline, fast_output_filter(), ASScanline::flags, SCANLINE_FUNC_FILTERED, and ASScanline::width.

Referenced by start_image_output().

void output_image_line_fine ( ASImageOutput ,
ASScanline ,
int   
)

Definition at line 1512 of file imencdec.c.

References ASImageOutput::available, ASScanline::back_color, ASImageOutput::encode_image_scanline, fine_output_filter(), ASScanline::flags, SCANLINE_FUNC_FILTERED, and ASScanline::width.

Referenced by start_image_output().

void output_image_line_top ( ASImageOutput ,
ASScanline ,
int   
)

Definition at line 1472 of file imencdec.c.

References ASImageOutput::available, ASScanline::back_color, best_output_filter(), ASImageOutput::buffer, ASImageOutput::buffer_shift, copy_component(), divide_component(), ASImageOutput::encode_image_scanline, fine_output_filter_mod(), ASScanline::flags, NULL, SCANLINE_FUNC_FILTERED, SCANLINE_MOD_FILTERED, ASImageOutput::used, and ASScanline::width.

Referenced by start_image_output().

static int set_component ( register CARD32 *  src,
register CARD32  value,
int  offset,
int  len 
) [inline, static]

Definition at line 234 of file imencdec.c.

References i.

Referenced by decode_asscanline_ximage(), draw_solid_bevel_line(), encode_image_scanline_argb32(), and encode_image_scanline_xim().

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 ( ASVisual asv,
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 ( 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().

static void tile_argb32_line ( ARGB32 data,
unsigned int  line,
int  step,
unsigned int  width,
unsigned int  height,
int  range 
) [inline, static]

Definition at line 1421 of file imencdec.c.

References i, MAX, and MIN.

Referenced by encode_image_scanline_argb32().

static void tile_ximage_line ( XImage *  xim,
unsigned int  line,
int  step,
int  range 
) [inline, static]

Definition at line 1252 of file imencdec.c.

References i, MAX, and MIN.

Referenced by encode_image_scanline_mask_xim(), and encode_image_scanline_xim().

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().


Variable Documentation

struct ASImageFormatHandlers asimage_format_handlers[ASA_Formats] [static]

Referenced by start_image_output().

int asimage_quality_level = ASIMAGE_QUALITY_GOOD [static]

Definition at line 116 of file imencdec.c.

Referenced by start_image_output().


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