|
Blender
V2.93
|
#include "../blenlib/BLI_sys_types.h"Go to the source code of this file.
Macros | |
| #define | IM_MAX_SPACE 64 |
| #define | FILTER_MASK_NULL 0 |
| #define | FILTER_MASK_MARGIN 1 |
| #define | FILTER_MASK_USED 2 |
Typedefs | |
| typedef enum IMB_BlendMode | IMB_BlendMode |
| typedef enum IMB_Timecode_Type | IMB_Timecode_Type |
| typedef enum IMB_Proxy_Size | IMB_Proxy_Size |
| typedef void(* | ScanlineThreadFunc) (void *custom_data, int start_scanline, int num_scanlines) |
Functions | |
| void | IMB_init (void) |
| void | IMB_exit (void) |
| struct ImBuf * | IMB_ibImageFromMemory (const unsigned char *mem, size_t size, int flags, char colorspace[IM_MAX_SPACE], const char *descr) |
| struct ImBuf * | IMB_testiffname (const char *filepath, int flags) |
| struct ImBuf * | IMB_loadiffname (const char *filepath, int flags, char colorspace[IM_MAX_SPACE]) |
| void | IMB_freeImBuf (struct ImBuf *ibuf) |
| struct ImBuf * | IMB_allocImBuf (unsigned int x, unsigned int y, unsigned char planes, unsigned int flags) |
| bool | IMB_initImBuf (struct ImBuf *ibuf, unsigned int x, unsigned int y, unsigned char planes, unsigned int flags) |
| struct ImBuf * | IMB_allocFromBuffer (const unsigned int *rect, const float *rectf, unsigned int w, unsigned int h, unsigned int channels) |
| void | IMB_refImBuf (struct ImBuf *ibuf) |
| struct ImBuf * | IMB_makeSingleUser (struct ImBuf *ibuf) |
| struct ImBuf * | IMB_dupImBuf (const struct ImBuf *ibuf1) |
| bool | addzbufImBuf (struct ImBuf *ibuf) |
| bool | addzbuffloatImBuf (struct ImBuf *ibuf) |
| size_t | IMB_get_size_in_memory (struct ImBuf *ibuf) |
| void | IMB_blend_color_byte (unsigned char dst[4], const unsigned char src1[4], const unsigned char src2[4], IMB_BlendMode mode) |
| void | IMB_blend_color_float (float dst[4], const float src1[4], const float src2[4], IMB_BlendMode mode) |
| void | IMB_rect_crop (struct ImBuf *ibuf, const struct rcti *crop) |
| void | IMB_rect_size_set (struct ImBuf *ibuf, const uint size[2]) |
| void | IMB_rectclip (struct ImBuf *dbuf, const struct ImBuf *sbuf, int *destx, int *desty, int *srcx, int *srcy, int *width, int *height) |
| void | IMB_rectcpy (struct ImBuf *dbuf, const struct ImBuf *sbuf, int destx, int desty, int srcx, int srcy, int width, int height) |
| void | IMB_rectblend (struct ImBuf *dbuf, const struct ImBuf *obuf, const struct ImBuf *sbuf, unsigned short *dmask, const unsigned short *curvemask, const unsigned short *texmask, float mask_max, int destx, int desty, int origx, int origy, int srcx, int srcy, int width, int height, IMB_BlendMode mode, bool accumulate) |
| void | IMB_rectblend_threaded (struct ImBuf *dbuf, const struct ImBuf *obuf, const struct ImBuf *sbuf, unsigned short *dmask, const unsigned short *curvemask, const unsigned short *texmask, float mask_max, int destx, int desty, int origx, int origy, int srcx, int srcy, int width, int height, IMB_BlendMode mode, bool accumulate) |
| void | IMB_anim_set_index_dir (struct anim *anim, const char *dir) |
| void | IMB_anim_get_fname (struct anim *anim, char *file, int size) |
| int | IMB_anim_index_get_frame_index (struct anim *anim, IMB_Timecode_Type tc, int position) |
| IMB_Proxy_Size | IMB_anim_proxy_get_existing (struct anim *anim) |
| struct IndexBuildContext * | IMB_anim_index_rebuild_context (struct anim *anim, IMB_Timecode_Type tcs_in_use, IMB_Proxy_Size proxy_sizes_in_use, int quality, const bool overwrite, struct GSet *file_list) |
| void | IMB_anim_index_rebuild (struct IndexBuildContext *context, short *stop, short *do_update, float *progress) |
| void | IMB_anim_index_rebuild_finish (struct IndexBuildContext *context, short stop) |
| int | IMB_anim_get_duration (struct anim *anim, IMB_Timecode_Type tc) |
| double | IMD_anim_get_offset (struct anim *anim) |
| bool | IMB_anim_get_fps (struct anim *anim, short *frs_sec, float *frs_sec_base, bool no_av_base) |
| struct anim * | IMB_open_anim (const char *name, int ib_flags, int streamindex, char colorspace[IM_MAX_SPACE]) |
| void | IMB_suffix_anim (struct anim *anim, const char *suffix) |
| void | IMB_close_anim (struct anim *anim) |
| void | IMB_close_anim_proxies (struct anim *anim) |
| bool | IMB_anim_can_produce_frames (const struct anim *anim) |
| int | ismovie (const char *filepath) |
| int | IMB_anim_get_image_width (struct anim *anim) |
| int | IMB_anim_get_image_height (struct anim *anim) |
| struct ImBuf * | IMB_anim_absolute (struct anim *anim, int position, IMB_Timecode_Type tc, IMB_Proxy_Size preview_size) |
| struct ImBuf * | IMB_anim_previewframe (struct anim *anim) |
| void | IMB_free_anim (struct anim *anim) |
| void | IMB_filter (struct ImBuf *ibuf) |
| void | IMB_mask_filter_extend (char *mask, int width, int height) |
| void | IMB_mask_clear (struct ImBuf *ibuf, const char *mask, int val) |
| void | IMB_filter_extend (struct ImBuf *ibuf, char *mask, int filter) |
| void | IMB_makemipmap (struct ImBuf *ibuf, int use_filter) |
| void | IMB_remakemipmap (struct ImBuf *ibuf, int use_filter) |
| struct ImBuf * | IMB_getmipmap (struct ImBuf *ibuf, int level) |
| void | IMB_tile_cache_params (int totthread, int maxmem) |
| unsigned int * | IMB_gettile (struct ImBuf *ibuf, int tx, int ty, int thread) |
| void | IMB_tiles_to_rect (struct ImBuf *ibuf) |
| void | IMB_filtery (struct ImBuf *ibuf) |
| struct ImBuf * | IMB_onehalf (struct ImBuf *ibuf1) |
| bool | IMB_scaleImBuf (struct ImBuf *ibuf, unsigned int newx, unsigned int newy) |
| bool | IMB_scalefastImBuf (struct ImBuf *ibuf, unsigned int newx, unsigned int newy) |
| void | IMB_scaleImBuf_threaded (struct ImBuf *ibuf, unsigned int newx, unsigned int newy) |
| bool | IMB_saveiff (struct ImBuf *ibuf, const char *filepath, int flags) |
| bool | IMB_prepare_write_ImBuf (const bool isfloat, struct ImBuf *ibuf) |
| bool | IMB_ispic (const char *filepath) |
| bool | IMB_ispic_type_matches (const char *filepath, int filetype) |
| int | IMB_ispic_type_from_memory (const unsigned char *buf, const size_t buf_size) |
| int | IMB_ispic_type (const char *filepath) |
| bool | IMB_isanim (const char *filepath) |
| int | imb_get_anim_type (const char *filepath) |
| bool | IMB_isfloat (const struct ImBuf *ibuf) |
| bool | IMB_alpha_affects_rgb (const struct ImBuf *ibuf) |
| void | IMB_rect_from_float (struct ImBuf *ibuf) |
| void | IMB_float_from_rect (struct ImBuf *ibuf) |
| void | IMB_color_to_bw (struct ImBuf *ibuf) |
| void | IMB_saturation (struct ImBuf *ibuf, float sat) |
| void | IMB_buffer_byte_from_float (unsigned char *rect_to, const float *rect_from, int channels_from, float dither, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from) |
| void | IMB_buffer_byte_from_float_mask (unsigned char *rect_to, const float *rect_from, int channels_from, float dither, bool predivide, int width, int height, int stride_to, int stride_from, char *mask) |
| void | IMB_buffer_float_from_byte (float *rect_to, const unsigned char *rect_from, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from) |
| void | IMB_buffer_float_from_float (float *rect_to, const float *rect_from, int channels_from, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from) |
| void | IMB_buffer_float_from_float_threaded (float *rect_to, const float *rect_from, int channels_from, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from) |
| void | IMB_buffer_float_from_float_mask (float *rect_to, const float *rect_from, int channels_from, int width, int height, int stride_to, int stride_from, char *mask) |
| void | IMB_buffer_byte_from_byte (unsigned char *rect_to, const unsigned char *rect_from, int profile_to, int profile_from, bool predivide, int width, int height, int stride_to, int stride_from) |
| void | IMB_buffer_float_unpremultiply (float *buf, int width, int height) |
| void | IMB_buffer_float_premultiply (float *buf, int width, int height) |
| void | IMB_convert_rgba_to_abgr (struct ImBuf *ibuf) |
| void | bicubic_interpolation (struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout) |
| void | nearest_interpolation (struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout) |
| void | bilinear_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[4], float outF[4], float u, float v) |
| void | nearest_interpolation_color (struct ImBuf *in, unsigned char outI[4], float outF[4], float u, float v) |
| void | nearest_interpolation_color_wrap (struct ImBuf *in, unsigned char outI[4], float outF[4], float u, float v) |
| void | bilinear_interpolation_color (struct ImBuf *in, unsigned char outI[4], float outF[4], float u, float v) |
| void | bilinear_interpolation_color_wrap (struct ImBuf *in, unsigned char outI[4], float outF[4], float u, float v) |
| 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, const float backcol[3]) |
| void | IMB_sampleImageAtLocation (struct ImBuf *ibuf, float x, float y, bool make_linear_rgb, float color[4]) |
| struct ImBuf * | IMB_loadifffile (int file, const char *filepath, int flags, char colorspace[IM_MAX_SPACE], const char *descr) |
| 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_flipx (struct ImBuf *ibuf) |
| void | IMB_flipy (struct ImBuf *ibuf) |
| void | IMB_premultiply_alpha (struct ImBuf *ibuf) |
| void | IMB_unpremultiply_alpha (struct ImBuf *ibuf) |
| void | IMB_freezbufImBuf (struct ImBuf *ibuf) |
| void | IMB_freezbuffloatImBuf (struct ImBuf *ibuf) |
| void | IMB_rectfill (struct ImBuf *drect, const float col[4]) |
| void | IMB_rectfill_area (struct ImBuf *ibuf, const float col[4], int x1, int y1, int x2, int y2, struct ColorManagedDisplay *display) |
| void | IMB_rectfill_area_replace (const struct ImBuf *ibuf, const float col[4], int x1, int y1, int x2, int y2) |
| void | IMB_rectfill_alpha (struct ImBuf *ibuf, const float value) |
| void | buf_rectfill_area (unsigned char *rect, float *rectf, int width, int height, const float col[4], struct ColorManagedDisplay *display, int x1, int y1, int x2, int y2) |
| void * | imb_alloc_pixels (unsigned int x, unsigned int y, unsigned int channels, size_t typesize, const char *name) |
| bool | imb_addrectImBuf (struct ImBuf *ibuf) |
| void | imb_freerectImBuf (struct ImBuf *ibuf) |
| bool | imb_addrectfloatImBuf (struct ImBuf *ibuf) |
| void | imb_freerectfloatImBuf (struct ImBuf *ibuf) |
| void | imb_freemipmapImBuf (struct ImBuf *ibuf) |
| bool | imb_addtilesImBuf (struct ImBuf *ibuf) |
| void | imb_freetilesImBuf (struct ImBuf *ibuf) |
| void | imb_freerectImbuf_all (struct ImBuf *ibuf) |
| void | IMB_processor_apply_threaded (int buffer_lines, int handle_size, void *init_customdata, void(init_handle)(void *handle, int start_line, int tot_line, void *customdata), void *(do_thread)(void *)) |
| void | IMB_processor_apply_threaded_scanlines (int total_scanlines, ScanlineThreadFunc do_thread, void *custom_data) |
| void | IMB_ffmpeg_init (void) |
| const char * | IMB_ffmpeg_last_error (void) |
| struct GPUTexture * | IMB_create_gpu_texture (const char *name, struct ImBuf *ibuf, bool use_high_bitdepth, bool use_premult, bool limit_gl_texture_size) |
| struct GPUTexture * | IMB_touch_gpu_texture (const char *name, struct ImBuf *ibuf, int w, int h, int layers, bool use_high_bitdepth) |
| void | IMB_update_gpu_texture_sub (struct GPUTexture *tex, struct ImBuf *ibuf, int x, int y, int z, int w, int h, bool use_high_bitdepth, bool use_premult) |
| void | IMB_stereo3d_write_dimensions (const char mode, const bool is_squeezed, const size_t width, const size_t height, size_t *r_width, size_t *r_height) |
| void | IMB_stereo3d_read_dimensions (const char mode, const bool is_squeezed, const size_t width, const size_t height, size_t *r_width, size_t *r_height) |
| int * | IMB_stereo3d_from_rect (struct ImageFormatData *im_format, const size_t x, const size_t y, const size_t channels, int *rect_left, int *rect_right) |
| float * | IMB_stereo3d_from_rectf (struct ImageFormatData *im_format, const size_t x, const size_t y, const size_t channels, float *rectf_left, float *rectf_right) |
| struct ImBuf * | IMB_stereo3d_ImBuf (struct ImageFormatData *im_format, struct ImBuf *ibuf_left, struct ImBuf *ibuf_right) |
| void | IMB_ImBufFromStereo3d (struct Stereo3dFormat *s3d, struct ImBuf *ibuf_stereo, struct ImBuf **r_ibuf_left, struct ImBuf **r_ibuf_right) |
| #define FILTER_MASK_MARGIN 1 |
Definition at line 420 of file IMB_imbuf.h.
| #define FILTER_MASK_NULL 0 |
Definition at line 419 of file IMB_imbuf.h.
| #define FILTER_MASK_USED 2 |
Definition at line 421 of file IMB_imbuf.h.
| #define IM_MAX_SPACE 64 |
Definition at line 65 of file IMB_imbuf.h.
| typedef enum IMB_BlendMode IMB_BlendMode |
| typedef enum IMB_Proxy_Size IMB_Proxy_Size |
| typedef enum IMB_Timecode_Type IMB_Timecode_Type |
| typedef void(* ScanlineThreadFunc) (void *custom_data, int start_scanline, int num_scanlines) |
Definition at line 735 of file IMB_imbuf.h.
| enum IMB_BlendMode |
Definition at line 197 of file IMB_imbuf.h.
| enum IMB_Proxy_Size |
| Enumerator | |
|---|---|
| IMB_PROXY_NONE | |
| IMB_PROXY_25 | |
| IMB_PROXY_50 | |
| IMB_PROXY_75 | |
| IMB_PROXY_100 | |
| IMB_PROXY_MAX_SLOT | |
Definition at line 317 of file IMB_imbuf.h.
| enum IMB_Timecode_Type |
Definition at line 298 of file IMB_imbuf.h.
| bool addzbuffloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 289 of file allocimbuf.c.
References ImBuf::flags, IB_zbuffloat, imb_alloc_pixels(), IMB_freezbuffloatImBuf(), ImBuf::mall, NULL, ImBuf::x, ImBuf::y, and ImBuf::zbuf_float.
Referenced by IMB_ImBufFromStereo3d(), IMB_initImBuf(), imb_load_openexr(), and seq_render_scene_strip().
| bool addzbufImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 272 of file allocimbuf.c.
References ImBuf::flags, IB_zbuf, imb_alloc_pixels(), IMB_freezbufImBuf(), ImBuf::mall, NULL, ImBuf::x, ImBuf::y, and ImBuf::zbuf.
Referenced by imb_addrectImBuf(), IMB_ImBufFromStereo3d(), and IMB_initImBuf().
| void bicubic_interpolation | ( | struct ImBuf * | in, |
| struct ImBuf * | out, | ||
| float | u, | ||
| float | v, | ||
| int | xout, | ||
| int | yout | ||
| ) |
Definition at line 109 of file imageprocess.c.
References bicubic_interpolation_color(), NULL, pixel_from_buffer(), ImBuf::rect, ImBuf::rect_float, and v.
| void bicubic_interpolation_color | ( | struct ImBuf * | in, |
| unsigned char | outI[4], | ||
| float | outF[4], | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 98 of file imageprocess.c.
References BLI_bicubic_interpolation_char(), BLI_bicubic_interpolation_fl(), ImBuf::rect, ImBuf::rect_float, v, ImBuf::x, and ImBuf::y.
Referenced by bicubic_interpolation(), do_projectpaint_thread(), blender::compositor::MovieClipBaseOperation::executePixelSampled(), blender::compositor::MultilayerColorOperation::executePixelSampled(), and blender::compositor::sampleImageAtLocation().
| void bilinear_interpolation | ( | struct ImBuf * | in, |
| struct ImBuf * | out, | ||
| float | u, | ||
| float | v, | ||
| int | xout, | ||
| int | yout | ||
| ) |
Definition at line 220 of file imageprocess.c.
References bilinear_interpolation_color(), NULL, pixel_from_buffer(), ImBuf::rect, ImBuf::rect_float, and v.
| void bilinear_interpolation_color | ( | struct ImBuf * | in, |
| unsigned char | outI[4], | ||
| float | outF[4], | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 130 of file imageprocess.c.
References BLI_bilinear_interpolation_char(), BLI_bilinear_interpolation_fl(), ImBuf::rect, ImBuf::rect_float, v, ImBuf::x, and ImBuf::y.
Referenced by bilinear_interpolation(), blender::compositor::MovieClipBaseOperation::executePixelSampled(), blender::compositor::MultilayerColorOperation::executePixelSampled(), and blender::compositor::sampleImageAtLocation().
| void bilinear_interpolation_color_wrap | ( | struct ImBuf * | in, |
| unsigned char | outI[4], | ||
| float | outF[4], | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 148 of file imageprocess.c.
References Freestyle::a, ceil(), clamp_v4(), floor(), floorf, ImBuf::rect, ImBuf::rect_float, v, ImBuf::x, x2, ImBuf::y, and y1.
Referenced by paint_sample_color(), project_face_pixel(), and project_paint_PickColor().
| void buf_rectfill_area | ( | unsigned char * | rect, |
| float * | rectf, | ||
| int | width, | ||
| int | height, | ||
| const float | col[4], | ||
| struct ColorManagedDisplay * | display, | ||
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2 | ||
| ) |
Definition at line 1164 of file rectop.c.
References Freestyle::a, CLAMP, col, copy_v4_v4(), fb(), height, IMB_colormanagement_display_to_scene_linear_v3(), srgb_to_linearrgb_v4(), SWAP, unit_float_to_uchar_clamp(), width, x2, and y1.
Referenced by BKE_image_stamp_buf(), and IMB_rectfill_area().
| bool imb_addrectfloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 386 of file allocimbuf.c.
References ImBuf::channels, ImBuf::flags, IB_rectfloat, imb_alloc_pixels(), imb_freerectfloatImBuf(), ImBuf::mall, NULL, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_initImBuf(), imb_load_openexr(), imb_loadpng(), modifier_color_balance_apply(), seq_imbuf_to_sequencer_space(), and ubuf_ensure_compat_ibuf().
| bool imb_addrectImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 407 of file allocimbuf.c.
References addzbufImBuf(), ImBuf::flags, IB_rect, imb_alloc_pixels(), ImBuf::mall, MEM_freeN, NULL, ImBuf::planes, ImBuf::rect, ImBuf::x, and ImBuf::y.
Referenced by colormanagement_imbuf_make_display_space(), IMB_initImBuf(), imb_load_dds(), imb_loadpng(), imb_onehalf_no_alloc(), IMB_rect_from_float(), and ubuf_ensure_compat_ibuf().
| bool imb_addtilesImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 462 of file allocimbuf.c.
References IB_tiles, ImBuf::mall, MEM_callocN, NULL, ImBuf::tiles, ImBuf::xtiles, and ImBuf::ytiles.
Referenced by imb_loadtiff().
| void* imb_alloc_pixels | ( | unsigned int | x, |
| unsigned int | y, | ||
| unsigned int | channels, | ||
| size_t | typesize, | ||
| const char * | name | ||
| ) |
Definition at line 373 of file allocimbuf.c.
References MEM_callocN, NULL, size(), SIZE_MAX, x, and y.
Referenced by addzbuffloatImBuf(), addzbufImBuf(), avi_converter_from_avi_rgb(), avi_converter_from_mjpeg(), avi_converter_from_rgb32(), avi_converter_to_mjpeg(), avi_converter_to_rgb32(), convertRGBAToLogElement(), imb_addrectfloatImBuf(), imb_addrectImBuf(), imb_loadpng(), logImageGetDataRGBA(), and logImageSetDataRGBA().
| struct ImBuf* IMB_allocFromBuffer | ( | const unsigned int * | rect, |
| const float * | rectf, | ||
| unsigned int | w, | ||
| unsigned int | h, | ||
| unsigned int | channels | ||
| ) |
Create a copy of a pixel buffer and wrap it to a new ImBuf
Definition at line 433 of file allocimbuf.c.
References ImBuf::channels, ImBuf::flags, IB_rect, IB_rectfloat, IMB_allocImBuf(), ImBuf::mall, MEM_dupallocN, NULL, ImBuf::rect, ImBuf::rect_float, and w().
Referenced by imb_gpu_get_data(), studiolight_calculate_irradiance_equirect_image(), studiolight_calculate_radiance_cubemap_buffers(), studiolight_load_equirect_image(), and update_do_scale().
| struct ImBuf* IMB_allocImBuf | ( | unsigned int | x, |
| unsigned int | y, | ||
| unsigned char | planes, | ||
| unsigned int | flags | ||
| ) |
Definition at line 478 of file allocimbuf.c.
References ImBuf::flags, IMB_freeImBuf(), IMB_initImBuf(), MEM_mallocN, NULL, ImBuf::planes, x, and y.
Referenced by accessor_get_ibuf(), add_ibuf_size(), anim_getnew(), BKE_main_thumbnail_to_imbuf(), BKE_previewimg_to_imbuf(), BKE_tracking_get_search_imbuf(), BKE_tracking_sample_pattern(), BKE_tracking_stabilize_frame(), brush_painter_imbuf_new(), brush_painter_imbuf_partial_update(), colormanage_cache_put(), blender::compositor::OutputStereoOperation::deinitExecution(), blender::compositor::OutputSingleLayerOperation::deinitExecution(), dynamicPaint_outputSurfaceImage(), ED_view3d_draw_offscreen_imbuf(), filelist_init_icons(), float_image_to_ibuf(), gpencil_render_offscreen(), GHOST_SystemCocoa::handleDraggingEvent(), ibJpegImageFromCinfo(), icon_draw_rect(), image_acquire_ibuf(), image_get_ibuf_multilayer(), image_get_render_result(), image_load_sequence_multilayer(), IMB_allocFromBuffer(), imb_bmp_decode(), IMB_double_fast_x(), IMB_double_fast_y(), IMB_dupImBuf(), IMB_half_x(), IMB_half_y(), IMB_ImBufFromStereo3d(), imb_load_dds(), imb_load_dpx_cineon(), imb_load_jp2_stream(), imb_load_openexr(), imb_loadhdr(), imb_loadiris(), imb_loadpng(), imb_loadtarga(), imb_loadtiff(), IMB_makemipmap(), imb_oiio_load_image(), imb_oiio_load_image_float(), IMB_onehalf(), imb_read_tiff_pixels(), IMB_remakemipmap(), IMB_stereo3d_ImBuf(), imb_stereo3d_squeeze_rect(), imb_stereo3d_squeeze_rectf(), IMB_thumb_load_font(), imbuf_alloc_temp_tile(), input_preprocess(), Freestyle::Canvas::loadMap(), M_imbuf_new(), make_grayscale_ibuf_copy(), make_histogram_view_from_ibuf_byte(), make_histogram_view_from_ibuf_float(), make_sep_waveform_view_from_ibuf_byte(), make_sep_waveform_view_from_ibuf_float(), make_vectorscope_view_from_ibuf_byte(), make_vectorscope_view_from_ibuf_float(), make_waveform_view_from_ibuf_byte(), make_waveform_view_from_ibuf_float(), make_zebra_view_from_ibuf(), paint_2d_lift_clone(), prepare_effect_imbufs(), RE_layer_load_from_file(), render_result_rect_to_ibuf(), Freestyle::SteerableViewMap::saveSteerableViewMap(), screen_opengl_render_doit(), screenshot_exec(), seq_disk_cache_read_file(), seq_render_effect_strip_impl(), seq_render_mask(), seq_render_scene_strip(), seq_render_strip(), seq_render_strip_stack(), thumb_create_ex(), and write_external_bake_pixels().
| bool IMB_alpha_affects_rgb | ( | const struct ImBuf * | ibuf | ) |
| void IMB_alpha_under_color_byte | ( | unsigned char * | rect, |
| int | x, | ||
| int | y, | ||
| const float | backcol[3] | ||
| ) |
Definition at line 469 of file imageprocess.c.
References Freestyle::a, alpha, mul(), x, and y.
Referenced by IMB_colormanagement_imbuf_for_write().
Definition at line 455 of file imageprocess.c.
References Freestyle::a, madd_v3_v3fl(), mul(), x, and y.
Referenced by IMB_colormanagement_imbuf_for_write().
| struct ImBuf* IMB_anim_absolute | ( | struct anim * | anim, |
| int | position, | ||
| IMB_Timecode_Type | tc, | ||
| IMB_Proxy_Size | preview_size | ||
| ) |
Definition at line 1580 of file anim_movie.c.
References an_stringdec(), an_stringenc(), ANIM_AVI, ANIM_FFMPEG, anim_getnew(), ANIM_MOVIE, ANIM_SEQUENCE, BLI_snprintf(), anim::colorspace, anim::cur_position, anim::curtype, anim::duration_in_frames, anim::first, IB_animdeinterlace, anim::ib_flags, IB_rect, IMB_anim_absolute(), IMB_anim_index_get_frame_index(), IMB_anim_open_proxy(), IMB_convert_rgba_to_abgr(), IMB_filtery(), IMB_freeImBuf(), IMB_loadiffname(), IMB_PROXY_NONE, IMB_TC_NONE, movie_fetchibuf(), anim::name, ImBuf::name, and NULL.
Referenced by build_pict_list_ex(), ibuf_from_picture(), IMB_anim_absolute(), IMB_anim_previewframe(), load_movie_single(), movieclip_load_movie_file(), openanim(), seq_proxy_fetch(), seq_render_movie_strip_custom_file_proxy(), seq_render_movie_strip_view(), thumb_create_ex(), and wm_main_playanim_intern().
| bool IMB_anim_can_produce_frames | ( | const struct anim * | anim | ) |
Definition at line 309 of file anim_movie.c.
References anim::avi, NULL, and UNUSED_VARS.
Referenced by SEQ_add_movie_reload_if_needed().
| int IMB_anim_get_duration | ( | struct anim * | anim, |
| IMB_Timecode_Type | tc | ||
| ) |
Return the length (in frames) of the given anim.
Definition at line 1671 of file anim_movie.c.
References anim::duration_in_frames, IMB_anim_open_index(), IMB_indexer_get_duration(), and IMB_TC_NONE.
Referenced by build_pict_list_ex(), image_match_len_exec(), load_movie_single(), movieclip_calc_length(), SEQ_add_movie_strip(), SEQ_add_reload_new_file(), and uiTemplateImageInfo().
| void IMB_anim_get_fname | ( | struct anim * | anim, |
| char * | file, | ||
| int | size | ||
| ) |
Definition at line 402 of file indexer.c.
References BLI_split_dirfile(), BLI_strncpy(), file, FILE_MAXFILE, anim::name, and size().
Referenced by seq_proxy_index_dir_set().
| bool IMB_anim_get_fps | ( | struct anim * | anim, |
| short * | frs_sec, | ||
| float * | frs_sec_base, | ||
| bool | no_av_base | ||
| ) |
Return the fps contained in movie files (function rval is false, and frs_sec and frs_sec_base untouched if none available!)
Definition at line 1691 of file anim_movie.c.
References BLI_assert, double(), float(), anim::frs_sec, anim::frs_sec_base, and UNUSED_VARS.
Referenced by BKE_movieclip_get_fps(), SEQ_add_movie_strip(), SEQ_time_sequence_get_fps(), uiTemplateMovieclipInformation(), and wm_main_playanim_intern().
| int IMB_anim_get_image_height | ( | struct anim * | anim | ) |
Definition at line 1729 of file anim_movie.c.
References anim::y.
Referenced by SEQ_add_movie_strip().
| int IMB_anim_get_image_width | ( | struct anim * | anim | ) |
Definition at line 1724 of file anim_movie.c.
References anim::x.
Referenced by SEQ_add_movie_strip().
| int IMB_anim_index_get_frame_index | ( | struct anim * | anim, |
| IMB_Timecode_Type | tc, | ||
| int | position | ||
| ) |
Definition at line 1480 of file indexer.c.
References IMB_anim_open_index(), and IMB_indexer_get_frame_index().
Referenced by IMB_anim_absolute(), and seq_proxy_fetch().
| void IMB_anim_index_rebuild | ( | struct IndexBuildContext * | context, |
| short * | stop, | ||
| short * | do_update, | ||
| float * | progress | ||
| ) |
Definition at line 1352 of file indexer.c.
References ANIM_FFMPEG, context, and UNUSED_VARS.
Referenced by do_movie_proxy(), and SEQ_proxy_rebuild().
| struct IndexBuildContext* IMB_anim_index_rebuild_context | ( | struct anim * | anim, |
| IMB_Timecode_Type | tcs_in_use, | ||
| IMB_Proxy_Size | proxy_sizes_in_use, | ||
| int | quality, | ||
| const bool | overwrite, | ||
| struct GSet * | file_list | ||
| ) |
Definition at line 1274 of file indexer.c.
References ANIM_FFMPEG, BLI_gset_ensure_p_ex(), BLI_strdup(), context, anim::curtype, FILE_MAX, get_proxy_filename(), IMB_anim_proxy_get_existing(), IMB_PROXY_MAX_SLOT, NULL, proxy_sizes, and UNUSED_VARS.
Referenced by clip_rebuild_proxy_exec(), and SEQ_proxy_rebuild_context().
| void IMB_anim_index_rebuild_finish | ( | struct IndexBuildContext * | context, |
| short | stop | ||
| ) |
Definition at line 1376 of file indexer.c.
References ANIM_FFMPEG, context, proxy_sizes, and UNUSED_VARS.
Referenced by proxy_endjob(), and SEQ_proxy_rebuild_finish().
Definition at line 1566 of file anim_movie.c.
References anim::duration_in_frames, IMB_anim_absolute(), IMB_freeImBuf(), IMB_PROXY_NONE, IMB_TC_NONE, and NULL.
Referenced by thumb_create_ex().
| IMB_Proxy_Size IMB_anim_proxy_get_existing | ( | struct anim * | anim | ) |
Definition at line 1491 of file indexer.c.
References BLI_exists(), FILE_MAX, get_proxy_filename(), IMB_PROXY_MAX_SLOT, and proxy_sizes.
Referenced by IMB_anim_index_rebuild_context(), and seq_proxy_need_rebuild().
| void IMB_anim_set_index_dir | ( | struct anim * | anim, |
| const char * | dir | ||
| ) |
Definition at line 1417 of file indexer.c.
References BLI_strncpy(), IMB_free_indices(), anim::index_dir, and STREQ.
Referenced by movieclip_open_anim_file(), and seq_proxy_index_dir_set().
| void IMB_blend_color_byte | ( | unsigned char | dst[4], |
| const unsigned char | src1[4], | ||
| const unsigned char | src2[4], | ||
| IMB_BlendMode | mode | ||
| ) |
Definition at line 41 of file rectop.c.
References blend_color_add_alpha_byte(), blend_color_add_byte(), blend_color_burn_byte(), blend_color_color_byte(), blend_color_darken_byte(), blend_color_difference_byte(), blend_color_dodge_byte(), blend_color_erase_alpha_byte(), blend_color_exclusion_byte(), blend_color_hardlight_byte(), blend_color_hue_byte(), blend_color_lighten_byte(), blend_color_linearburn_byte(), blend_color_linearlight_byte(), blend_color_luminosity_byte(), blend_color_mix_byte(), blend_color_mul_byte(), blend_color_overlay_byte(), blend_color_pinlight_byte(), blend_color_saturation_byte(), blend_color_screen_byte(), blend_color_softlight_byte(), blend_color_sub_byte(), blend_color_vividlight_byte(), IMB_BLEND_ADD, IMB_BLEND_ADD_ALPHA, IMB_BLEND_COLOR, IMB_BLEND_COLORBURN, IMB_BLEND_COLORDODGE, IMB_BLEND_DARKEN, IMB_BLEND_DIFFERENCE, IMB_BLEND_ERASE_ALPHA, IMB_BLEND_EXCLUSION, IMB_BLEND_HARDLIGHT, IMB_BLEND_HUE, IMB_BLEND_LIGHTEN, IMB_BLEND_LINEARBURN, IMB_BLEND_LINEARLIGHT, IMB_BLEND_LUMINOSITY, IMB_BLEND_MIX, IMB_BLEND_MUL, IMB_BLEND_OVERLAY, IMB_BLEND_PINLIGHT, IMB_BLEND_SATURATION, IMB_BLEND_SCREEN, IMB_BLEND_SOFTLIGHT, IMB_BLEND_SUB, and IMB_BLEND_VIVIDLIGHT.
Referenced by do_projectpaint_clone(), do_projectpaint_draw(), do_projectpaint_mask(), do_projectpaint_thread(), paint_2d_bucket_fill(), and paint_2d_gradient_fill().
| void IMB_blend_color_float | ( | float | dst[4], |
| const float | src1[4], | ||
| const float | src2[4], | ||
| IMB_BlendMode | mode | ||
| ) |
Definition at line 129 of file rectop.c.
References blend_color_add_alpha_float(), blend_color_add_float(), blend_color_burn_float(), blend_color_color_float(), blend_color_darken_float(), blend_color_difference_float(), blend_color_dodge_float(), blend_color_erase_alpha_float(), blend_color_exclusion_float(), blend_color_hardlight_float(), blend_color_hue_float(), blend_color_lighten_float(), blend_color_linearburn_float(), blend_color_linearlight_float(), blend_color_luminosity_float(), blend_color_mix_float(), blend_color_mul_float(), blend_color_overlay_float(), blend_color_pinlight_float(), blend_color_saturation_float(), blend_color_screen_float(), blend_color_softlight_float(), blend_color_sub_float(), blend_color_vividlight_float(), IMB_BLEND_ADD, IMB_BLEND_ADD_ALPHA, IMB_BLEND_COLOR, IMB_BLEND_COLORBURN, IMB_BLEND_COLORDODGE, IMB_BLEND_DARKEN, IMB_BLEND_DIFFERENCE, IMB_BLEND_ERASE_ALPHA, IMB_BLEND_EXCLUSION, IMB_BLEND_HARDLIGHT, IMB_BLEND_HUE, IMB_BLEND_LIGHTEN, IMB_BLEND_LINEARBURN, IMB_BLEND_LINEARLIGHT, IMB_BLEND_LUMINOSITY, IMB_BLEND_MIX, IMB_BLEND_MUL, IMB_BLEND_OVERLAY, IMB_BLEND_PINLIGHT, IMB_BLEND_SATURATION, IMB_BLEND_SCREEN, IMB_BLEND_SOFTLIGHT, IMB_BLEND_SUB, and IMB_BLEND_VIVIDLIGHT.
Referenced by do_paint_brush_task_cb_ex(), do_projectpaint_clone_f(), do_projectpaint_draw_f(), do_projectpaint_mask_f(), do_projectpaint_thread(), paint_2d_bucket_fill(), paint_2d_gradient_fill(), and sculpt_expand_colors_update_task_cb().
| void IMB_buffer_byte_from_byte | ( | unsigned char * | rect_to, |
| const unsigned char * | rect_from, | ||
| int | profile_to, | ||
| int | profile_from, | ||
| bool | predivide, | ||
| int | width, | ||
| int | height, | ||
| int | stride_to, | ||
| int | stride_from | ||
| ) |
Definition at line 651 of file divers.c.
References BLI_assert, from, height, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, linearrgb_to_srgb_predivide_v4(), linearrgb_to_srgb_v4(), rgba_float_to_uchar(), rgba_uchar_to_float(), srgb_to_linearrgb_predivide_v4(), srgb_to_linearrgb_v4(), width, x, and y.
Referenced by do_display_buffer_apply_thread(), and imb_stereo3d_squeeze_rect().
| void IMB_buffer_byte_from_float | ( | unsigned char * | rect_to, |
| const float * | rect_from, | ||
| int | channels_from, | ||
| float | dither, | ||
| int | profile_to, | ||
| int | profile_from, | ||
| bool | predivide, | ||
| int | width, | ||
| int | height, | ||
| int | stride_to, | ||
| int | stride_from | ||
| ) |
Definition at line 112 of file divers.c.
References BLI_assert, clear_dither_context(), create_dither_context(), float_to_byte_dither_v4(), from, height, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, linearrgb_to_srgb_ushort4(), linearrgb_to_srgb_v3_v3(), NULL, premul_to_straight_v4_v4(), rgb_float_to_uchar(), rgba_float_to_uchar(), srgb_to_linearrgb_predivide_v4(), srgb_to_linearrgb_v3_v3(), srgb_to_linearrgb_v4(), t, unit_float_to_uchar_clamp(), ushort_to_byte_dither_v4(), ushort_to_byte_v4(), width, x, and y.
Referenced by do_display_buffer_apply_thread(), do_glow_effect_byte(), IMB_colormanagement_buffer_make_display_space(), IMB_display_buffer_transform_apply(), IMB_rect_from_float(), partial_buffer_update_rect(), write_external_bake_pixels(), and write_internal_bake_pixels().
| void IMB_buffer_byte_from_float_mask | ( | unsigned char * | rect_to, |
| const float * | rect_from, | ||
| int | channels_from, | ||
| float | dither, | ||
| bool | predivide, | ||
| int | width, | ||
| int | height, | ||
| int | stride_to, | ||
| int | stride_from, | ||
| char * | mask | ||
| ) |
Definition at line 279 of file divers.c.
References clear_dither_context(), create_dither_context(), FILTER_MASK_USED, float_to_byte_dither_v4(), from, height, mask(), NULL, premul_to_straight_v4_v4(), rgb_float_to_uchar(), rgba_float_to_uchar(), t, unit_float_to_uchar_clamp(), width, x, and y.
Referenced by write_internal_bake_pixels().
| void IMB_buffer_float_from_byte | ( | float * | rect_to, |
| const unsigned char * | rect_from, | ||
| int | profile_to, | ||
| int | profile_from, | ||
| bool | predivide, | ||
| int | width, | ||
| int | height, | ||
| int | stride_to, | ||
| int | stride_from | ||
| ) |
Definition at line 370 of file divers.c.
References BLI_assert, from, height, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, linearrgb_to_srgb_predivide_v4(), linearrgb_to_srgb_v4(), rgba_uchar_to_float(), srgb_to_linearrgb_uchar4(), srgb_to_linearrgb_uchar4_predivide(), width, x, and y.
Referenced by do_display_buffer_apply_thread(), do_glow_effect_byte(), do_processor_transform_thread(), IMB_colormanagement_transform_from_byte(), IMB_colormanagement_transform_from_byte_threaded(), IMB_float_from_rect(), and partial_buffer_update_rect().
| void IMB_buffer_float_from_float | ( | float * | rect_to, |
| const float * | rect_from, | ||
| int | channels_from, | ||
| int | profile_to, | ||
| int | profile_from, | ||
| bool | predivide, | ||
| int | width, | ||
| int | height, | ||
| int | stride_to, | ||
| int | stride_from | ||
| ) |
Definition at line 430 of file divers.c.
References BLI_assert, copy_v3_v3(), from, height, IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IB_PROFILE_SRGB, linearrgb_to_srgb_predivide_v4(), linearrgb_to_srgb_v3_v3(), linearrgb_to_srgb_v4(), srgb_to_linearrgb_predivide_v4(), srgb_to_linearrgb_v3_v3(), srgb_to_linearrgb_v4(), width, x, and y.
Referenced by blender::compositor::ConvertColorProfileOperation::executePixelSampled(), imb_buffer_float_from_float_thread_do(), IMB_buffer_float_from_float_threaded(), imb_stereo3d_squeeze_rectf(), studiolight_multilayer_convert_pass(), write_external_bake_pixels(), and write_internal_bake_pixels().
| void IMB_buffer_float_from_float_mask | ( | float * | rect_to, |
| const float * | rect_from, | ||
| int | channels_from, | ||
| int | width, | ||
| int | height, | ||
| int | stride_to, | ||
| int | stride_from, | ||
| char * | mask | ||
| ) |
Definition at line 597 of file divers.c.
References copy_v3_v3(), copy_v4_v4(), FILTER_MASK_USED, from, height, mask(), width, x, and y.
Referenced by write_internal_bake_pixels().
| void IMB_buffer_float_from_float_threaded | ( | float * | rect_to, |
| const float * | rect_from, | ||
| int | channels_from, | ||
| int | profile_to, | ||
| int | profile_from, | ||
| bool | predivide, | ||
| int | width, | ||
| int | height, | ||
| int | stride_to, | ||
| int | stride_from | ||
| ) |
Definition at line 558 of file divers.c.
References data, height, IMB_buffer_float_from_float(), imb_buffer_float_from_float_thread_do(), IMB_processor_apply_threaded_scanlines(), and width.
Referenced by BKE_image_buf_fill_checker_color().
| void IMB_buffer_float_premultiply | ( | float * | buf, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 871 of file divers.c.
References height, straight_to_premul_v4(), and width.
Referenced by do_glow_effect_byte().
| void IMB_buffer_float_unpremultiply | ( | float * | buf, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 861 of file divers.c.
References height, premul_to_straight_v4(), and width.
Referenced by do_glow_effect_byte().
| void IMB_close_anim | ( | struct anim * | anim | ) |
Definition at line 229 of file anim_movie.c.
References IMB_free_anim(), and NULL.
Referenced by IMB_free_indices(), and wm_main_playanim_intern().
| void IMB_close_anim_proxies | ( | struct anim * | anim | ) |
Definition at line 238 of file anim_movie.c.
References IMB_free_indices(), and NULL.
Referenced by proxy_endjob(), and SEQ_proxy_rebuild_finish().
| void IMB_color_to_bw | ( | struct ImBuf * | ibuf | ) |
Definition at line 842 of file divers.c.
References if(), IMB_colormanagement_get_luminance(), IMB_colormanagement_get_luminance_byte(), ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by render_result_rect_to_ibuf(), and screenshot_exec().
| 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.
Definition at line 45 of file imageprocess.c.
References if(), ImBuf::rect, ImBuf::rect_float, size(), ImBuf::x, and ImBuf::y.
Referenced by IMB_anim_absolute(), imb_loadiris(), imb_loadtarga(), imb_read_tiff_pixels(), and imb_saveiris().
| struct GPUTexture* IMB_create_gpu_texture | ( | const char * | name, |
| struct ImBuf * | ibuf, | ||
| bool | use_high_bitdepth, | ||
| bool | use_premult, | ||
| bool | limit_gl_texture_size | ||
| ) |
Definition at line 219 of file util_gpu.c.
References BLI_assert, data, DDSData::data, ImBuf::dds_data, ImBuf::ftype, GPU_SRGB8_A8, GPU_texture_anisotropic_filter(), GPU_texture_create_2d(), GPU_texture_create_compressed_2d(), GPU_texture_size_with_limit(), GPU_texture_update(), imb_gpu_get_data(), imb_gpu_get_format(), is_power_of_2_i(), max_ii(), MEM_freeN, NULL, DDSData::nummipmaps, size(), tex, UNPACK2, ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_get_gpu_texture(), and image_get_gpu_texture().
Definition at line 124 of file scaling.c.
References col, ImBuf::flags, IMB_allocImBuf(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_double_x().
Definition at line 278 of file scaling.c.
References ImBuf::flags, IMB_allocImBuf(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, x, ImBuf::x, y, and ImBuf::y.
Referenced by IMB_double_y().
Definition at line 169 of file scaling.c.
References IMB_double_fast_x(), imb_filterx(), NULL, ImBuf::rect, and ImBuf::rect_float.
Definition at line 326 of file scaling.c.
References IMB_double_fast_y(), IMB_filtery(), NULL, and ImBuf::rect.
Referenced by accessor_get_ibuf(), BKE_tracking_distortion_exec(), brush_copy_data(), create_mono_icon_with_border(), do_render_sequencer(), do_render_strip_uncached(), do_speed_effect(), icon_copy_rect(), image_save_single(), IMB_colormanagement_imbuf_for_write(), IMB_half_x(), IMB_half_y(), Freestyle::Canvas::loadMap(), movieclip_build_proxy_ibuf(), postprocess_frame(), py_imbuf_copy(), render_result_rect_to_ibuf(), screen_opengl_render_doit(), SEQ_modifier_apply_stack(), seq_proxy_build_frame(), sequencer_get_scope(), and sequencer_make_scope().
| void IMB_exit | ( | void | ) |
Definition at line 39 of file module.c.
References colormanagement_exit(), imb_filetypes_exit(), imb_mmap_lock_exit(), imb_refcounter_lock_exit(), and imb_tile_cache_exit().
Referenced by BKE_blender_free(), blender::bke::tests::TEST(), and wm_main_playanim_intern().
| void IMB_ffmpeg_init | ( | void | ) |
Referenced by arg_handle_playback_mode(), and main().
| const char* IMB_ffmpeg_last_error | ( | void | ) |
| void IMB_filter | ( | struct ImBuf * | ibuf | ) |
Definition at line 318 of file filter.c.
References imb_filterx(), and IMB_filtery().
| void IMB_filter_extend | ( | struct ImBuf * | ibuf, |
| char * | mask, | ||
| int | filter | ||
| ) |
if alpha is zero, it checks surrounding pixels and averages color. sets new alphas to 1.0
When a mask is given, only effect pixels with a mask value of 1, defined as #BAKE_MASK_MARGIN in rendercore.c
Definition at line 429 of file filter.c.
References Freestyle::c, check_pixel_assigned(), filter(), filter_make_index(), FILTER_MASK_MARGIN, float(), height, mask(), MEM_dupallocN, MEM_freeN, NULL, r, ImBuf::rect, ImBuf::rect_float, sqrt(), width, x, ImBuf::x, y, and ImBuf::y.
Referenced by bake_ibuf_filter(), and RE_bake_margin().
| void IMB_filtery | ( | struct ImBuf * | ibuf | ) |
Definition at line 119 of file filter.c.
References filtcolum(), filtcolumf(), ImBuf::planes, ImBuf::rect, ImBuf::rect_float, x, ImBuf::x, y, and ImBuf::y.
Referenced by IMB_anim_absolute(), IMB_double_y(), IMB_filter(), and input_preprocess().
| void IMB_flipx | ( | struct ImBuf * | ibuf | ) |
Definition at line 92 of file rotate.c.
References NULL, ImBuf::rect, ImBuf::rect_float, SWAP, x, ImBuf::x, y, and ImBuf::y.
Referenced by input_preprocess().
| void IMB_flipy | ( | struct ImBuf * | ibuf | ) |
Definition at line 33 of file rotate.c.
References bottom, float(), MEM_freeN, MEM_mallocN, NULL, ImBuf::rect, ImBuf::rect_float, stride, top, ImBuf::x, and ImBuf::y.
Referenced by imb_load_dds(), imb_load_dpx_cineon(), imb_loadhdr(), imb_loadtarga(), and input_preprocess().
| void IMB_float_from_rect | ( | struct ImBuf * | ibuf | ) |
Definition at line 780 of file divers.c.
References ImBuf::channels, ImBuf::flags, IB_PROFILE_SRGB, IB_rectfloat, IMB_alpha_affects_rgb(), IMB_buffer_float_from_byte(), IMB_colormanagement_colorspace_to_scene_linear(), IMB_premultiply_rect_float(), ImBuf::mall, MEM_callocN, NULL, ImBuf::rect, ImBuf::rect_colorspace, ImBuf::rect_float, size(), ImBuf::x, and ImBuf::y.
Referenced by accessor_get_ibuf(), colorfn(), blender::compositor::MovieClipBaseOperation::initExecution(), modifier_render_mask_input(), paint_2d_canvas_set(), project_paint_op(), RE_layer_load_from_file(), render_result_rect_to_ibuf(), studiolight_load_equirect_image(), and studiolight_load_irradiance_equirect_image().
| void IMB_free_anim | ( | struct anim * | anim | ) |
Definition at line 207 of file anim_movie.c.
References free_anim_movie(), IMB_free_indices(), IMB_metadata_free(), MEM_freeN, anim::metadata, and NULL.
Referenced by free_buffers(), free_proxy_seq(), image_free_anims(), IMB_close_anim(), openanim(), seq_free_strip(), SEQ_relations_sequence_free_anim(), and thumb_create_ex().
| void IMB_freeImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 211 of file allocimbuf.c.
References BLI_spin_lock(), BLI_spin_unlock(), colormanage_cache_free(), DDSData::data, ImBuf::dds_data, free(), imb_freerectImbuf_all(), IMB_metadata_free(), MEM_freeN, ImBuf::metadata, NULL, ImBuf::refcounter, and refcounter_spin.
Referenced by accessor_get_ibuf(), accessor_release_image_callback(), action_preview_render(), BKE_image_add_generated(), BKE_image_has_ibuf(), BKE_image_memorypack(), BKE_image_pool_free(), BKE_image_release_ibuf(), BKE_image_signal(), BKE_movieclip_build_proxy_frame(), BKE_movieclip_build_proxy_frame_for_ibuf(), BKE_movieclip_get_gpu_texture(), BKE_movieclip_get_size(), BKE_movieclip_get_stable_ibuf(), BKE_movieclip_has_frame(), BKE_movieclip_update_scopes(), BKE_previewimg_ensure(), BKE_tracking_get_pattern_imbuf(), BKE_tracking_refine_marker(), brush_free_data(), brush_painter_2d_refresh_cache(), brush_painter_2d_require_imbuf(), brush_painter_cache_2d_free(), brush_painter_imbuf_partial_update(), build_pict_list_ex(), blender::compositor::KeyingScreenOperation::buildVoronoiTriangulation(), clip_draw_main(), clip_free(), clip_main_region_draw(), colormanage_cache_get(), colormanage_cache_handle_release(), blender::compositor::MovieClipNode::convertToOperations(), blender::compositor::MovieClipBaseOperation::deinitExecution(), blender::compositor::OutputStereoOperation::deinitExecution(), blender::compositor::OutputSingleLayerOperation::deinitExecution(), detect_clip_source(), detect_features_exec(), do_gaussian_blur_effect(), do_render_sequencer(), do_render_strip_uncached(), dynamicPaint_outputSurfaceImage(), ED_imapaint_dirty_region(), ED_space_clip_color_sample(), ED_space_clip_get_buffer(), ED_space_clip_get_position(), ED_space_clip_get_stable_buffer(), filelist_free_icons(), filelist_init_icons(), frame_cache_remove(), free_buffers(), gpu_texture_update_scaled(), icon_copy_rect(), icon_draw_rect(), icon_draw_size(), icon_free_data(), icon_preview_startjob(), icon_verify_datatoc(), image_init_color_management(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_memorypack_imbuf(), image_save_single(), image_undosys_step_encode(), IMB_allocImBuf(), IMB_anim_absolute(), IMB_anim_previewframe(), IMB_dupImBuf(), imb_freemipmapImBuf(), imb_gpu_get_data(), IMB_ImBufFromStereo3d(), imb_load_dpx_cineon(), imb_load_openexr(), imb_load_photoshop(), imb_loadpng(), IMB_makemipmap(), IMB_makeSingleUser(), IMB_moviecache_destructor(), imb_oiio_load_image(), imb_oiio_load_image_float(), imb_read_tiff_pixels(), IMB_remakemipmap(), imb_stereo3d_squeeze_rect(), imb_stereo3d_squeeze_rectf(), IMB_thumb_manage(), imbuf_save_post(), init_iconfile_list(), init_internal_icons(), input_preprocess(), load_image_single(), load_sequence_single(), metadata_panel_context_draw(), moviecache_valfree(), movieclip_build_proxy_ibuf(), movieclip_get_postprocessed_ibuf(), object_preview_render(), openanim(), paint_2d_op(), prefetch_movie_frame(), prefetch_task_func(), project_bucket_init(), proxy_task_func(), ptile_restore_runtime_list(), put_postprocessed_frame_to_cache(), put_stabilized_frame_to_cache(), py_imbuf_dealloc(), py_imbuf_free(), RE_layer_load_from_file(), RE_WriteRenderViewsImage(), RE_WriteRenderViewsMovie(), render_result_rect_to_ibuf(), screen_opengl_render_doit(), screenshot_exec(), SEQ_add_image_init_alpha_mode(), SEQ_add_image_strip(), seq_cache_put(), seq_cache_valfree(), seq_disk_cache_read_file(), SEQ_modifier_apply_stack(), seq_prefetch_do_skip_frame(), seq_prefetch_frames(), seq_proxy_build_frame(), seq_render_effect_strip_impl(), seq_render_image_strip(), seq_render_movie_strip(), seq_render_scene_strip(), seq_render_strip_stack(), sequencer_check_scopes(), sequencer_draw_preview(), sequencer_free(), sequencer_get_scope(), sequencer_make_scope(), sequencer_sample_apply(), studiolight_load_equirect_image(), texture_paint_image_from_view_exec(), thumb_create_ex(), thumb_create_or_fail(), track_get_search_floatbuf(), ubuf_from_image_all_tiles(), uhandle_restore_list(), ui_but_free(), UI_icon_to_preview(), UI_icons_free_drawinfo(), UI_icons_reload_internal_textures(), uiTemplateMovieclipInformation(), wm_file_write(), wm_main_playanim_intern(), write_external_bake_pixels(), and GHOST_EventDragnDrop::~GHOST_EventDragnDrop().
| void imb_freemipmapImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 80 of file allocimbuf.c.
References Freestyle::a, IMB_freeImBuf(), IMB_MIPMAP_LEVELS, ImBuf::mipmap, ImBuf::miptot, and NULL.
Referenced by finish_images(), imb_freerectfloatImBuf(), imb_freerectImBuf(), IMB_makemipmap(), and write_internal_bake_pixels().
| void imb_freerectfloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 97 of file allocimbuf.c.
References IB_rectfloat, imb_freemipmapImBuf(), ImBuf::mall, MEM_freeN, NULL, and ImBuf::rect_float.
Referenced by image_save_post(), imb_addrectfloatImBuf(), imb_freerectImbuf_all(), IMB_scalefastImBuf(), IMB_scaleImBuf_threaded(), IMB_thumb_manage(), project_paint_end(), q_scale_linear_interpolation(), scaledownx(), scaledowny(), scaleupx(), scaleupy(), screen_opengl_render_doit(), thumb_create_ex(), and ubuf_ensure_compat_ibuf().
| void imb_freerectImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 115 of file allocimbuf.c.
References IB_rect, imb_freemipmapImBuf(), ImBuf::mall, MEM_freeN, NULL, and ImBuf::rect.
Referenced by BKE_tracking_distortion_exec(), colormanage_imbuf_make_linear(), image_get_render_result(), image_save_post(), imb_freerectImbuf_all(), IMB_scalefastImBuf(), IMB_scaleImBuf_threaded(), input_preprocess(), modifier_color_balance_apply(), project_paint_end(), q_scale_linear_interpolation(), scaledownx(), scaledowny(), scaleupx(), scaleupy(), seq_imbuf_to_sequencer_space(), seq_render_image_strip_view(), and seq_render_movie_strip_view().
| void imb_freerectImbuf_all | ( | ImBuf * | ibuf | ) |
Free all pixel data (associated with image size).
Definition at line 201 of file allocimbuf.c.
References freeencodedbufferImBuf(), imb_freerectfloatImBuf(), imb_freerectImBuf(), imb_freetilesImBuf(), IMB_freezbuffloatImBuf(), and IMB_freezbufImBuf().
Referenced by IMB_freeImBuf(), and ubuf_ensure_compat_ibuf().
| void imb_freetilesImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 131 of file allocimbuf.c.
References IB_tiles, imb_tile_cache_tile_free(), ImBuf::mall, MEM_freeN, NULL, ImBuf::tiles, ImBuf::xtiles, and ImBuf::ytiles.
Referenced by imb_freerectImbuf_all().
| void IMB_freezbuffloatImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 186 of file allocimbuf.c.
References IB_zbuffloat, ImBuf::mall, MEM_freeN, NULL, and ImBuf::zbuf_float.
Referenced by addzbuffloatImBuf(), BKE_imbuf_write_prepare(), image_save_post(), imb_freerectImbuf_all(), and scalefast_Z_ImBuf().
| void IMB_freezbufImBuf | ( | struct ImBuf * | ibuf | ) |
Definition at line 172 of file allocimbuf.c.
References IB_zbuf, ImBuf::mall, MEM_freeN, NULL, and ImBuf::zbuf.
Referenced by addzbufImBuf(), image_save_post(), imb_freerectImbuf_all(), and scalefast_Z_ImBuf().
| int imb_get_anim_type | ( | const char * | filepath | ) |
Definition at line 338 of file util.c.
References ANIM_AVI, ANIM_FFMPEG, ANIM_MOVIE, ANIM_NONE, ANIM_SEQUENCE, BLI_assert, BLI_path_is_rel(), BLI_stat(), IMB_ispic(), isavi(), ismovie(), and UTIL_DEBUG.
Referenced by anim_getnew(), and IMB_isanim().
| size_t IMB_get_size_in_memory | ( | struct ImBuf * | ibuf | ) |
Approximate size of ImBuf in memory
Definition at line 629 of file allocimbuf.c.
References Freestyle::a, ImBuf::channels, float(), IMB_get_size_in_memory(), ImBuf::mipmap, ImBuf::miptot, ImBuf::rect, ImBuf::rect_float, size(), ImBuf::tiles, ImBuf::x, ImBuf::xtiles, ImBuf::y, and ImBuf::ytiles.
Referenced by frame_cache_add(), get_size_in_memory(), and IMB_get_size_in_memory().
Definition at line 635 of file filter.c.
References CLAMP, ImBuf::mipmap, and ImBuf::miptot.
Referenced by IMB_tiles_to_rect().
| unsigned int* IMB_gettile | ( | struct ImBuf * | ibuf, |
| int | tx, | ||
| int | ty, | ||
| int | thread | ||
| ) |
Definition at line 437 of file cache.c.
References GLOBAL_CACHE, imb_thread_cache_get_tile(), and ImGlobalTileCache::thread_cache.
Definition at line 99 of file scaling.c.
References ImBuf::flags, IMB_allocImBuf(), IMB_dupImBuf(), imb_half_x_no_alloc(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_onehalf().
Definition at line 253 of file scaling.c.
References ImBuf::flags, IMB_allocImBuf(), IMB_dupImBuf(), imb_half_y_no_alloc(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by IMB_onehalf().
| struct ImBuf* IMB_ibImageFromMemory | ( | const unsigned char * | mem, |
| size_t | size, | ||
| int | flags, | ||
| char | colorspace[IM_MAX_SPACE], | ||
| const char * | descr | ||
| ) |
Definition at line 99 of file readimage.c.
References BLI_strncpy(), IB_test, IM_MAX_SPACE, IMB_FILE_TYPES, IMB_FILE_TYPES_LAST, imb_handle_alpha(), NULL, size(), and type.
Referenced by filelist_init_icons(), ibuf_from_picture(), icon_verify_datatoc(), IMB_loadifffile(), load_image_single(), prefetch_task_func(), proxy_task_func(), UI_icon_alert_imbuf_get(), UI_icon_to_preview(), UI_icons_reload_internal_textures(), wm_block_create_about(), and wm_block_splash_image().
| void IMB_ImBufFromStereo3d | ( | struct Stereo3dFormat * | s3d, |
| struct ImBuf * | ibuf_stereo, | ||
| struct ImBuf ** | r_ibuf_left, | ||
| struct ImBuf ** | r_ibuf_right | ||
| ) |
Definition at line 1279 of file stereoimbuf.c.
References addzbuffloatImBuf(), addzbufImBuf(), Stereo3dFormat::display_mode, Stereo3dFormat::flag, ImBuf::flags, height, IB_rect, IB_rectfloat, IB_zbuf, IB_zbuffloat, IMB_allocImBuf(), IMB_freeImBuf(), imb_stereo3d_data_init(), IMB_stereo3d_read_dimensions(), imb_stereo3d_read_doit(), imb_stereo3d_unsqueeze_ImBuf(), IMB_stereo3d_write_dimensions(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, S3D_SQUEEZED_FRAME, width, ImBuf::x, ImBuf::y, ImBuf::zbuf, and ImBuf::zbuf_float.
Referenced by image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), seq_render_image_strip(), and seq_render_movie_strip().
| void IMB_init | ( | void | ) |
Definition at line 30 of file module.c.
References colormanagement_init(), imb_filetypes_init(), imb_mmap_lock_init(), imb_refcounter_lock_init(), and imb_tile_cache_init().
Referenced by main(), BlendfileLoadingBaseTest::SetUpTestCase(), and blender::bke::tests::TEST().
| bool IMB_initImBuf | ( | struct ImBuf * | ibuf, |
| unsigned int | x, | ||
| unsigned int | y, | ||
| unsigned char | planes, | ||
| unsigned int | flags | ||
| ) |
Initialize given ImBuf.
Use in cases when temporary image buffer is allocated on stack.
Definition at line 494 of file allocimbuf.c.
References addzbuffloatImBuf(), addzbufImBuf(), ImBuf::channels, colormanage_imbuf_set_default_spaces(), ImBuf::flags, ImBuf::foptions, ImBuf::ftype, IB_rect, IB_rectfloat, IB_zbuf, IB_zbuffloat, imb_addrectfloatImBuf(), imb_addrectImBuf(), IMB_DPI_DEFAULT, IMB_FTYPE_PNG, ImBuf::planes, ImBuf::ppm, ImbFormatOptions::quality, x, ImBuf::x, y, and ImBuf::y.
Referenced by IMB_allocImBuf(), and paint_2d_do_making_brush().
| bool IMB_isanim | ( | const char * | filepath | ) |
Definition at line 399 of file util.c.
References ANIM_SEQUENCE, imb_get_anim_type(), and type.
Referenced by build_pict_list_ex(), ED_path_extension_type(), and wm_main_playanim_intern().
| bool IMB_isfloat | ( | const struct ImBuf * | ibuf | ) |
Referenced by blender::compositor::OutputStereoOperation::deinitExecution(), image_save_single(), and RE_WriteRenderViewsImage().
| bool IMB_ispic | ( | const char * | filepath | ) |
Definition at line 197 of file util.c.
References IMB_FTYPE_NONE, and IMB_ispic_type().
Referenced by build_pict_list_ex(), imb_get_anim_type(), and wm_main_playanim_intern().
| int IMB_ispic_type | ( | const char * | filepath | ) |
Definition at line 165 of file util.c.
References HEADER_SIZE, IMB_FTYPE_NONE, imb_ispic_read_header_from_filepath(), and IMB_ispic_type_from_memory().
Referenced by IMB_ispic().
| int IMB_ispic_type_from_memory | ( | const unsigned char * | buf, |
| const size_t | buf_size | ||
| ) |
Definition at line 152 of file util.c.
References IMB_FILE_TYPES, IMB_FILE_TYPES_LAST, IMB_FTYPE_NONE, NULL, and type.
Referenced by IMB_ispic_type(), and unpack_generate_paths().
| bool IMB_ispic_type_matches | ( | const char * | filepath, |
| int | filetype | ||
| ) |
Definition at line 175 of file util.c.
References BLI_assert, HEADER_SIZE, IMB_file_type_from_ftype(), imb_ispic_read_header_from_filepath(), NULL, and type.
Referenced by imb_load_photoshop().
| struct ImBuf* IMB_loadifffile | ( | int | file, |
| const char * | filepath, | ||
| int | flags, | ||
| char | colorspace[IM_MAX_SPACE], | ||
| const char * | descr | ||
| ) |
Definition at line 171 of file readimage.c.
References BLI_file_descriptor_size(), BLI_mmap_free(), BLI_mmap_get_pointer(), BLI_mmap_open(), file, IMB_ibImageFromFile(), IMB_ibImageFromMemory(), imb_is_filepath_format(), imb_mmap_lock(), imb_mmap_unlock(), NULL, and size().
Referenced by IMB_loadiffname(), IMB_testiffname(), and M_imbuf_load().
| struct ImBuf* IMB_loadiffname | ( | const char * | filepath, |
| int | flags, | ||
| char | colorspace[IM_MAX_SPACE] | ||
| ) |
Definition at line 224 of file readimage.c.
References Freestyle::a, BLI_assert, BLI_open(), BLI_path_is_rel(), BLI_strncpy(), ImBuf::cachename, file, imb_cache_filename(), IMB_FILENAME_SIZE, IMB_loadifffile(), ImBuf::mipmap, ImBuf::miptot, ImBuf::name, NULL, and O_BINARY.
Referenced by anim_getnew(), ibuf_from_picture(), icon_preview_imbuf_from_brush(), image_init_color_management(), IMB_anim_absolute(), IMB_thumb_manage(), IMB_thumb_read(), init_iconfile_list(), init_internal_icons(), load_image_single(), load_sequence_single(), Freestyle::Canvas::loadMap(), movieclip_load_sequence_file(), RE_layer_load_from_file(), SEQ_add_image_init_alpha_mode(), SEQ_add_image_strip(), seq_proxy_fetch(), seq_render_image_strip_view(), studiolight_load_equirect_image(), studiolight_load_irradiance_equirect_image(), thumb_create_ex(), wm_block_splash_image(), and wm_main_playanim_intern().
| void IMB_makemipmap | ( | struct ImBuf * | ibuf, |
| int | use_filter | ||
| ) |
Definition at line 598 of file filter.c.
References ImBuf::channels, ImBuf::flags, IMB_allocImBuf(), imb_filterN(), IMB_freeImBuf(), imb_freemipmapImBuf(), IMB_MIPMAP_LEVELS, IMB_onehalf(), ImBuf::miplevel, ImBuf::mipmap, ImBuf::miptot, ImBuf::planes, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by image_mipmap_test().
Definition at line 246 of file allocimbuf.c.
References BLI_spin_lock(), BLI_spin_unlock(), IMB_dupImBuf(), IMB_freeImBuf(), IMB_metadata_copy(), NULL, ImBuf::refcounter, and refcounter_spin.
Referenced by input_preprocess(), and load_movie_single().
| void IMB_mask_clear | ( | struct ImBuf * | ibuf, |
| const char * | mask, | ||
| int | val | ||
| ) |
Definition at line 368 of file filter.c.
References col, mask(), ImBuf::rect, ImBuf::rect_float, x, ImBuf::x, y, and ImBuf::y.
| void IMB_mask_filter_extend | ( | char * | mask, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 324 of file filter.c.
References FILTER_MASK_MARGIN, height, mask(), MEM_dupallocN, MEM_freeN, width, x, and y.
Definition at line 453 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().
| struct anim* IMB_open_anim | ( | const char * | name, |
| int | ib_flags, | ||
| int | streamindex, | ||
| char | colorspace[IM_MAX_SPACE] | ||
| ) |
Definition at line 282 of file anim_movie.c.
References BLI_assert, BLI_path_is_rel(), BLI_strncpy(), COLOR_ROLE_DEFAULT_BYTE, anim::colorspace, colorspace_set_default_role(), anim::ib_flags, IM_MAX_SPACE, MEM_callocN, anim::name, NULL, and anim::streamindex.
Referenced by build_pict_list_ex(), IMB_anim_open_proxy(), openanim(), openanim_noload(), thumb_create_ex(), and wm_main_playanim_intern().
| void IMB_premultiply_alpha | ( | struct ImBuf * | ibuf | ) |
Definition at line 687 of file filter.c.
References ImBuf::channels, IMB_premultiply_rect(), IMB_premultiply_rect_float(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by BKE_previewimg_ensure(), icon_preview_startjob(), imb_handle_alpha(), UI_icon_alert_imbuf_get(), UI_icons_reload_internal_textures(), wm_block_create_about(), and wm_block_splash_image().
| bool IMB_prepare_write_ImBuf | ( | const bool | isfloat, |
| struct ImBuf * | ibuf | ||
| ) |
Definition at line 68 of file writeimage.c.
References COLOR_ROLE_DEFAULT_BYTE, colormanage_colorspace_get_roled(), IMB_rect_from_float(), NULL, ImBuf::rect, ImBuf::rect_colorspace, and ImBuf::rect_float.
Referenced by blender::compositor::OutputStereoOperation::deinitExecution(), image_save_single(), prepare_write_imbuf(), and RE_WriteRenderViewsImage().
| void IMB_processor_apply_threaded | ( | int | buffer_lines, |
| int | handle_size, | ||
| void * | init_customdata, | ||
| void(init_handle)(void *handle, int start_line, int tot_line, void *customdata) | , | ||
| void * | do_thread)(void * | ||
| ) |
Definition at line 362 of file imageprocess.c.
References BLI_task_pool_create(), BLI_task_pool_free(), BLI_task_pool_push(), BLI_task_pool_work_and_wait(), handles, MEM_callocN, MEM_freeN, NULL, processor_apply_func(), task_pool, and TASK_PRIORITY_LOW.
Referenced by display_buffer_apply_threaded(), do_gaussian_blur_effect(), IMB_scaleImBuf_threaded(), input_preprocess(), modifier_apply_threaded(), modifier_color_balance_apply(), processor_transform_apply_threaded(), and seq_render_effect_execute_threaded().
| void IMB_processor_apply_threaded_scanlines | ( | int | total_scanlines, |
| ScanlineThreadFunc | do_thread, | ||
| void * | custom_data | ||
| ) |
Definition at line 424 of file imageprocess.c.
References BLI_task_pool_create(), BLI_task_pool_free(), BLI_task_pool_push(), BLI_task_pool_work_and_wait(), data, NULL, POINTER_FROM_INT, processor_apply_scanline_func(), task_pool, and TASK_PRIORITY_LOW.
Referenced by BKE_image_buf_fill_checker(), BKE_image_buf_fill_checker_color(), BKE_image_buf_fill_color(), IMB_buffer_float_from_float_threaded(), imb_partial_display_buffer_update_ex(), and IMB_rectblend_threaded().
Referenced by py_imbuf_crop(), screenshot_exec(), and UI_icon_alert_imbuf_get().
| void IMB_rect_from_float | ( | struct ImBuf * | ibuf | ) |
Definition at line 720 of file divers.c.
References buffer, ImBuf::channels, COLOR_ROLE_SCENE_LINEAR, ImBuf::dither, ImBuf::float_colorspace, IB_PROFILE_SRGB, IB_RECT_INVALID, imb_addrectImBuf(), IMB_alpha_affects_rgb(), IMB_buffer_byte_from_float(), IMB_colormanagement_role_colorspace_name_get(), IMB_colormanagement_transform(), IMB_unpremultiply_rect_float(), MEM_dupallocN, MEM_freeN, ColorSpace::name, NULL, ImBuf::rect, ImBuf::rect_colorspace, ImBuf::rect_float, ImBuf::userflags, ImBuf::x, and ImBuf::y.
Referenced by BKE_main_thumbnail_from_imbuf(), ED_view3d_draw_offscreen_imbuf(), gpencil_render_offscreen(), icon_copy_rect(), image_flip_exec(), image_invert_exec(), IMB_colormanagement_imbuf_for_write(), imb_load_jp2_stream(), imb_load_openexr(), imb_loadhdr(), imb_loadiris(), IMB_prepare_write_ImBuf(), imb_save_dpx_cineon(), IMB_thumb_manage(), modifier_render_mask_input(), paint_2d_canvas_set(), prepare_effect_imbufs(), project_paint_op(), sample_apply(), screen_opengl_render_doit(), sequencer_draw_display_buffer(), and thumb_create_ex().
In-place size setting (caller must fill in buffer contents).
Definition at line 308 of file rectop.c.
References BLI_assert, ImBuf::rect, ImBuf::rect_float, rect_realloc_16bytes(), rect_realloc_4bytes(), size(), ImBuf::x, ImBuf::y, ImBuf::zbuf, and ImBuf::zbuf_float.
Referenced by ubuf_ensure_compat_ibuf().
| void IMB_rectblend | ( | struct ImBuf * | dbuf, |
| const struct ImBuf * | obuf, | ||
| const struct ImBuf * | sbuf, | ||
| unsigned short * | dmask, | ||
| const unsigned short * | curvemask, | ||
| const unsigned short * | texmask, | ||
| float | mask_max, | ||
| int | destx, | ||
| int | desty, | ||
| int | origx, | ||
| int | origy, | ||
| int | srcx, | ||
| int | srcy, | ||
| int | width, | ||
| int | height, | ||
| IMB_BlendMode | mode, | ||
| bool | accumulate | ||
| ) |
Referenced by paint_2d_do_making_brush(), paint_2d_lift_clone(), and paint_2d_lift_smear().
| void IMB_rectblend_threaded | ( | struct ImBuf * | dbuf, |
| const struct ImBuf * | obuf, | ||
| const struct ImBuf * | sbuf, | ||
| unsigned short * | dmask, | ||
| const unsigned short * | curvemask, | ||
| const unsigned short * | texmask, | ||
| float | mask_max, | ||
| int | destx, | ||
| int | desty, | ||
| int | origx, | ||
| int | origy, | ||
| int | srcx, | ||
| int | srcy, | ||
| int | width, | ||
| int | height, | ||
| IMB_BlendMode | mode, | ||
| bool | accumulate | ||
| ) |
Referenced by paint_2d_op().
Replace pixels of entire image with solid color.
| ibuf | An image to be filled with color. It must be 4 channel image. |
| col | RGBA color, which is assigned directly to both byte (via scaling) and float buffers. |
Definition at line 1077 of file rectop.c.
References col, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by clear_single_image(), IMB_thumb_load_font(), and RE_bake_ibuf_clear().
Definition at line 1313 of file rectop.c.
References ImBuf::channels, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by bake_ibuf_filter(), imb_handle_alpha(), and RE_bake_margin().
| void IMB_rectfill_area | ( | ImBuf * | ibuf, |
| const float | col[4], | ||
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| struct ColorManagedDisplay * | display | ||
| ) |
Blend pixels of image area with solid color.
For images with uchar buffer use color matching image color-space. For images with float buffer use color display color-space. If display color-space can not be referenced, use color in SRGB color-space.
| ibuf | an image to be filled with color. It must be 4 channel image. |
| col | RGBA color. |
| x1,y1,x2,y2 | (x1, y1) defines starting point of the rectangular area to be filled, (x2, y2) is the end point. Note that values are allowed to be loosely ordered, which means that x2 is allowed to be lower than x1, as well as y2 is allowed to be lower than y1. No matter the order the area between x1 and x2, and y1 and y2 is filled. |
| display | color-space reference for display space. |
Definition at line 1290 of file rectop.c.
References buf_rectfill_area(), col, ImBuf::rect, ImBuf::rect_float, ImBuf::x, x2, ImBuf::y, and y1.
| void IMB_rectfill_area_replace | ( | const struct ImBuf * | ibuf, |
| const float | col[4], | ||
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2 | ||
| ) |
Referenced by do_text_effect().
| void IMB_refImBuf | ( | struct ImBuf * | ibuf | ) |
Increase reference count to imbuf (to delete an imbuf you have to call freeImBuf as many times as it is referenced)
Definition at line 239 of file allocimbuf.c.
References BLI_spin_lock(), BLI_spin_unlock(), ImBuf::refcounter, and refcounter_spin.
Referenced by BKE_image_get_first_ibuf(), BKE_image_get_ibuf_with_name(), do_moviecache_put(), get_postprocessed_cached_frame(), get_stable_cached_frame(), IMB_moviecache_get(), put_postprocessed_frame_to_cache(), put_stabilized_frame_to_cache(), seq_cache_get_ex(), and seq_cache_put_ex().
| void IMB_remakemipmap | ( | struct ImBuf * | ibuf, |
| int | use_filter | ||
| ) |
Definition at line 561 of file filter.c.
References ImBuf::flags, IMB_allocImBuf(), imb_filterN(), IMB_freeImBuf(), IMB_MIPMAP_LEVELS, imb_onehalf_no_alloc(), ImBuf::miplevel, ImBuf::mipmap, ImBuf::miptot, ImBuf::planes, ImBuf::x, and ImBuf::y.
Referenced by image_mipmap_test().
| void IMB_sampleImageAtLocation | ( | struct ImBuf * | ibuf, |
| float | x, | ||
| float | y, | ||
| bool | make_linear_rgb, | ||
| float | color[4] | ||
| ) |
Definition at line 505 of file imageprocess.c.
References IMB_colormanagement_colorspace_to_scene_linear_v4(), nearest_interpolation_color(), NULL, ImBuf::rect_colorspace, ImBuf::rect_float, rgba_uchar_to_float(), x, and y.
Referenced by BKE_gpencil_from_image(), and palette_extract_img_exec().
Definition at line 887 of file divers.c.
References hsv_to_rgb(), if(), ImBuf::rect, ImBuf::rect_float, rgb_float_to_uchar(), rgb_to_hsv_v(), rgb_uchar_to_float(), ImBuf::x, and ImBuf::y.
Referenced by input_preprocess().
| bool IMB_saveiff | ( | struct ImBuf * | ibuf, |
| const char * | filepath, | ||
| int | flags | ||
| ) |
Definition at line 44 of file writeimage.c.
References BLI_assert, BLI_path_is_rel(), ImBuf::flags, IMB_file_type_from_ibuf(), NULL, prepare_write_imbuf(), and type.
Referenced by BKE_imbuf_write(), dynamicPaint_outputSurfaceImage(), image_memorypack_imbuf(), image_save_sequence_exec(), Freestyle::Canvas::loadMap(), M_imbuf_write(), movieclip_build_proxy_ibuf(), Freestyle::SteerableViewMap::saveSteerableViewMap(), seq_proxy_build_frame(), studiolight_calculate_radiance_cubemap_buffers(), and thumb_create_ex().
| bool IMB_scalefastImBuf | ( | struct ImBuf * | ibuf, |
| unsigned int | newx, | ||
| unsigned int | newy | ||
| ) |
Return true if ibuf is modified.
Definition at line 1715 of file scaling.c.
References BLI_assert, IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), ImBuf::mall, MEM_freeN, MEM_mallocN, NULL, ImBuf::rect, ImBuf::rect_float, scalefast_Z_ImBuf(), x, ImBuf::x, y, and ImBuf::y.
Referenced by icon_copy_rect(), py_imbuf_resize(), and seq_proxy_build_frame().
| bool IMB_scaleImBuf | ( | struct ImBuf * | ibuf, |
| unsigned int | newx, | ||
| unsigned int | newy | ||
| ) |
Return true if ibuf is modified.
Definition at line 1667 of file scaling.c.
References BLI_assert, NULL, q_scale_linear_interpolation(), ImBuf::rect, ImBuf::rect_float, scaledownx(), scaledowny(), scalefast_Z_ImBuf(), scaleupx(), scaleupy(), x, ImBuf::x, y, and ImBuf::y.
Referenced by accessor_get_ibuf(), BKE_image_scale(), BKE_previewimg_ensure(), blend_file_thumb(), get_undistorted_ibuf(), icon_draw_rect(), icon_verify_datatoc(), image_scale_exec(), imb_gpu_get_data(), Freestyle::Canvas::loadMap(), movieclip_build_proxy_ibuf(), py_imbuf_resize(), thumb_create_ex(), ui_draw_but_IMAGE(), update_do_scale(), wm_block_create_about(), and wm_block_splash_image().
| void IMB_scaleImBuf_threaded | ( | struct ImBuf * | ibuf, |
| unsigned int | newx, | ||
| unsigned int | newy | ||
| ) |
Definition at line 1889 of file scaling.c.
References BLI_assert, ImBuf::channels, do_scale_thread(), IB_rect, IB_rectfloat, imb_freerectfloatImBuf(), imb_freerectImBuf(), IMB_processor_apply_threaded(), init_data(), ImBuf::mall, MEM_mallocN, NULL, ImBuf::rect, ImBuf::rect_float, scale_thread_init(), ImBuf::x, and ImBuf::y.
Referenced by imb_stereo3d_squeeze_ImBuf(), imb_stereo3d_squeeze_rect(), imb_stereo3d_squeeze_rectf(), imb_stereo3d_unsqueeze_ImBuf(), and movieclip_build_proxy_ibuf().
| int* IMB_stereo3d_from_rect | ( | struct ImageFormatData * | im_format, |
| const size_t | x, | ||
| const size_t | y, | ||
| const size_t | channels, | ||
| int * | rect_left, | ||
| int * | rect_right | ||
| ) |
Definition at line 712 of file stereoimbuf.c.
References ImageFormatData::depth, Stereo3dFormat::display_mode, height, imb_stereo3d_data_init(), imb_stereo3d_squeeze_rect(), IMB_stereo3d_write_dimensions(), imb_stereo3d_write_doit(), MEM_mallocN, NULL, ImageFormatData::stereo3d_format, width, x, and y.
| float* IMB_stereo3d_from_rectf | ( | struct ImageFormatData * | im_format, |
| const size_t | x, | ||
| const size_t | y, | ||
| const size_t | channels, | ||
| float * | rectf_left, | ||
| float * | rectf_right | ||
| ) |
Definition at line 736 of file stereoimbuf.c.
References ImageFormatData::depth, Stereo3dFormat::display_mode, height, imb_stereo3d_data_init(), imb_stereo3d_squeeze_rectf(), IMB_stereo3d_write_dimensions(), imb_stereo3d_write_doit(), MEM_mallocN, NULL, ImageFormatData::stereo3d_format, width, x, and y.
| struct ImBuf* IMB_stereo3d_ImBuf | ( | struct ImageFormatData * | im_format, |
| struct ImBuf * | ibuf_left, | ||
| struct ImBuf * | ibuf_right | ||
| ) |
Definition at line 761 of file stereoimbuf.c.
References ImageFormatData::depth, Stereo3dFormat::display_mode, ImBuf::flags, ImBuf::float_colorspace, height, IB_rect, IB_rectfloat, IMB_allocImBuf(), imb_stereo3d_data_init(), imb_stereo3d_squeeze_ImBuf(), IMB_stereo3d_write_dimensions(), imb_stereo3d_write_doit(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_colorspace, ImBuf::rect_float, ImageFormatData::stereo3d_format, width, ImBuf::x, and ImBuf::y.
Referenced by blender::compositor::OutputStereoOperation::deinitExecution(), image_save_single(), RE_WriteRenderViewsImage(), and RE_WriteRenderViewsMovie().
| void IMB_stereo3d_read_dimensions | ( | const char | mode, |
| const bool | is_squeezed, | ||
| const size_t | width, | ||
| const size_t | height, | ||
| size_t * | r_width, | ||
| size_t * | r_height | ||
| ) |
Definition at line 549 of file stereoimbuf.c.
References height, S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, and width.
Referenced by IMB_ImBufFromStereo3d().
| void IMB_stereo3d_write_dimensions | ( | const char | mode, |
| const bool | is_squeezed, | ||
| const size_t | width, | ||
| const size_t | height, | ||
| size_t * | r_width, | ||
| size_t * | r_height | ||
| ) |
Definition at line 521 of file stereoimbuf.c.
References height, S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, and width.
Referenced by BKE_scene_multiview_videos_dimensions_get(), IMB_ImBufFromStereo3d(), IMB_stereo3d_from_rect(), IMB_stereo3d_from_rectf(), IMB_stereo3d_ImBuf(), imb_stereo3d_squeeze_rect(), and imb_stereo3d_squeeze_rectf().
| void IMB_suffix_anim | ( | struct anim * | anim, |
| const char * | suffix | ||
| ) |
Definition at line 328 of file anim_movie.c.
References BLI_strncpy(), and anim::suffix.
Referenced by seq_anim_add_suffix(), and seq_open_anim_file().
| struct ImBuf* IMB_testiffname | ( | const char * | filepath, |
| int | flags | ||
| ) |
Definition at line 254 of file readimage.c.
References BLI_assert, BLI_open(), BLI_path_is_rel(), BLI_strncpy(), ImBuf::cachename, file, IB_multilayer, IB_test, IM_MAX_SPACE, imb_cache_filename(), IMB_FILENAME_SIZE, IMB_loadifffile(), ImBuf::name, NULL, and O_BINARY.
Referenced by detect_clip_source().
| void IMB_tile_cache_params | ( | int | totthread, |
| int | maxmem | ||
| ) |
Definition at line 252 of file cache.c.
References Freestyle::a, BLI_ghash_new(), BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, BLI_memarena_use_calloc(), BLI_mutex_init(), GLOBAL_CACHE, imb_global_tile_cmp(), imb_global_tile_hash(), imb_thread_cache_init(), imb_tile_cache_exit(), ImGlobalTileCache::maxmem, ImGlobalTileCache::memarena, ImGlobalTileCache::mutex, ImGlobalTileCache::thread_cache, ImGlobalTileCache::tilehash, and ImGlobalTileCache::totthread.
Referenced by imb_tile_cache_init().
| void IMB_tiles_to_rect | ( | struct ImBuf * | ibuf | ) |
Definition at line 442 of file cache.c.
References Freestyle::a, BLI_mutex_lock(), BLI_mutex_unlock(), ImBuf::flags, from, GLOBAL_CACHE, IB_rect, IMB_getmipmap(), imb_global_cache_get_tile(), ImBuf::mall, MEM_callocN, ImBuf::miptot, ImGlobalTileCache::mutex, NULL, ImBuf::rect, ImGlobalTile::refcount, ImBuf::tiles, ImBuf::tilex, ImBuf::tiley, w(), ImBuf::x, ImBuf::xtiles, y, ImBuf::y, and ImBuf::ytiles.
| struct GPUTexture* IMB_touch_gpu_texture | ( | const char * | name, |
| struct ImBuf * | ibuf, | ||
| int | w, | ||
| int | h, | ||
| int | layers, | ||
| bool | use_high_bitdepth | ||
| ) |
Definition at line 167 of file util_gpu.c.
References GPU_texture_anisotropic_filter(), GPU_texture_create_2d(), GPU_texture_create_2d_array(), imb_gpu_get_format(), NULL, tex, and w().
Referenced by gpu_texture_create_tile_array().
| void IMB_unpremultiply_alpha | ( | struct ImBuf * | ibuf | ) |
Definition at line 749 of file filter.c.
References ImBuf::channels, IMB_unpremultiply_rect(), IMB_unpremultiply_rect_float(), NULL, ImBuf::planes, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by imb_handle_alpha().
| void IMB_update_gpu_texture_sub | ( | struct GPUTexture * | tex, |
| struct ImBuf * | ibuf, | ||
| int | x, | ||
| int | y, | ||
| int | z, | ||
| int | w, | ||
| int | h, | ||
| bool | use_high_bitdepth, | ||
| bool | use_premult | ||
| ) |
Definition at line 189 of file util_gpu.c.
References data, GPU_SRGB8_A8, GPU_texture_update_sub(), imb_gpu_get_data(), imb_gpu_get_format(), MEM_freeN, size(), tex, w(), x, ImBuf::x, y, ImBuf::y, and z.
Referenced by gpu_texture_create_tile_array().
Return the encoded start offset (in seconds) of the given anim.
Definition at line 1686 of file anim_movie.c.
References anim::start_offset.
Referenced by SEQ_add_movie_strip().
| int ismovie | ( | const char * | filepath | ) |
Referenced by imb_get_anim_type().
| void nearest_interpolation | ( | struct ImBuf * | in, |
| struct ImBuf * | out, | ||
| float | u, | ||
| float | v, | ||
| int | xout, | ||
| int | yout | ||
| ) |
Definition at line 337 of file imageprocess.c.
References nearest_interpolation_color(), NULL, pixel_from_buffer(), ImBuf::rect, ImBuf::rect_float, and v.
Referenced by BKE_tracking_stabilize_frame(), sequencer_image_crop_transform_do_thread(), and transform_image().
| void nearest_interpolation_color | ( | struct ImBuf * | in, |
| unsigned char | outI[4], | ||
| float | outF[4], | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 242 of file imageprocess.c.
References ImBuf::rect, ImBuf::rect_float, v, ImBuf::x, ImBuf::y, and y1.
Referenced by blender::compositor::MovieClipBaseOperation::executePixelSampled(), blender::compositor::MultilayerColorOperation::executePixelSampled(), IMB_sampleImageAtLocation(), nearest_interpolation(), blender::compositor::sampleImageAtLocation(), and studiolight_matcap_preview().
| void nearest_interpolation_color_wrap | ( | struct ImBuf * | in, |
| unsigned char | outI[4], | ||
| float | outF[4], | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 298 of file imageprocess.c.
References floor(), ImBuf::rect, ImBuf::rect_float, v, x, ImBuf::x, y, and ImBuf::y.
Referenced by studiolight_calculate_radiance().