Blender V2.61 - r43446
|
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_allocimbuf.h"
#include "IMB_filter.h"
#include "BLO_sys_types.h"
Go to the source code of this file.
Classes | |
struct | scale_outpix_byte |
struct | scale_outpix_float |
struct | imbufRGBA |
Functions | |
struct ImBuf * | IMB_half_x (struct ImBuf *ibuf1) |
struct ImBuf * | IMB_double_fast_x (struct ImBuf *ibuf1) |
struct ImBuf * | IMB_double_x (struct ImBuf *ibuf1) |
struct ImBuf * | IMB_half_y (struct ImBuf *ibuf1) |
struct ImBuf * | IMB_double_fast_y (struct ImBuf *ibuf1) |
struct ImBuf * | IMB_double_y (struct ImBuf *ibuf1) |
void | imb_onehalf_no_alloc (struct ImBuf *ibuf2, struct ImBuf *ibuf1) |
struct ImBuf * | IMB_onehalf (struct ImBuf *ibuf1) |
static void | enlarge_picture_byte (unsigned char *src, unsigned char *dst, int src_width, int src_height, int dst_width, int dst_height) |
static void | shrink_picture_byte (unsigned char *src, unsigned char *dst, int src_width, int src_height, int dst_width, int dst_height) |
static void | q_scale_byte (unsigned char *in, unsigned char *out, int in_width, int in_height, int dst_width, int dst_height) |
static void | enlarge_picture_float (float *src, float *dst, int src_width, int src_height, int dst_width, int dst_height) |
static void | shrink_picture_float (float *src, float *dst, int src_width, int src_height, int dst_width, int dst_height) |
static void | q_scale_float (float *in, float *out, int in_width, int in_height, int dst_width, int dst_height) |
static int | q_scale_linear_interpolation (struct ImBuf *ibuf, int newx, int newy) |
static struct ImBuf * | scaledownx (struct ImBuf *ibuf, int newx) |
static struct ImBuf * | scaledowny (struct ImBuf *ibuf, int newy) |
static struct ImBuf * | scaleupx (struct ImBuf *ibuf, int newx) |
static struct ImBuf * | scaleupy (struct ImBuf *ibuf, int newy) |
static void | scalefast_Z_ImBuf (ImBuf *ibuf, int newx, int newy) |
struct ImBuf * | IMB_scaleImBuf (struct ImBuf *ibuf, unsigned int newx, unsigned int newy) |
struct ImBuf * | IMB_scalefastImBuf (struct ImBuf *ibuf, unsigned int newx, unsigned int newy) |
Definition in file scaling.c.
static void enlarge_picture_byte | ( | unsigned char * | src, |
unsigned char * | dst, | ||
int | src_width, | ||
int | src_height, | ||
int | dst_width, | ||
int | dst_height | ||
) | [static] |
static void enlarge_picture_float | ( | float * | src, |
float * | dst, | ||
int | src_width, | ||
int | src_height, | ||
int | dst_width, | ||
int | dst_height | ||
) | [static] |
Definition at line 576 of file scaling.c.
Referenced by q_scale_float().
Definition at line 119 of file scaling.c.
References ImBuf::flags, i, IMB_allocImBuf(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by double_fast_x(), and IMB_double_x().
Definition at line 244 of file scaling.c.
References ImBuf::flags, IMB_allocImBuf(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by double_fast_y(), and IMB_double_y().
Definition at line 158 of file scaling.c.
References IMB_double_fast_x(), imb_filterx(), NULL, ImBuf::rect, and ImBuf::rect_float.
Referenced by double_x().
Definition at line 282 of file scaling.c.
References IMB_double_fast_y(), IMB_filtery(), NULL, and ImBuf::rect.
Referenced by double_y().
Definition at line 53 of file scaling.c.
References ImBuf::flags, g, IMB_allocImBuf(), IMB_dupImBuf(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by half_x(), and IMB_onehalf().
Definition at line 172 of file scaling.c.
References ImBuf::flags, g, IMB_allocImBuf(), IMB_dupImBuf(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by half_y(), and IMB_onehalf().
Definition at line 346 of file scaling.c.
References ImBuf::flags, IMB_allocImBuf(), IMB_half_x(), IMB_half_y(), imb_onehalf_no_alloc(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_makemipmap(), and onehalf().
Definition at line 296 of file scaling.c.
References imb_addrectImBuf(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_onehalf(), and IMB_remakemipmap().
struct ImBuf* IMB_scalefastImBuf | ( | struct ImBuf * | ibuf, |
unsigned int | newx, | ||
unsigned int | newy | ||
) | [read] |
Definition at line 1497 of file scaling.c.
References IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_freeN(), MEM_mallocN(), NULL, ImBuf::rect, ImBuf::rect_float, scalefast_Z_ImBuf(), ImBuf::x, and ImBuf::y.
Referenced by BKE_tracking_stabilize(), icon_copy_rect(), index_rebuild_fallback(), input_preprocess(), scalefastImBuf(), and seq_proxy_build_frame().
Definition at line 1468 of file scaling.c.
References NULL, q_scale_linear_interpolation(), ImBuf::rect, ImBuf::rect_float, scaledownx(), scaledowny(), scalefast_Z_ImBuf(), scaleupx(), scaleupy(), ImBuf::x, and ImBuf::y.
Referenced by blend_file_thumb(), get_undistorted_ibuf(), icon_draw_rect(), IMB_thumb_create(), input_preprocess(), movieclip_build_proxy_ibuf(), node_composit_exec_scale(), and scaleImBuf().
static void q_scale_byte | ( | unsigned char * | in, |
unsigned char * | out, | ||
int | in_width, | ||
int | in_height, | ||
int | dst_width, | ||
int | dst_height | ||
) | [static] |
Definition at line 564 of file scaling.c.
References enlarge_picture_byte(), and shrink_picture_byte().
Referenced by q_scale_linear_interpolation().
static void q_scale_float | ( | float * | in, |
float * | out, | ||
int | in_width, | ||
int | in_height, | ||
int | dst_width, | ||
int | dst_height | ||
) | [static] |
Definition at line 764 of file scaling.c.
References enlarge_picture_float(), and shrink_picture_float().
Referenced by q_scale_linear_interpolation().
static int q_scale_linear_interpolation | ( | struct ImBuf * | ibuf, |
int | newx, | ||
int | newy | ||
) | [static] |
Definition at line 797 of file scaling.c.
References FALSE, IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_mallocN(), q_scale_byte(), q_scale_float(), ImBuf::rect, ImBuf::rect_float, TRUE, ImBuf::x, and ImBuf::y.
Referenced by IMB_scaleImBuf().
Definition at line 831 of file scaling.c.
References add(), BLI_assert, IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_freeN(), MEM_mallocN(), NULL, ImBuf::rect, ImBuf::rect_float, simple_enum_gen::val, ImBuf::x, and ImBuf::y.
Referenced by IMB_scaleImBuf().
Definition at line 961 of file scaling.c.
References add(), BLI_assert, IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_freeN(), MEM_mallocN(), NULL, ImBuf::rect, ImBuf::rect_float, simple_enum_gen::val, ImBuf::x, and ImBuf::y.
Referenced by IMB_scaleImBuf().
static void scalefast_Z_ImBuf | ( | ImBuf * | ibuf, |
int | newx, | ||
int | newy | ||
) | [static] |
Definition at line 1435 of file scaling.c.
References IB_zbuf, IMB_freezbufImBuf(), ImBuf::mall, MEM_mallocN(), NULL, ImBuf::rect, ImBuf::x, ImBuf::y, and ImBuf::zbuf.
Referenced by IMB_scalefastImBuf(), and IMB_scaleImBuf().
Definition at line 1092 of file scaling.c.
References add(), IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_freeN(), MEM_mallocN(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_scaleImBuf().
Definition at line 1259 of file scaling.c.
References add(), IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_freeN(), MEM_mallocN(), NULL, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_scaleImBuf().
static void shrink_picture_byte | ( | unsigned char * | src, |
unsigned char * | dst, | ||
int | src_width, | ||
int | src_height, | ||
int | dst_width, | ||
int | dst_height | ||
) | [static] |
Definition at line 449 of file scaling.c.
References scale_outpix_byte::a, scale_outpix_byte::b, scale_outpix_byte::g, MEM_callocN(), MEM_freeN(), NULL, scale_outpix_byte::r, simple_enum_gen::val, simple_enum_gen::w, and scale_outpix_byte::weight.
Referenced by q_scale_byte().
static void shrink_picture_float | ( | float * | src, |
float * | dst, | ||
int | src_width, | ||
int | src_height, | ||
int | dst_width, | ||
int | dst_height | ||
) | [static] |
Definition at line 650 of file scaling.c.
References scale_outpix_float::a, scale_outpix_float::b, scale_outpix_float::g, MEM_callocN(), MEM_freeN(), scale_outpix_float::r, simple_enum_gen::w, and scale_outpix_float::weight.
Referenced by q_scale_float().