Blender V2.61 - r43446
|
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_filter.h"
#include "imbuf.h"
Go to the source code of this file.
Functions | |
static void | filtrow (unsigned char *point, int x) |
static void | filtrowf (float *point, int x) |
static void | filtcolum (unsigned char *point, int y, int skip) |
static void | filtcolumf (float *point, int y, int skip) |
void | IMB_filtery (struct ImBuf *ibuf) |
void | imb_filterx (struct ImBuf *ibuf) |
void | IMB_filterN (ImBuf *out, ImBuf *in) |
void | IMB_filter (struct ImBuf *ibuf) |
void | IMB_mask_filter_extend (char *mask, int width, int height) |
void | IMB_mask_clear (ImBuf *ibuf, char *mask, int val) |
static int | filter_make_index (const int x, const int y, const int w, const int h) |
static int | check_pixel_assigned (const void *buffer, const char *mask, const int index, const int depth, const int is_float) |
void | IMB_filter_extend (struct ImBuf *ibuf, char *mask, int filter) |
void | IMB_remakemipmap (ImBuf *ibuf, int use_filter) |
void | IMB_makemipmap (ImBuf *ibuf, int use_filter) |
ImBuf * | IMB_getmipmap (ImBuf *ibuf, int level) |
void | IMB_premultiply_rect (unsigned int *rect, char planes, int w, int h) |
void | IMB_premultiply_rect_float (float *rect_float, char planes, int w, int h) |
void | IMB_premultiply_alpha (ImBuf *ibuf) |
Definition in file filter.c.
static int check_pixel_assigned | ( | const void * | buffer, |
const char * | mask, | ||
const int | index, | ||
const int | depth, | ||
const int | is_float | ||
) | [static] |
static void filtcolum | ( | unsigned char * | point, |
int | y, | ||
int | skip | ||
) | [static] |
static void filtcolumf | ( | float * | point, |
int | y, | ||
int | skip | ||
) | [static] |
Definition at line 116 of file filter.c.
Referenced by IMB_filtery().
static int filter_make_index | ( | const int | x, |
const int | y, | ||
const int | w, | ||
const int | h | ||
) | [static] |
Definition at line 329 of file filter.c.
Referenced by IMB_filter_extend().
static void filtrow | ( | unsigned char * | point, |
int | x | ||
) | [static] |
static void filtrowf | ( | float * | point, |
int | x | ||
) | [static] |
Definition at line 73 of file filter.c.
Referenced by imb_filterx().
void IMB_filter | ( | struct ImBuf * | ibuf | ) |
Definition at line 259 of file filter.c.
References imb_filterx(), and IMB_filtery().
void IMB_filter_extend | ( | struct ImBuf * | ibuf, |
char * | mask, | ||
int | filter | ||
) |
Definition at line 358 of file filter.c.
References check_pixel_assigned(), filter(), filter_make_index(), FILTER_MASK_MARGIN, i, MEM_dupallocN(), MEM_freeN(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by RE_bake_ibuf_filter().
Definition at line 211 of file filter.c.
References ImBuf::rect, ImBuf::x, and ImBuf::y.
Referenced by IMB_makemipmap(), and IMB_remakemipmap().
void imb_filterx | ( | struct ImBuf * | ibuf | ) |
Definition at line 174 of file filter.c.
References filtrow(), filtrowf(), ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_double_x(), and IMB_filter().
void IMB_filtery | ( | struct ImBuf * | ibuf | ) |
Definition at line 136 of file filter.c.
References filtcolum(), filtcolumf(), ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by avi_fetchibuf(), IMB_anim_absolute(), IMB_double_y(), IMB_filter(), and input_preprocess().
Definition at line 526 of file filter.c.
References CLAMP(), ImBuf::mipmap, and ImBuf::miptot.
Referenced by IMB_tiles_to_rect().
void IMB_makemipmap | ( | ImBuf * | ibuf, |
int | use_filter | ||
) |
Definition at line 496 of file filter.c.
References IB_MIPMAP_LEVELS, IB_rect, IMB_allocImBuf(), IMB_filterN(), IMB_freeImBuf(), imb_freemipmapImBuf(), IMB_onehalf(), ImBuf::miplevel, ImBuf::mipmap, ImBuf::miptot, ImBuf::x, and ImBuf::y.
Referenced by draw_bgpic(), and image_mipmap_test().
void IMB_mask_clear | ( | ImBuf * | ibuf, |
char * | mask, | ||
int | val | ||
) |
Definition at line 304 of file filter.c.
References ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
void IMB_mask_filter_extend | ( | char * | mask, |
int | width, | ||
int | height | ||
) |
Definition at line 265 of file filter.c.
References FILTER_MASK_MARGIN, MEM_dupallocN(), and MEM_freeN().
void IMB_premultiply_alpha | ( | ImBuf * | ibuf | ) |
Definition at line 584 of file filter.c.
References IMB_premultiply_rect(), IMB_premultiply_rect_float(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_ibImageFromMemory(), imb_read_tiff_pixels(), and input_preprocess().
void IMB_premultiply_rect | ( | unsigned int * | rect, |
char | planes, | ||
int | w, | ||
int | h | ||
) |
Definition at line 532 of file filter.c.
References simple_enum_gen::val, and simple_enum_gen::w.
Referenced by imb_loadtiletiff(), and IMB_premultiply_alpha().
void IMB_premultiply_rect_float | ( | float * | rect_float, |
char | planes, | ||
int | w, | ||
int | h | ||
) |
Definition at line 558 of file filter.c.
References simple_enum_gen::val, and simple_enum_gen::w.
Referenced by IMB_premultiply_alpha().
void IMB_remakemipmap | ( | ImBuf * | ibuf, |
int | use_filter | ||
) |
Definition at line 462 of file filter.c.
References IB_MIPMAP_LEVELS, IB_rect, IMB_allocImBuf(), IMB_filterN(), IMB_freeImBuf(), imb_onehalf_no_alloc(), ImBuf::miplevel, ImBuf::mipmap, ImBuf::miptot, ImBuf::x, and ImBuf::y.
Referenced by draw_bgpic(), and image_mipmap_test().