46 px = int((
x - xoff) * xsize);
47 py = int((
y - yoff) * ysize);
49 if ((!xsize) || (!ysize)) {
67 while (px >= ibuf->
x) {
70 while (py >= ibuf->
y) {
94 ImageUser *iuser = MEM_new<ImageUser>(
"node image user");
95 node->storage = iuser;
void node_register_type(bNodeType &ntype)
void node_type_socket_templates(bNodeType *ntype, bNodeSocketTemplate *inputs, bNodeSocketTemplate *outputs)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
static void exec(void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
static void colorfn(float *out, TexParams *p, bNode *, bNodeStack **in, short thread)
void register_node_type_tex_image()
void IMB_float_from_byte(ImBuf *ibuf)
BMesh const char void * data
void tex_output(bNode *node, bNodeExecData *, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
void tex_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
ImBuf * BKE_image_acquire_ibuf(Image *ima, ImageUser *iuser, void **r_lock)
static bke::bNodeSocketTemplate outputs[]
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
MINLINE void copy_v4_v4(float r[4], const float a[4])
void node_free_standard_storage(bNode *node)
void BLI_thread_unlock(int type)
void node_image_label(const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
void BLI_thread_lock(int type)
void BKE_image_release_ibuf(Image *ima, ImBuf *ibuf, void *lock)
const float * float_data() const
Compact definition of a node socket.
void(*) labelfunc(const bNodeTree *ntree, const bNode *node, char *label, int label_maxncpy)
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy