Blender V2.61 - r43446
Defines | Functions

BKE_image.h File Reference

Go to the source code of this file.

Defines

#define IMA_SRC_CHECK   0
#define IMA_SRC_FILE   1
#define IMA_SRC_SEQUENCE   2
#define IMA_SRC_MOVIE   3
#define IMA_SRC_GENERATED   4
#define IMA_SRC_VIEWER   5
#define IMA_TYPE_IMAGE   0
#define IMA_TYPE_MULTILAYER   1
#define IMA_TYPE_UV_TEST   2
#define IMA_TYPE_R_RESULT   4
#define IMA_TYPE_COMPOSITE   5
#define IMA_OK   1
#define IMA_OK_LOADED   2
#define IMA_SIGNAL_RELOAD   0
#define IMA_SIGNAL_FREE   1
#define IMA_SIGNAL_SRC_CHANGE   5
#define IMA_SIGNAL_USER_NEW_IMAGE   6
#define IMA_CHAN_FLAG_BW   1
#define IMA_CHAN_FLAG_RGB   2
#define IMA_CHAN_FLAG_ALPHA   4

Functions

void free_image (struct Image *me)
void BKE_stamp_info (struct Scene *scene, struct Object *camera, struct ImBuf *ibuf)
void BKE_stamp_buf (struct Scene *scene, struct Object *camera, unsigned char *rect, float *rectf, int width, int height, int channels)
int BKE_alphatest_ibuf (struct ImBuf *ibuf)
int BKE_write_ibuf_stamp (struct Scene *scene, struct Object *camera, struct ImBuf *ibuf, const char *name, struct ImageFormatData *imf)
int BKE_write_ibuf (struct ImBuf *ibuf, const char *name, struct ImageFormatData *imf)
int BKE_write_ibuf_as (struct ImBuf *ibuf, const char *name, struct ImageFormatData *imf, const short is_copy)
void BKE_makepicstring (char *string, const char *base, const char *relbase, int frame, char imtype, const short use_ext, const short use_frames)
int BKE_add_image_extension (char *string, const char imtype)
char BKE_ftype_to_imtype (const int ftype)
int BKE_imtype_to_ftype (char imtype)
int BKE_imtype_is_movie (const char imtype)
int BKE_imtype_supports_zbuf (const char imtype)
int BKE_imtype_supports_compress (const char imtype)
int BKE_imtype_supports_quality (const char imtype)
char BKE_imtype_valid_channels (const char imtype)
char BKE_imtype_valid_depths (const char imtype)
char BKE_imtype_from_arg (const char *arg)
struct animopenanim (const char *name, int flags, int streamindex)
void image_de_interlace (struct Image *ima, int odd)
void make_local_image (struct Image *ima)
void tag_image_time (struct Image *ima)
void free_old_images (void)
struct ImBufBKE_image_get_ibuf (struct Image *ima, struct ImageUser *iuser)
struct ImBufBKE_image_acquire_ibuf (struct Image *ima, struct ImageUser *iuser, void **lock_r)
void BKE_image_release_ibuf (struct Image *ima, void *lock)
struct ImageBKE_add_image_file (const char *name)
struct ImageBKE_add_image_size (unsigned int width, unsigned int height, const char *name, int depth, int floatbuf, short uvtestgrid, float color[4])
struct ImageBKE_add_image_imbuf (struct ImBuf *ibuf)
void BKE_image_signal (struct Image *ima, struct ImageUser *iuser, int signal)
struct ImageBKE_image_verify_viewer (int type, const char *name)
void BKE_image_assign_ibuf (struct Image *ima, struct ImBuf *ibuf)
void BKE_image_user_calc_frame (struct ImageUser *iuser, int cfra, int fieldnr)
int BKE_image_user_get_frame (const struct ImageUser *iuser, int cfra, int fieldnr)
void BKE_image_user_new_image (struct Image *ima, struct ImageUser *iuser)
struct RenderPassBKE_image_multilayer_index (struct RenderResult *rr, struct ImageUser *iuser)
struct RenderResultBKE_image_acquire_renderresult (struct Scene *scene, struct Image *ima)
void BKE_image_release_renderresult (struct Scene *scene, struct Image *ima)
void BKE_image_backup_render (struct Scene *scene, struct Image *ima)
void BKE_image_free_all_textures (void)
void BKE_image_free_anim_ibufs (struct Image *ima, int except_frame)
void BKE_image_all_free_anim_ibufs (int except_frame)
void BKE_image_memorypack (struct Image *ima)
void BKE_image_print_memlist (void)
struct Imagecopy_image (struct Image *ima)
void BKE_image_merge (struct Image *dest, struct Image *source)
int BKE_image_has_alpha (struct Image *image)
void BKE_image_buf_fill_color (unsigned char *rect, float *rect_float, int width, int height, float color[4])
void BKE_image_buf_fill_checker (unsigned char *rect, float *rect_float, int height, int width)
void BKE_image_buf_fill_checker_color (unsigned char *rect, float *rect_float, int height, int width)

Detailed Description

Since:
March 2001
Author:
nzc

Definition in file BKE_image.h.


Define Documentation

#define IMA_CHAN_FLAG_ALPHA   4

Definition at line 120 of file BKE_image.h.

Referenced by BKE_imtype_valid_channels().

#define IMA_CHAN_FLAG_BW   1

Definition at line 118 of file BKE_image.h.

Referenced by BKE_imtype_valid_channels().

#define IMA_CHAN_FLAG_RGB   2

Definition at line 119 of file BKE_image.h.

Referenced by BKE_imtype_valid_channels().

#define IMA_OK   1

Definition at line 106 of file BKE_image.h.

Referenced by BKE_add_image_file(), image_alloc(), and image_free_buffers().

#define IMA_OK_LOADED   2
#define IMA_SIGNAL_FREE   1
#define IMA_SIGNAL_RELOAD   0
#define IMA_SIGNAL_SRC_CHANGE   5

Definition at line 114 of file BKE_image.h.

Referenced by BKE_image_signal().

#define IMA_SIGNAL_USER_NEW_IMAGE   6

Definition at line 116 of file BKE_image.h.

Referenced by BKE_image_signal(), ED_space_image_set(), and image_new_exec().

#define IMA_SRC_CHECK   0

Definition at line 89 of file BKE_image.h.

#define IMA_SRC_FILE   1
#define IMA_SRC_GENERATED   4
#define IMA_SRC_MOVIE   3
#define IMA_SRC_SEQUENCE   2
#define IMA_SRC_VIEWER   5
#define IMA_TYPE_COMPOSITE   5
#define IMA_TYPE_IMAGE   0
#define IMA_TYPE_MULTILAYER   1
#define IMA_TYPE_R_RESULT   4
#define IMA_TYPE_UV_TEST   2

Definition at line 100 of file BKE_image.h.

Referenced by BKE_add_image_size(), BKE_image_signal(), and rna_def_image().


Function Documentation

int BKE_add_image_extension ( char *  string,
const char  imtype 
)
struct Image* BKE_add_image_file ( const char *  name) [read]
struct Image* BKE_add_image_imbuf ( struct ImBuf ibuf) [read]
struct Image* BKE_add_image_size ( unsigned int  width,
unsigned int  height,
const char *  name,
int  depth,
int  floatbuf,
short  uvtestgrid,
float  color[4] 
) [read]
int BKE_alphatest_ibuf ( struct ImBuf ibuf)

Definition at line 1483 of file image.c.

References FALSE, ImBuf::rect, ImBuf::rect_float, TRUE, ImBuf::x, and ImBuf::y.

Referenced by RE_bake_ibuf_filter(), and save_image_doit().

char BKE_ftype_to_imtype ( const int  ftype)
struct ImBuf* BKE_image_acquire_ibuf ( struct Image ima,
struct ImageUser iuser,
void **  lock_r 
) [read]
struct RenderResult* BKE_image_acquire_renderresult ( struct Scene scene,
struct Image ima 
) [read]
void BKE_image_all_free_anim_ibufs ( int  except_frame)
void BKE_image_assign_ibuf ( struct Image ima,
struct ImBuf ibuf 
)

Definition at line 1723 of file image.c.

References IMA_NO_INDEX, and image_assign_ibuf().

void BKE_image_backup_render ( struct Scene scene,
struct Image ima 
)
void BKE_image_buf_fill_checker ( unsigned char *  rect,
float *  rect_float,
int  height,
int  width 
)

Definition at line 74 of file image_gen.c.

References fabs(), floorf, fmodf, g, hsv_to_rgb(), and powf.

Referenced by add_ibuf_size().

void BKE_image_buf_fill_checker_color ( unsigned char *  rect,
float *  rect_float,
int  height,
int  width 
)
void BKE_image_buf_fill_color ( unsigned char *  rect,
float *  rect_float,
int  width,
int  height,
float  color[4] 
)

Definition at line 36 of file image_gen.c.

Referenced by add_ibuf_size().

void BKE_image_free_all_textures ( void  )
void BKE_image_free_anim_ibufs ( struct Image ima,
int  except_frame 
)
struct ImBuf* BKE_image_get_ibuf ( struct Image ima,
struct ImageUser iuser 
) [read]
int BKE_image_has_alpha ( struct Image image)
void BKE_image_memorypack ( struct Image ima)
void BKE_image_merge ( struct Image dest,
struct Image source 
)
struct RenderPass* BKE_image_multilayer_index ( struct RenderResult rr,
struct ImageUser iuser 
) [read]
void BKE_image_print_memlist ( void  )

Definition at line 719 of file image.c.

References G, Image::id, image_mem_size(), ID::name, ID::next, and size().

Referenced by RE_Database_Free().

void BKE_image_release_ibuf ( struct Image ima,
void *  lock 
)
void BKE_image_release_renderresult ( struct Scene scene,
struct Image ima 
)
void BKE_image_signal ( struct Image ima,
struct ImageUser iuser,
int  signal 
)
void BKE_image_user_calc_frame ( struct ImageUser iuser,
int  cfra,
int  fieldnr 
)
int BKE_image_user_get_frame ( const struct ImageUser iuser,
int  cfra,
int  fieldnr 
)
void BKE_image_user_new_image ( struct Image ima,
struct ImageUser iuser 
)
struct Image* BKE_image_verify_viewer ( int  type,
const char *  name 
) [read]
char BKE_imtype_from_arg ( const char *  arg)
int BKE_imtype_is_movie ( const char  imtype)
int BKE_imtype_supports_compress ( const char  imtype)

Definition at line 917 of file image.c.

References R_IMF_IMTYPE_PNG.

Referenced by uiTemplateImageSettings().

int BKE_imtype_supports_quality ( const char  imtype)

Definition at line 926 of file image.c.

References R_IMF_IMTYPE_AVIJPEG, R_IMF_IMTYPE_JP2, and R_IMF_IMTYPE_JPEG90.

Referenced by uiTemplateImageSettings().

int BKE_imtype_supports_zbuf ( const char  imtype)

Definition at line 907 of file image.c.

References R_IMF_IMTYPE_IRIZ, and R_IMF_IMTYPE_OPENEXR.

Referenced by uiTemplateImageSettings().

int BKE_imtype_to_ftype ( char  imtype)
char BKE_imtype_valid_channels ( const char  imtype)
char BKE_imtype_valid_depths ( const char  imtype)
void BKE_makepicstring ( char *  string,
const char *  base,
const char *  relbase,
int  frame,
char  imtype,
const short  use_ext,
const short  use_frames 
)
void BKE_stamp_buf ( struct Scene scene,
struct Object camera,
unsigned char *  rect,
float *  rectf,
int  width,
int  height,
int  channels 
)
void BKE_stamp_info ( struct Scene scene,
struct Object camera,
struct ImBuf ibuf 
)
int BKE_write_ibuf ( struct ImBuf ibuf,
const char *  name,
struct ImageFormatData imf 
)
int BKE_write_ibuf_as ( struct ImBuf ibuf,
const char *  name,
struct ImageFormatData imf,
const short  is_copy 
)
int BKE_write_ibuf_stamp ( struct Scene scene,
struct Object camera,
struct ImBuf ibuf,
const char *  name,
struct ImageFormatData imf 
)
struct Image* copy_image ( struct Image ima) [read]
void free_image ( struct Image me)
void free_old_images ( void  )
void image_de_interlace ( struct Image ima,
int  odd 
)

Definition at line 160 of file image.c.

References BKE_image_get_ibuf(), de_interlace_ng(), de_interlace_st(), and NULL.

void make_local_image ( struct Image ima)
struct anim* openanim ( const char *  name,
int  flags,
int  streamindex 
) [read]
void tag_image_time ( struct Image ima)

Definition at line 631 of file image.c.

References Image::lastused, and PIL_check_seconds_timer().

Referenced by BKE_image_acquire_ibuf(), and multitex().