Home
last modified time | relevance | path

Searched refs:rect_float (Results 1 – 25 of 88) sorted by relevance

1234

/dports/graphics/blender/blender-2.91.0/source/blender/blenkernel/intern/
H A Dimage_gen.c77 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 Dimage_gpu.c62 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 Dtracking_util.c734 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 Djp2.c469 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 Drotate.c64 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 Dimageprocess.c49 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 Dfilter.c126 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 Dscaling.c49 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 Dallocimbuf.c103 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 Dutil_gpu.c47 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 Dradiance_hdr.c221 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 Ddivers.c726 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 DIMB_filter.h32 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 Dtiff.c466 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 Drectop.c278 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 Dmodifier.c117 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 Deffects.c139 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 Dimage_undo.c193 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 Dmod.rs3 pub mod rect_float; module
9 pub use rect_float::*;
/dports/graphics/blender/blender-2.91.0/source/blender/nodes/texture/nodes/
H A Dnode_texture_image.c60 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 Dpaint_image_2d.c520 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 Dsequencer_scopes.c187 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 DCOM_ImageOperation.cpp77 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 DCOM_MovieClipOperation.cpp55 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 Dcineon_dpx.c69 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()

1234