本文整理汇总了C++中dt_opencl_create_kernel函数的典型用法代码示例。如果您正苦于以下问题:C++ dt_opencl_create_kernel函数的具体用法?C++ dt_opencl_create_kernel怎么用?C++ dt_opencl_create_kernel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dt_opencl_create_kernel函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl, from programs.conf
dt_iop_temperature_global_data_t *gd = (dt_iop_temperature_global_data_t *)malloc(sizeof(dt_iop_temperature_global_data_t));
module->data = gd;
gd->kernel_whitebalance_4f = dt_opencl_create_kernel(program, "whitebalance_4f");
gd->kernel_whitebalance_1f = dt_opencl_create_kernel(program, "whitebalance_1f");
}
示例2: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl, from programs.conf
dt_iop_highlights_global_data_t *gd = (dt_iop_highlights_global_data_t *)malloc(sizeof(dt_iop_highlights_global_data_t));
module->data = gd;
gd->kernel_highlights_1f = dt_opencl_create_kernel(program, "highlights_1f");
gd->kernel_highlights_4f = dt_opencl_create_kernel(program, "highlights_4f");
}
示例3: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl, from programs.conf
module->data = malloc(sizeof(dt_iop_invert_global_data_t));
dt_iop_invert_global_data_t *gd = module->data;
gd->kernel_invert_1f = dt_opencl_create_kernel(program, "invert_1f");
gd->kernel_invert_4f = dt_opencl_create_kernel(program, "invert_4f");
}
示例4: reload_defaults
void reload_defaults(dt_iop_module_t *self)
{
dt_iop_rawprepare_params_t tmp = { 0 };
// we might be called from presets update infrastructure => there is no image
if(!self->dev) goto end;
const dt_image_t *const image = &(self->dev->image_storage);
tmp = (dt_iop_rawprepare_params_t){.x = image->crop_x,
.y = image->crop_y,
.width = image->crop_width,
.height = image->crop_height,
.raw_black_level_separate[0] = image->raw_black_level_separate[0],
.raw_black_level_separate[1] = image->raw_black_level_separate[1],
.raw_black_level_separate[2] = image->raw_black_level_separate[2],
.raw_black_level_separate[3] = image->raw_black_level_separate[3],
.raw_white_point = image->raw_white_point };
self->default_enabled = dt_image_is_raw(image) && image->bpp != sizeof(float);
end:
memcpy(self->params, &tmp, sizeof(dt_iop_rawprepare_params_t));
memcpy(self->default_params, &tmp, sizeof(dt_iop_rawprepare_params_t));
}
void init_global(dt_iop_module_so_t *self)
{
const int program = 2; // basic.cl, from programs.conf
self->data = malloc(sizeof(dt_iop_rawprepare_global_data_t));
dt_iop_rawprepare_global_data_t *gd = self->data;
gd->kernel_rawprepare_1f = dt_opencl_create_kernel(program, "rawprepare_1f");
gd->kernel_rawprepare_4f = dt_opencl_create_kernel(program, "rawprepare_4f");
}
void init(dt_iop_module_t *self)
{
const dt_image_t *const image = &(self->dev->image_storage);
self->params = calloc(1, sizeof(dt_iop_rawprepare_params_t));
self->default_params = calloc(1, sizeof(dt_iop_rawprepare_params_t));
self->hide_enable_button = 1;
self->default_enabled = dt_image_is_raw(image) && image->bpp != sizeof(float);
self->priority = 10; // module order created by iop_dependencies.py, do not edit!
self->params_size = sizeof(dt_iop_rawprepare_params_t);
self->gui_data = NULL;
}
void cleanup(dt_iop_module_t *self)
{
free(self->params);
self->params = NULL;
}
示例5: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 8; // extended.cl from programs.conf
dt_iop_global_tonemap_global_data_t *gd
= (dt_iop_global_tonemap_global_data_t *)malloc(sizeof(dt_iop_global_tonemap_global_data_t));
module->data = gd;
gd->kernel_pixelmax_first = dt_opencl_create_kernel(program, "pixelmax_first");
gd->kernel_pixelmax_second = dt_opencl_create_kernel(program, "pixelmax_second");
gd->kernel_global_tonemap_reinhard = dt_opencl_create_kernel(program, "global_tonemap_reinhard");
gd->kernel_global_tonemap_drago = dt_opencl_create_kernel(program, "global_tonemap_drago");
gd->kernel_global_tonemap_filmic = dt_opencl_create_kernel(program, "global_tonemap_filmic");
}
示例6: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 6; // gaussian.cl, from programs.conf
dt_iop_lowpass_global_data_t *gd = (dt_iop_lowpass_global_data_t *)malloc(sizeof(dt_iop_lowpass_global_data_t));
module->data = gd;
gd->kernel_lowpass_mix = dt_opencl_create_kernel(program, "lowpass_mix");
}
示例7: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 5; // nlmeans.cl, from programs.conf
dt_iop_nlmeans_global_data_t *gd = (dt_iop_nlmeans_global_data_t *)malloc(sizeof(dt_iop_nlmeans_global_data_t));
module->data = gd;
gd->kernel_nlmeans = dt_opencl_create_kernel(program, "nlmeans");
}
示例8: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl from programs.conf
dt_iop_colorcorrection_global_data_t *gd = (dt_iop_colorcorrection_global_data_t *)malloc(sizeof(dt_iop_colorcorrection_global_data_t));
module->data = gd;
gd->kernel_colorcorrection = dt_opencl_create_kernel(program, "colorcorrection");
}
示例9: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl from programs.conf
dt_iop_borders_global_data_t *gd = (dt_iop_borders_global_data_t *)malloc(sizeof(dt_iop_borders_global_data_t));
module->data = gd;
gd->kernel_borders_fill = dt_opencl_create_kernel(program, "borders_fill");
}
示例10: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl from programs.conf
dt_iop_overexposed_global_data_t *gd = (dt_iop_overexposed_global_data_t *)malloc(sizeof(dt_iop_overexposed_global_data_t));
module->data = gd;
gd->kernel_overexposed = dt_opencl_create_kernel(program, "overexposed");
}
示例11: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 8; // extended.cl from programs.conf
dt_iop_splittoning_global_data_t *gd = (dt_iop_splittoning_global_data_t *)malloc(sizeof(dt_iop_splittoning_global_data_t));
module->data = gd;
gd->kernel_splittoning = dt_opencl_create_kernel(program, "splittoning");
}
示例12: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl, from programs.conf
dt_iop_zonesystem_global_data_t *gd = (dt_iop_zonesystem_global_data_t *)malloc(sizeof(dt_iop_zonesystem_global_data_t));
module->data = gd;
gd->kernel_zonesystem = dt_opencl_create_kernel(program, "zonesystem");
}
示例13: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // from programs.conf: basic.cl
dt_iop_exposure_global_data_t *gd = (dt_iop_exposure_global_data_t *)malloc(sizeof(dt_iop_exposure_global_data_t));
module->data = gd;
gd->kernel_exposure = dt_opencl_create_kernel(program, "exposure");
}
示例14: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 8; // extended.cl, from programs.conf
dt_iop_channelmixer_global_data_t *gd = (dt_iop_channelmixer_global_data_t *)malloc(sizeof(dt_iop_channelmixer_global_data_t));
module->data = gd;
gd->kernel_channelmixer = dt_opencl_create_kernel(program, "channelmixer");
}
示例15: init_global
void init_global(dt_iop_module_so_t *module)
{
const int program = 2; // basic.cl, from programs.conf
dt_iop_profilegamma_global_data_t *gd
= (dt_iop_profilegamma_global_data_t *)malloc(sizeof(dt_iop_profilegamma_global_data_t));
module->data = gd;
gd->kernel_profilegamma = dt_opencl_create_kernel(program, "profilegamma");
}