Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/IMB_imbuf.h
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| #ifndef __IMB_IMBUF_H__ | #ifndef __IMB_IMBUF_H__ | ||||
| #define __IMB_IMBUF_H__ | #define __IMB_IMBUF_H__ | ||||
| /* for bool */ | /* for bool */ | ||||
| #include "../blenlib/BLI_sys_types.h" | #include "../blenlib/BLI_sys_types.h" | ||||
| #include "IMB_imbuf_enums.h" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| #define IM_MAX_SPACE 64 | #define IM_MAX_SPACE 64 | ||||
| /** | /** | ||||
| * | * | ||||
| Show All 26 Lines | |||||
| void IMB_exit(void); | void IMB_exit(void); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in readimage.c | * \attention Defined in readimage.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_ibImageFromMemory(const unsigned char *mem, | struct ImBuf *IMB_ibImageFromMemory(const unsigned char *mem, | ||||
| size_t size, | size_t size, | ||||
| int flags, | eImBufFlags flags, | ||||
| char colorspace[IM_MAX_SPACE], | char colorspace[IM_MAX_SPACE], | ||||
| const char *descr); | const char *descr); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in readimage.c | * \attention Defined in readimage.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_testiffname(const char *filepath, int flags); | struct ImBuf *IMB_testiffname(const char *filepath, eImBufFlags flags); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in readimage.c | * \attention Defined in readimage.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_loadiffname(const char *filepath, int flags, char colorspace[IM_MAX_SPACE]); | struct ImBuf *IMB_loadiffname(const char *filepath, | ||||
| eImBufFlags flags, | |||||
| char colorspace[IM_MAX_SPACE]); | |||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in allocimbuf.c | * \attention Defined in allocimbuf.c | ||||
| */ | */ | ||||
| void IMB_freeImBuf(struct ImBuf *ibuf); | void IMB_freeImBuf(struct ImBuf *ibuf); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in allocimbuf.c | * \attention Defined in allocimbuf.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_allocImBuf(unsigned int x, | struct ImBuf *IMB_allocImBuf(unsigned int x, | ||||
| unsigned int y, | unsigned int y, | ||||
| unsigned char planes, | unsigned char planes, | ||||
| unsigned int flags); | eImBufFlags flags); | ||||
| /** | /** | ||||
| * Initialize given ImBuf. | * Initialize given ImBuf. | ||||
| * | * | ||||
| * Use in cases when temporary image buffer is allocated on stack. | * Use in cases when temporary image buffer is allocated on stack. | ||||
| * | * | ||||
| * \attention Defined in allocimbuf.c | * \attention Defined in allocimbuf.c | ||||
| */ | */ | ||||
| bool IMB_initImBuf( | bool IMB_initImBuf( | ||||
| struct ImBuf *ibuf, unsigned int x, unsigned int y, unsigned char planes, unsigned int flags); | struct ImBuf *ibuf, unsigned int x, unsigned int y, unsigned char planes, eImBufFlags flags); | ||||
| /** | /** | ||||
| * Create a copy of a pixel buffer and wrap it to a new ImBuf | * Create a copy of a pixel buffer and wrap it to a new ImBuf | ||||
| * \attention Defined in allocimbuf.c | * \attention Defined in allocimbuf.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_allocFromBuffer(const unsigned int *rect, | struct ImBuf *IMB_allocFromBuffer(const unsigned int *rect, | ||||
| const float *rectf, | const float *rectf, | ||||
| unsigned int w, | unsigned int w, | ||||
| ▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| bool IMB_anim_get_fps(struct anim *anim, short *frs_sec, float *frs_sec_base, bool no_av_base); | bool IMB_anim_get_fps(struct anim *anim, short *frs_sec, float *frs_sec_base, bool no_av_base); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in anim_movie.c | * \attention Defined in anim_movie.c | ||||
| */ | */ | ||||
| struct anim *IMB_open_anim(const char *name, | struct anim *IMB_open_anim(const char *name, | ||||
| int ib_flags, | eImBufFlags ib_flags, | ||||
| int streamindex, | int streamindex, | ||||
| char colorspace[IM_MAX_SPACE]); | char colorspace[IM_MAX_SPACE]); | ||||
| void IMB_suffix_anim(struct anim *anim, const char *suffix); | void IMB_suffix_anim(struct anim *anim, const char *suffix); | ||||
| void IMB_close_anim(struct anim *anim); | void IMB_close_anim(struct anim *anim); | ||||
| void IMB_close_anim_proxies(struct anim *anim); | void IMB_close_anim_proxies(struct anim *anim); | ||||
| /** | /** | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
| * \attention Defined in scaling.c | * \attention Defined in scaling.c | ||||
| */ | */ | ||||
| void IMB_scaleImBuf_threaded(struct ImBuf *ibuf, unsigned int newx, unsigned int newy); | void IMB_scaleImBuf_threaded(struct ImBuf *ibuf, unsigned int newx, unsigned int newy); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in writeimage.c | * \attention Defined in writeimage.c | ||||
| */ | */ | ||||
| short IMB_saveiff(struct ImBuf *ibuf, const char *filepath, int flags); | short IMB_saveiff(struct ImBuf *ibuf, const char *filepath, eImBufFlags flags); | ||||
| bool IMB_prepare_write_ImBuf(const bool isfloat, struct ImBuf *ibuf); | bool IMB_prepare_write_ImBuf(const bool isfloat, struct ImBuf *ibuf); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in util.c | * \attention Defined in util.c | ||||
| */ | */ | ||||
| bool IMB_ispic(const char *name); | bool IMB_ispic(const char *name); | ||||
| int IMB_ispic_type(const char *name); | int IMB_ispic_type(const char *name); | ||||
| ▲ Show 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
| void IMB_alpha_under_color_float(float *rect_float, int x, int y, float backcol[3]); | void IMB_alpha_under_color_float(float *rect_float, int x, int y, float backcol[3]); | ||||
| void IMB_alpha_under_color_byte(unsigned char *rect, int x, int y, float backcol[3]); | void IMB_alpha_under_color_byte(unsigned char *rect, int x, int y, float backcol[3]); | ||||
| /** | /** | ||||
| * | * | ||||
| * \attention defined in readimage.c | * \attention defined in readimage.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_loadifffile( | struct ImBuf *IMB_loadifffile(int file, | ||||
| int file, const char *filepath, int flags, char colorspace[IM_MAX_SPACE], const char *descr); | const char *filepath, | ||||
| eImBufFlags flags, | |||||
| char colorspace[IM_MAX_SPACE], | |||||
| const char *descr); | |||||
| /** | /** | ||||
| * | * | ||||
| * \attention defined in scaling.c | * \attention defined in scaling.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_half_x(struct ImBuf *ibuf1); | struct ImBuf *IMB_half_x(struct ImBuf *ibuf1); | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines | |||||