43 return _(
"base buffer");
91 const void *
const ivoid,
void *
const ovoid)
103 const size_t x =
MAX(roi_in->
x, 0);
104 const size_t y =
MAX(roi_in->
y, 0);
109 const size_t in_stride = in_width * piece->
dsc_in.
bpp;
113 const size_t y_offset = y * in_stride;
114 const size_t x_offset =
x * piece->
dsc_in.
bpp;
119 const void *
const restrict input = buf.
buf;
122 for(
size_t j = 0; j <
MIN(roi_out->
height, in_height); j++)
123 memcpy(
ovoid + j * out_stride, input + x_offset + y_offset + j * in_stride,
MIN(in_stride, out_stride));
143 const size_t x =
MAX(roi_in->
x, 0);
144 const size_t y =
MAX(roi_in->
y, 0);
148 const size_t in_stride = in_width * piece->
dsc_in.
bpp;
151 const size_t y_offset = y * in_stride;
152 const size_t x_offset =
x * piece->
dsc_in.
bpp;
157 const void *
const restrict input = buf.
buf;
159 size_t origin[] = {
x, y, 0 };
163 region, in_stride, CL_TRUE);
168 return err == CL_SUCCESS;
void modify_roi_out(dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_roi_t *roi_out, const dt_iop_roi_t *const roi_in)
__DT_CLONE_TARGETS__ int process(dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid)
void modify_roi_in(dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, const dt_iop_roi_t *const roi_out, dt_iop_roi_t *roi_in)
void output_format(dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_buffer_dsc_t *dsc)
void cleanup_pipe(dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
int default_colorspace(dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece)
void input_format(dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_buffer_dsc_t *dsc)
void init(dt_iop_module_t *self)
void init_pipe(dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
dt_iop_basebuffer_params_t dt_iop_basebuffer_data_t
int process_cl(struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, cl_mem dev_in, cl_mem dev_out)
void cleanup(dt_iop_module_t *self)
#define dt_free_align(ptr)
static void * dt_calloc_align(size_t size)
#define DT_MODULE_INTROSPECTION(MODVER, PARAMSTYPE)
#define __DT_CLONE_TARGETS__
#define __OMP_PARALLEL_FOR__(...)
@ IOP_FLAGS_TAKE_NO_INPUT
@ IOP_FLAGS_CPU_WRITES_OPENCL
@ IOP_FLAGS_NO_HISTORY_STACK
#define dt_mipmap_cache_get(A, B, C, D, E, F)
#define dt_mipmap_cache_release(A, B)
int dt_opencl_write_host_to_device_raw(const int devid, const void *host, void *device, const size_t *origin, const size_t *region, const int rowpitch, const int blocking)
struct dt_mipmap_cache_t * mipmap_cache
dt_iop_buffer_dsc_t dsc_out
dt_iop_buffer_dsc_t dsc_in
struct dt_iop_module_t *void * data
struct dt_develop_t * dev
int32_t hide_enable_button
dt_iop_params_t * default_params
dt_iop_gui_data_t * gui_data
Region of interest passed through the pixelpipe.