/dports/graphics/blender/blender-2.91.0/source/blender/blenkernel/intern/ |
H A D | image_gen.c | 77 float *rect_float = (data->rect_float != NULL) ? (data->rect_float + offset) : NULL; in image_buf_fill_color_thread_do() local 90 data.rect_float = rect_float; in BKE_image_buf_fill_color() 130 rect_float[0] = rect_float[1] = rect_float[2] = dark_linear_color; in image_buf_fill_checker_slice() 134 rect_float[0] = rect_float[1] = rect_float[2] = bright_linear_color; in image_buf_fill_checker_slice() 205 float *rect_float = (data->rect_float != NULL) ? (data->rect_float + offset) : NULL; in image_buf_fill_checker_thread_do() local 217 data.rect_float = rect_float; in BKE_image_buf_fill_checker() 295 rect_float[0] = BLEND_FLOAT(rect_float[0], blend); in checker_board_color_tint() 296 rect_float[1] = BLEND_FLOAT(rect_float[1], blend); in checker_board_color_tint() 297 rect_float[2] = BLEND_FLOAT(rect_float[2], blend); in checker_board_color_tint() 448 float *rect_float = (data->rect_float != NULL) ? (data->rect_float + offset) : NULL; in checker_board_color_prepare_thread_do() local [all …]
|
H A D | image_gpu.c | 62 return ibuf->rect_float != NULL; in BKE_image_has_gpu_texture_premultiplied_alpha() 66 if (ibuf->rect_float) { in BKE_image_has_gpu_texture_premultiplied_alpha() 532 float *rect_float, in update_do_scale() argument 572 float *rect_float, in gpu_texture_update_scaled() argument 600 void *data = (ibuf->rect_float) ? (void *)(ibuf->rect_float) : (void *)(ibuf->rect); in gpu_texture_update_scaled() 626 void *data = (rect_float) ? (void *)(rect_float + tex_offset) : (void *)(rect + tex_offset); in gpu_texture_update_unscaled() 662 float *rect_float = ibuf->rect_float; in gpu_texture_update_from_ibuf() local 668 if (rect_float == NULL) { in gpu_texture_update_from_ibuf() 692 if (rect_float == NULL) { in gpu_texture_update_from_ibuf() 736 if (rect_float && rect_float != ibuf->rect_float) { in gpu_texture_update_from_ibuf() [all …]
|
H A D | tracking_util.c | 734 if ((grayscale->rect_float = MEM_callocN(size, "tracking grayscale image")) != NULL) { in make_grayscale_ibuf_copy() 739 const float *pixel = ibuf->rect_float + ibuf->channels * i; in make_grayscale_ibuf_copy() 741 grayscale->rect_float[i] = 0.2126f * pixel[0] + 0.7152f * pixel[1] + 0.0722f * pixel[2]; in make_grayscale_ibuf_copy() 750 BLI_assert(ibuf->rect_float != NULL); in ibuf_to_float_image() 751 float_image->buffer = ibuf->rect_float; in ibuf_to_float_image() 762 if ((ibuf->rect_float = MEM_callocN(size, "tracking grayscale image")) != NULL) { in float_image_to_ibuf() 766 memcpy(ibuf->rect_float, float_image->buffer, size); in float_image_to_ibuf() 824 if (orig_ibuf->rect_float != NULL) { in accessor_get_ibuf() 845 rgba_uchar_to_float(final_ibuf->rect_float + dst_index, in accessor_get_ibuf() 933 *destination = ibuf->rect_float; in accessor_get_image_callback()
|
/dports/graphics/blender/blender-2.91.0/source/blender/imbuf/intern/ |
H A D | jp2.c | 469 float *rect_float = ibuf->rect_float; in imb_load_jp2_stream() local 478 PIXEL_LOOPER_BEGIN (rect_float) { in imb_load_jp2_stream() 479 rect_float[0] = rect_float[1] = rect_float[2] = (float)(r[i] + signed_offsets[0]) / in imb_load_jp2_stream() 486 PIXEL_LOOPER_BEGIN (rect_float) { in imb_load_jp2_stream() 487 rect_float[0] = rect_float[1] = rect_float[2] = (float)(r[i] + signed_offsets[0]) / in imb_load_jp2_stream() 489 rect_float[3] = 1.0f; in imb_load_jp2_stream() 515 rect_float[3] = 1.0f; in imb_load_jp2_stream() 825 float *rect_float, from_straight[4]; in ibuftoimage() local 924 rect_float = ibuf->rect_float; in ibuftoimage() 934 rect_float = NULL; in ibuftoimage() [all …]
|
H A D | rotate.c | 64 if (ibuf->rect_float) { in IMB_flipy() 70 topf = ibuf->rect_float; in IMB_flipy() 108 if (ibuf->rect_float) { in IMB_flipx() 111 memcpy(&px_f, &ibuf->rect_float[((x * yi) + xr) * 4], sizeof(float[4])); in IMB_flipx() 112 memcpy(&ibuf->rect_float[((x * yi) + xr) * 4], in IMB_flipx() 113 &ibuf->rect_float[((x * yi) + xl) * 4], in IMB_flipx() 115 memcpy(&ibuf->rect_float[((x * yi) + xl) * 4], &px_f, sizeof(float[4])); in IMB_flipx()
|
H A D | imageprocess.c | 49 float rtf, *cpf = ibuf->rect_float; in IMB_convert_rgba_to_abgr() 65 if (ibuf->rect_float) { in IMB_convert_rgba_to_abgr() 89 if (ibuf->rect_float) { in pixel_from_buffer() 90 *outF = ibuf->rect_float + offset; in pixel_from_buffer() 192 row1 = in->rect_float + ((size_t)in->x) * y1 * 4 + 4 * x1; in bilinear_interpolation_color_wrap() 193 row2 = in->rect_float + ((size_t)in->x) * y2 * 4 + 4 * x1; in bilinear_interpolation_color_wrap() 194 row3 = in->rect_float + ((size_t)in->x) * y1 * 4 + 4 * x2; in bilinear_interpolation_color_wrap() 195 row4 = in->rect_float + ((size_t)in->x) * y2 * 4 + 4 * x2; in bilinear_interpolation_color_wrap() 328 dataF = in->rect_float + ((size_t)in->x) * y * 4 + 4 * x; in nearest_interpolation_color_wrap() 458 float *fp = rect_float; in IMB_alpha_under_color_float() [all …]
|
H A D | filter.c | 126 pointf = ibuf->rect_float; in IMB_filtery() 167 pointf = ibuf->rect_float; in imb_filterx() 263 if (in->rect_float && out->rect_float) { in imb_filterN() 371 if (ibuf->rect_float) { in IMB_mask_clear() 437 void *dstbuf = (void *)MEM_dupallocN(ibuf->rect_float ? (void *)ibuf->rect_float : in IMB_filter_extend() 440 void *srcbuf = ibuf->rect_float ? (void *)ibuf->rect_float : (void *)ibuf->rect; in IMB_filter_extend() 606 if (ibuf->rect_float && ibuf->channels < 4) { in IMB_makemipmap() 675 cp = rect_float; in IMB_premultiply_rect_float() 697 if (ibuf->rect_float) { in IMB_premultiply_alpha() 737 fp = rect_float; in IMB_unpremultiply_rect_float() [all …]
|
H A D | scaling.c | 49 do_float = (ibuf1->rect_float != NULL && ibuf2->rect_float != NULL); in imb_half_x_no_alloc() 54 _p1f = ibuf1->rect_float; in imb_half_x_no_alloc() 55 destf = ibuf2->rect_float; in imb_half_x_no_alloc() 198 do_float = (ibuf1->rect_float != NULL && ibuf2->rect_float != NULL); in imb_half_y_no_alloc() 380 const short do_float = (ibuf1->rect_float != NULL) && (ibuf2->rect_float != NULL); in imb_onehalf_no_alloc() 898 if (ibuf->rect_float) { in q_scale_linear_interpolation() 1228 if (ibuf->rect_float) { in scaleupx() 1404 if (ibuf->rect_float) { in scaleupy() 1688 if (ibuf->rect_float) { in IMB_scalefastImBuf() 1854 if (ibuf->rect_float) { in IMB_scaleImBuf_threaded() [all …]
|
H A D | allocimbuf.c | 103 if (ibuf->rect_float && (ibuf->mall & IB_rectfloat)) { in imb_freerectfloatImBuf() 104 MEM_freeN(ibuf->rect_float); in imb_freerectfloatImBuf() 105 ibuf->rect_float = NULL; in imb_freerectfloatImBuf() 110 ibuf->rect_float = NULL; in imb_freerectfloatImBuf() 392 if (ibuf->rect_float) { in imb_addrectfloatImBuf() 397 if ((ibuf->rect_float = imb_alloc_pixels(ibuf->x, ibuf->y, 4, sizeof(float), __func__))) { in imb_addrectfloatImBuf() 449 ibuf->rect_float = MEM_dupallocN(rectf); in IMB_allocFromBuffer() 554 if (ibuf1->rect_float) { in IMB_dupImBuf() 578 ibuf2->rect_float, ibuf1->rect_float, ((size_t)ibuf1->channels) * x * y * sizeof(float)); in IMB_dupImBuf() 604 tbuf.rect_float = ibuf2->rect_float; in IMB_dupImBuf() [all …]
|
H A D | util_gpu.c | 47 const bool float_rect = (ibuf->rect_float != NULL); in imb_gpu_get_format() 98 const bool is_float_rect = (ibuf->rect_float != NULL); in imb_gpu_get_data() 99 void *data_rect = (is_float_rect) ? (void *)ibuf->rect_float : (void *)ibuf->rect; in imb_gpu_get_data() 146 float *rect_float = (is_float_rect) ? (float *)data_rect : NULL; in imb_gpu_get_data() local 148 ImBuf *scale_ibuf = IMB_allocFromBuffer(rect, rect_float, ibuf->x, ibuf->y, 4); in imb_gpu_get_data() 155 data_rect = (is_float_rect) ? (void *)scale_ibuf->rect_float : (void *)scale_ibuf->rect; in imb_gpu_get_data() 158 scale_ibuf->rect_float = NULL; in imb_gpu_get_data()
|
H A D | radiance_hdr.c | 221 float *rect_float; in imb_loadhdr() local 274 rect_float = ibuf->rect_float; in imb_loadhdr() 286 *rect_float++ = fcol[RED]; in imb_loadhdr() 287 *rect_float++ = fcol[GRN]; in imb_loadhdr() 288 *rect_float++ = fcol[BLU]; in imb_loadhdr() 289 *rect_float++ = 1.0f; in imb_loadhdr() 430 if (ibuf->rect_float) { in imb_savehdr() 431 fp = ibuf->rect_float + ibuf->channels * (height - 1) * width; in imb_savehdr()
|
H A D | divers.c | 726 if (ibuf->rect_float == NULL) { in IMB_rect_from_float() 744 buffer = MEM_dupallocN(ibuf->rect_float); in IMB_rect_from_float() 782 float *rect_float; in IMB_float_from_rect() local 793 rect_float = ibuf->rect_float; in IMB_float_from_rect() 794 if (rect_float == NULL) { in IMB_float_from_rect() 803 if (rect_float == NULL) { in IMB_float_from_rect() 809 IMB_buffer_float_from_byte(rect_float, in IMB_float_from_rect() 828 if (ibuf->rect_float == NULL) { in IMB_float_from_rect() 829 ibuf->rect_float = rect_float; in IMB_float_from_rect() 844 float *rct_fl = ibuf->rect_float; in IMB_color_to_bw() [all …]
|
H A D | IMB_filter.h | 32 void IMB_premultiply_rect_float(float *rect_float, int channels, int w, int h); 35 void IMB_unpremultiply_rect_float(float *rect_float, int channels, int w, int h);
|
H A D | tiff.c | 466 scanline_contig_32bit(tmpibuf->rect_float + ib_offset, fbuf, ibuf->x, spp); in imb_read_tiff_pixels() 470 scanline_contig_16bit(tmpibuf->rect_float + ib_offset, sbuf, ibuf->x, spp); in imb_read_tiff_pixels() 493 scanline_separate_32bit(tmpibuf->rect_float + ib_offset, fbuf, ibuf->x, chan); in imb_read_tiff_pixels() 505 scanline_separate_16bit(tmpibuf->rect_float + ib_offset, sbuf, ibuf->x, chan); in imb_read_tiff_pixels() 520 if (tmpibuf->rect_float) { in imb_read_tiff_pixels() 521 ibuf->rect_float = tmpibuf->rect_float; in imb_read_tiff_pixels() 788 if ((ibuf->foptions.flag & TIF_16BIT) && ibuf->rect_float) { in imb_savetiff() 845 fromf = ibuf->rect_float; in imb_savetiff()
|
H A D | rectop.c | 278 rect_crop_16bytes((void **)&ibuf->rect_float, size_src, crop); in IMB_rect_crop() 318 rect_realloc_16bytes((void **)&ibuf->rect_float, size); in IMB_rect_size_set() 562 do_float = (sbuf && sbuf->rect_float && dbuf->rect_float && obuf->rect_float); in IMB_rectblend() 569 drectf = dbuf->rect_float + (((size_t)desty) * dbuf->x + destx) * 4; in IMB_rectblend() 570 orectf = obuf->rect_float + (((size_t)origy) * obuf->x + origx) * 4; in IMB_rectblend() 585 srectf = sbuf->rect_float + (((size_t)srcy) * sbuf->x + srcx) * 4; in IMB_rectblend() 1093 if (drect->rect_float) { in IMB_rectfill() 1094 float *rrectf = drect->rect_float; in IMB_rectfill() 1229 ibuf->rect_float, in IMB_rectfill_area() 1244 if (ibuf->rect_float && (ibuf->channels == 4)) { in IMB_rectfill_alpha() [all …]
|
/dports/graphics/blender/blender-2.91.0/source/blender/sequencer/intern/ |
H A D | modifier.c | 117 if (ibuf->rect_float) { in modifier_init_handle() 118 handle->rect_float = ibuf->rect_float + offset; in modifier_init_handle() 243 if (rect_float) { in whiteBalance_apply_threaded() 271 if (rect_float) { in whiteBalance_apply_threaded() 344 if (rect_float) { in curves_apply_threaded() 476 if (rect_float) { in hue_correct_apply_threaded() 514 if (rect_float) { in hue_correct_apply_threaded() 767 if (rect_float) { in tonemapmodifier_apply_threaded_simple() 802 if (rect_float) { in tonemapmodifier_apply_threaded_simple() 830 if (rect_float) { in tonemapmodifier_apply_threaded_photoreceptor() [all …]
|
H A D | effects.c | 139 else if ((ibuf1 && ibuf1->rect_float) || (ibuf2 && ibuf2->rect_float) || in prepare_effect_imbufs() 149 if (out->rect_float) { in prepare_effect_imbufs() 363 if (out->rect_float) { in do_alphaover_effect() 570 if (out->rect_float) { in do_alphaunder_effect() 705 if (out->rect_float) { in do_cross_effect() 1003 if (out->rect_float) { in do_gammacross_effect() 1138 if (out->rect_float) { in do_add_effect() 1273 if (out->rect_float) { in do_sub_effect() 1524 if (out->rect_float) { in do_mul_effect() 2879 float *rect_float; in do_solid_color() local [all …]
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/space_image/ |
H A D | image_undo.c | 193 const bool has_float = (ibuf->rect_float != NULL); in ED_image_paint_tile_push() 271 const bool has_float = (ibuf->rect_float != NULL); in ptile_restore_runtime_list() 298 if (ibuf->rect_float) { in ptile_restore_runtime_list() 348 const bool has_float = ibuf->rect_float; in utile_init_from_imbuf() 370 const bool has_float = ibuf->rect_float; in utile_restore() 371 float *prev_rect_float = tmpibuf->rect_float; in utile_restore() 375 tmpibuf->rect_float = utile->rect.fp; in utile_restore() 383 tmpibuf->rect_float = prev_rect_float; in utile_restore() 455 const bool has_float = ibuf->rect_float; in ubuf_from_image_all_tiles() 574 if (ibuf->rect_float) { in uhandle_restore_list() [all …]
|
/dports/sysutils/diskonaut/diskonaut-0.11.0/src/state/tiles/ |
H A D | mod.rs | 3 pub mod rect_float; module 9 pub use rect_float::*;
|
/dports/graphics/blender/blender-2.91.0/source/blender/nodes/texture/nodes/ |
H A D | node_texture_image.c | 60 if (!ibuf->rect_float) { in colorfn() 62 if (!ibuf->rect_float) { in colorfn() 81 result = ibuf->rect_float + py * ibuf->x * 4 + px * 4; in colorfn()
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/sculpt_paint/ |
H A D | paint_image_2d.c | 520 float *dstf = ibuf->rect_float + (y * size + x) * 4; in brush_painter_imbuf_new() 609 const float *otf = oldtexibuf->rect_float + in brush_painter_imbuf_update() 941 (s->tiles[0].canvas->rect_float && !ibuf->rect_float)) { in paint_2d_ensure_tile_canvas() 968 if (ibuf->rect_float) { in paint_2d_ibuf_rgb_get() 991 if (ibuf->rect_float) { in paint_2d_ibuf_rgb_set() 992 float *rrgbf = ibuf->rect_float + (ibuf->x * y + x) * 4; in paint_2d_ibuf_rgb_set() 1331 if (tile->canvas->rect_float) { in paint_2d_do_making_brush() 1332 tmpbuf.rect_float = ED_image_paint_tile_find( in paint_2d_do_making_brush() 1531 if (s->tiles[0].canvas->rect_float && !s->clonecanvas->rect_float) { in paint_2d_canvas_set() 1928 do_float = (ibuf->rect_float != NULL); in paint_2d_bucket_fill() [all …]
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/space_sequencer/ |
H A D | sequencer_scopes.c | 187 const float *src = ibuf->rect_float; in make_waveform_view_from_ibuf_float() 230 if (ibuf->rect_float) { in make_waveform_view_from_ibuf() 285 const float *src = ibuf->rect_float; in make_sep_waveform_view_from_ibuf_float() 332 if (ibuf->rect_float) { in make_sep_waveform_view_from_ibuf() 371 const float *p = src->rect_float; in draw_zebra_float() 403 if (ibuf->rect_float) { in make_zebra_view_from_ibuf() 549 const float *src = ibuf->rect_float; in make_histogram_view_from_ibuf_float_fn() 619 if (ibuf->rect_float) { in make_histogram_view_from_ibuf() 703 const float *src = ibuf->rect_float; in make_vectorscope_view_from_ibuf_float() 747 if (ibuf->rect_float) { in make_vectorscope_view_from_ibuf()
|
/dports/graphics/blender/blender-2.91.0/source/blender/compositor/operations/ |
H A D | COM_ImageOperation.cpp | 77 if (ibuf == NULL || (ibuf->rect == NULL && ibuf->rect_float == NULL)) { in getImBuf() 89 this->m_imageFloatBuffer = stackbuf->rect_float; in initExecution() 124 if (ibuf->rect_float) { in sampleImageAtLocation()
|
H A D | COM_MovieClipOperation.cpp | 55 if (ibuf->rect_float == NULL || ibuf->userflags & IB_RECT_INVALID) { in initExecution() 98 else if (ibuf->rect == NULL && ibuf->rect_float == NULL) { in executePixelSampled()
|
/dports/graphics/blender/blender-2.91.0/source/blender/imbuf/intern/cineon/ |
H A D | cineon_dpx.c | 69 if (logImageGetDataRGBA(image, ibuf->rect_float, 1) != 0) { in imb_load_dpx_cineon() 138 if (ibuf->rect_float != NULL && bitspersample != 8) { in imb_save_dpx_cineon() 147 float *src_ptr = ibuf->rect_float + 4 * (y * ibuf->x); in imb_save_dpx_cineon()
|