Go to the source code of this file.
Defines | |
#define | HUE16_RANGE (85<<7) |
#define | MAX_HUE16 0x0000FEFF |
#define | MIN_HUE16 0x00000001 |
#define | percent2val16(p) ((((CARD32)(p))*0x00FFFF)/100) |
#define | val162percent(p) ((((CARD32)(p))*100)/0x00FF00) |
Typedefs | |
typedef void(*) | merge_scanlines_func (struct ASScanline *bottom, struct ASScanline *top, int offset) |
Functions | |
int | normalize_degrees_val (int degrees) |
CARD32 | degrees2hue16 (int degrees) |
int | hue162degrees (CARD32 hue) |
CARD32 | rgb2value (CARD32 red, CARD32 green, CARD32 blue) |
CARD32 | rgb2saturation (CARD32 red, CARD32 green, CARD32 blue) |
CARD32 | rgb2hue (CARD32 red, CARD32 green, CARD32 blue) |
CARD32 | rgb2luminance (CARD32 red, CARD32 green, CARD32 blue) |
CARD32 | rgb2hsv (CARD32 red, CARD32 green, CARD32 blue, CARD32 *saturation, CARD32 *value) |
CARD32 | rgb2hls (CARD32 red, CARD32 green, CARD32 blue, CARD32 *luminance, CARD32 *saturation) |
void | hsv2rgb (CARD32 hue, CARD32 saturation, CARD32 value, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | hls2rgb (CARD32 hue, CARD32 luminance, CARD32 saturation, CARD32 *red, CARD32 *green, CARD32 *blue) |
void | alphablend_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | allanon_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | tint_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | add_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | sub_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | diff_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | darken_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | lighten_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | screen_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | overlay_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | hue_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | saturate_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | value_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | colorize_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
void | dissipate_scanlines (struct ASScanline *bottom, struct ASScanline *top, int offset) |
merge_scanlines_func | blend_scanlines_name2func (const char *name) |
void | list_scanline_merging (FILE *stream, const char *format) |
#define HUE16_RANGE (85<<7) |
#define MAX_HUE16 0x0000FEFF |
#define MIN_HUE16 0x00000001 |
typedef void(*) merge_scanlines_func(struct ASScanline *bottom, struct ASScanline *top, int offset) |
void add_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
void allanon_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 435 of file blender.c.
References BLEND_SCANLINES_HEADER, and i.
Referenced by fill_with_pixmapped_background().
void alphablend_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 382 of file blender.c.
References a, BLEND_SCANLINES_HEADER, and i.
Referenced by TASImage::Bevel(), TASImage::Gradient(), and init_image_layers().
merge_scanlines_func blend_scanlines_name2func | ( | const char * | name | ) |
Definition at line 332 of file blender.c.
References merge_scanlines_func_desc::func, i, mystrncasecmp, NULL, and std_merge_scanlines_func_list.
Referenced by TASImage::CreateThumbnail(), handle_asxml_tag_composite(), and TASImage::Merge().
void colorize_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
void darken_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
CARD32 degrees2hue16 | ( | int | degrees | ) |
Definition at line 160 of file blender.c.
References HUE16_RANGE, and MIN_HUE16.
Referenced by adjust_asimage_hsv().
void diff_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
void dissipate_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 695 of file blender.c.
References a, BLEND_SCANLINES_HEADER, i, MY_RND32, and rnd32_seed.
void hls2rgb | ( | CARD32 | hue, | |
CARD32 | luminance, | |||
CARD32 | saturation, | |||
CARD32 * | red, | |||
CARD32 * | green, | |||
CARD32 * | blue | |||
) |
Definition at line 284 of file blender.c.
References INTERPRET_HUE16.
Referenced by colorize_scanlines().
void hsv2rgb | ( | CARD32 | hue, | |
CARD32 | saturation, | |||
CARD32 | value, | |||
CARD32 * | red, | |||
CARD32 * | green, | |||
CARD32 * | blue | |||
) |
Definition at line 226 of file blender.c.
References INTERPRET_HUE16.
Referenced by adjust_asimage_hsv(), hue_scanlines(), saturate_scanlines(), and value_scanlines().
int hue162degrees | ( | CARD32 | hue | ) |
Definition at line 172 of file blender.c.
References HUE16_RANGE, and MAX_HUE16.
Referenced by handle_asxml_tag_color(), and handle_asxml_tag_hsv().
void hue_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 611 of file blender.c.
References BLEND_SCANLINES_HEADER, hsv2rgb(), i, rgb2hue(), rgb2saturation(), rgb2value(), and value.
void lighten_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
void list_scanline_merging | ( | FILE * | stream, | |
const char * | format | |||
) |
int normalize_degrees_val | ( | int | degrees | ) |
void overlay_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 589 of file blender.c.
References BLEND_SCANLINES_HEADER, DO_OVERLAY_VALUE, and i.
CARD32 rgb2hls | ( | CARD32 | red, | |
CARD32 | green, | |||
CARD32 | blue, | |||
CARD32 * | luminance, | |||
CARD32 * | saturation | |||
) |
Definition at line 255 of file blender.c.
References MAKE_HUE16, MAX, and MIN.
Referenced by colorize_scanlines().
CARD32 rgb2hsv | ( | CARD32 | red, | |
CARD32 | green, | |||
CARD32 | blue, | |||
CARD32 * | saturation, | |||
CARD32 * | value | |||
) |
Definition at line 202 of file blender.c.
References MAKE_HUE16, MAX, and MIN.
Referenced by handle_asxml_tag_color(), saturate_scanlines(), and value_scanlines().
CARD32 rgb2hue | ( | CARD32 | red, | |
CARD32 | green, | |||
CARD32 | blue | |||
) |
Definition at line 181 of file blender.c.
References MAKE_HUE16, MAX, and MIN.
Referenced by adjust_asimage_hsv(), handle_asxml_tag_hsv(), and hue_scanlines().
CARD32 rgb2luminance | ( | CARD32 | red, | |
CARD32 | green, | |||
CARD32 | blue | |||
) |
CARD32 rgb2saturation | ( | CARD32 | red, | |
CARD32 | green, | |||
CARD32 | blue | |||
) |
Definition at line 55 of file blender.c.
Referenced by adjust_asimage_hsv(), hue_scanlines(), and saturate_scanlines().
CARD32 rgb2value | ( | CARD32 | red, | |
CARD32 | green, | |||
CARD32 | blue | |||
) |
Definition at line 47 of file blender.c.
References MAX.
Referenced by adjust_asimage_hsv(), hue_scanlines(), and value_scanlines().
void saturate_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 631 of file blender.c.
References BLEND_SCANLINES_HEADER, hsv2rgb(), i, rgb2hsv(), rgb2saturation(), and value.
void screen_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 566 of file blender.c.
References BLEND_SCANLINES_HEADER, DO_SCREEN_VALUE, and i.
void sub_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
void tint_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
void value_scanlines | ( | struct ASScanline * | bottom, | |
struct ASScanline * | top, | |||
int | offset | |||
) |
Definition at line 648 of file blender.c.
References BLEND_SCANLINES_HEADER, hsv2rgb(), i, rgb2hsv(), rgb2value(), and value.