Blender V2.61 - r43446
Defines | Functions

imageprocess.c File Reference

#include <stdlib.h>
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "math.h"

Go to the source code of this file.

Defines

#define MAX2(x, y)   ( (x)>(y) ? (x) : (y) )

Functions

void IMB_convert_rgba_to_abgr (struct ImBuf *ibuf)
static void pixel_from_buffer (struct ImBuf *ibuf, unsigned char **outI, float **outF, int x, int y)
static float P (float k)
void bicubic_interpolation_color (struct ImBuf *in, unsigned char *outI, float *outF, float u, float v)
void bicubic_interpolation (ImBuf *in, ImBuf *out, float u, float v, int xout, int yout)
void bilinear_interpolation_color (struct ImBuf *in, unsigned char *outI, float *outF, float u, float v)
void bilinear_interpolation_color_wrap (struct ImBuf *in, unsigned char *outI, float *outF, float u, float v)
void bilinear_interpolation (ImBuf *in, ImBuf *out, float u, float v, int xout, int yout)
void neareast_interpolation_color (struct ImBuf *in, unsigned char *outI, float *outF, float u, float v)
void neareast_interpolation (ImBuf *in, ImBuf *out, float x, float y, int xout, int yout)

Detailed Description

Definition in file imageprocess.c.


Define Documentation

#define MAX2 (   x,
 
)    ( (x)>(y) ? (x) : (y) )

Definition at line 51 of file imageprocess.c.

Referenced by P().


Function Documentation

void bicubic_interpolation ( struct ImBuf in,
struct ImBuf out,
float  u,
float  v,
int  xout,
int  yout 
)
void bicubic_interpolation_color ( struct ImBuf in,
unsigned char *  outI,
float *  outF,
float  u,
float  v 
)
void bilinear_interpolation ( ImBuf in,
ImBuf out,
float  u,
float  v,
int  xout,
int  yout 
)
void bilinear_interpolation_color ( struct ImBuf in,
unsigned char *  outI,
float *  outF,
float  u,
float  v 
)
void bilinear_interpolation_color_wrap ( struct ImBuf in,
unsigned char *  outI,
float *  outF,
float  u,
float  v 
)

Definition at line 319 of file imageprocess.c.

References floorf, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.

Referenced by project_face_pixel(), and project_paint_PickColor().

void IMB_convert_rgba_to_abgr ( struct ImBuf ibuf)

Change the ordering of the color bytes pointed to by rect from rgba to abgr. size * 4 color bytes are reordered.

Attention:
Defined in imageprocess.c

Definition at line 54 of file imageprocess.c.

References if(), ImBuf::rect, ImBuf::rect_float, size(), ImBuf::x, and ImBuf::y.

Referenced by do_paintface_box_select(), do_paintvert_box_select(), do_plugin_effect(), IMB_anim_absolute(), imb_cocoaLoadImage(), imb_loadiris(), imb_loadtarga(), imb_read_tiff_pixels(), imb_saveiris(), index_rebuild_fallback(), and view3d_read_backbuf().

void neareast_interpolation ( ImBuf in,
ImBuf out,
float  x,
float  y,
int  xout,
int  yout 
)
void neareast_interpolation_color ( struct ImBuf in,
unsigned char *  outI,
float *  outF,
float  u,
float  v 
)

Definition at line 395 of file imageprocess.c.

References if(), ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.

Referenced by neareast_interpolation().

static float P ( float  k) [static]
static void pixel_from_buffer ( struct ImBuf ibuf,
unsigned char **  outI,
float **  outF,
int  x,
int  y 
) [static]