本文整理汇总了C++中dt_control_job_init函数的典型用法代码示例。如果您正苦于以下问题:C++ dt_control_job_init函数的具体用法?C++ dt_control_job_init怎么用?C++ dt_control_job_init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dt_control_job_init函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: dt_dev_process_image_job_init
void dt_dev_process_image_job_init(dt_job_t *job, dt_develop_t *dev)
{
dt_control_job_init(job, "develop process image");
job->execute = &dt_dev_process_image_job_run;
dt_dev_process_t *t = (dt_dev_process_t *)job->param;
t->dev = dev;
}
开发者ID:AntonSh,项目名称:darktable,代码行数:7,代码来源:develop_jobs.c
示例2: dt_control_merge_hdr_job_init
void dt_control_merge_hdr_job_init(dt_job_t *job)
{
dt_control_job_init(job, "merge hdr image");
job->execute = &dt_control_merge_hdr_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
dt_control_image_enumerator_job_selected_init(t);
}
开发者ID:minusdreidb,项目名称:darktable,代码行数:7,代码来源:control_jobs.c
示例3: dt_control_export_job_init
void dt_control_export_job_init(dt_job_t *job)
{
dt_control_job_init(job, "export");
job->execute = &dt_control_export_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
dt_control_image_enumerator_job_init(t);
}
开发者ID:nagyistoce,项目名称:radhermit-darktable,代码行数:7,代码来源:control_jobs.c
示例4: dt_control_write_sidecar_files_job_init
void dt_control_write_sidecar_files_job_init(dt_job_t *job)
{
dt_control_job_init(job, "write sidecar files");
job->execute = &dt_control_write_sidecar_files_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
dt_control_image_enumerator_job_selected_init(t);
}
开发者ID:minusdreidb,项目名称:darktable,代码行数:7,代码来源:control_jobs.c
示例5: dt_control_delete_images_job_init
void dt_control_delete_images_job_init(dt_job_t *job)
{
dt_control_job_init(job, "delete images");
job->execute = &dt_control_delete_images_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
dt_control_image_enumerator_job_init(t);
}
开发者ID:nagyistoce,项目名称:radhermit-darktable,代码行数:7,代码来源:control_jobs.c
示例6: dt_control_copy_images_job_init
void dt_control_copy_images_job_init(dt_job_t *job)
{
dt_control_job_init(job, "copy images");
job->execute = &dt_control_copy_images_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
dt_control_image_enumerator_job_selected_init(t);
}
开发者ID:minusdreidb,项目名称:darktable,代码行数:7,代码来源:control_jobs.c
示例7: dt_captured_image_import_job_init
void dt_captured_image_import_job_init(dt_job_t *job,uint32_t filmid, const char *filename)
{
dt_control_job_init(job, "import tethered image");
job->execute = &dt_captured_image_import_job_run;
dt_captured_image_import_t *t = (dt_captured_image_import_t *)job->param;
t->filename = g_strdup(filename);
t->film_id = filmid;
}
开发者ID:AntonSh,项目名称:darktable,代码行数:8,代码来源:camera_jobs.c
示例8: dt_camera_import_backup_job_init
void dt_camera_import_backup_job_init(dt_job_t *job,const char *sourcefile, const char *destinationfile)
{
dt_control_job_init(job, "backup of imported image from camera");
job->execute = &dt_camera_import_backup_job_run;
dt_camera_import_backup_t *t = (dt_camera_import_backup_t *)job->param;
t->sourcefile=g_strdup(sourcefile);
t->destinationfile=g_strdup(destinationfile);
}
开发者ID:AntonSh,项目名称:darktable,代码行数:8,代码来源:camera_jobs.c
示例9: dt_control_flip_images_job_init
void dt_control_flip_images_job_init(dt_job_t *job, const int32_t cw)
{
dt_control_job_init(job, "flip images");
job->execute = &dt_control_flip_images_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
dt_control_image_enumerator_job_selected_init(t);
t->flag = cw;
}
开发者ID:minusdreidb,项目名称:darktable,代码行数:8,代码来源:control_jobs.c
示例10: dt_image_load_job_init
void dt_image_load_job_init(dt_job_t *job, int32_t id, dt_mipmap_size_t mip)
{
dt_control_job_init(job, "load image %d mip %d", id, mip);
job->execute = &dt_image_load_job_run;
dt_image_load_t *t = (dt_image_load_t *)job->param;
t->imgid = id;
t->mip = mip;
}
开发者ID:yama1968,项目名称:darktable,代码行数:8,代码来源:image_jobs.c
示例11: dt_control_match_similar_job_init
void dt_control_match_similar_job_init(dt_job_t *job, uint32_t imgid,dt_similarity_t *data)
{
dt_control_job_init(job, "match similar images");
job->execute = &dt_control_match_similar_job_run;
_control_match_similar_job_param_t *t = (_control_match_similar_job_param_t *)job->param;
t->imgid = imgid;
t->data = *data;
}
开发者ID:ksyz,项目名称:darktable,代码行数:8,代码来源:control_jobs.c
示例12: free_params_wrapper
static void free_params_wrapper (struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data)
{
dt_job_t job;
dt_control_job_init(&job, "lua: destroy storage param");
job.execute = &free_param_wrapper_job;
free_param_wrapper_data *t = (free_param_wrapper_data*)job.param;
t->data = (lua_storage_t*)data;
dt_control_add_job(darktable.control, &job);
}
开发者ID:danielbaak,项目名称:darktable,代码行数:9,代码来源:storage.c
示例13: dt_film_import1_init
void dt_film_import1_init(dt_job_t *job, dt_film_t *film)
{
dt_control_job_init(job, "cache load raw images for preview");
job->execute = &dt_film_import1_run;
dt_film_import1_t *t = (dt_film_import1_t *)job->param;
t->film = film;
dt_pthread_mutex_lock(&film->images_mutex);
film->ref++;
dt_pthread_mutex_unlock(&film->images_mutex);
}
开发者ID:AntonSh,项目名称:darktable,代码行数:10,代码来源:film_jobs.c
示例14: dt_camera_capture_job_init
void dt_camera_capture_job_init(dt_job_t *job,uint32_t filmid, uint32_t delay, uint32_t count, uint32_t brackets, uint32_t steps)
{
dt_control_job_init(job, "remote capture of image(s)");
job->execute = &dt_camera_capture_job_run;
dt_camera_capture_t *t = (dt_camera_capture_t *)job->param;
t->film_id=filmid;
t->delay=delay;
t->count=count;
t->brackets=brackets;
t->steps=steps;
}
开发者ID:AntonSh,项目名称:darktable,代码行数:11,代码来源:camera_jobs.c
示例15: dt_camera_get_previews_job_init
void dt_camera_get_previews_job_init(dt_job_t *job,dt_camera_t *camera,dt_camctl_listener_t *listener,uint32_t flags)
{
dt_control_job_init(job, "get camera previews job");
job->execute = &dt_camera_get_previews_job_run;
dt_camera_get_previews_t *t = (dt_camera_get_previews_t *)job->param;
t->listener=g_malloc(sizeof(dt_camctl_listener_t));
memcpy(t->listener,listener,sizeof(dt_camctl_listener_t));
t->camera=camera;
t->flags=flags;
}
开发者ID:AntonSh,项目名称:darktable,代码行数:12,代码来源:camera_jobs.c
示例16: dt_camera_capture_job_init
void dt_camera_capture_job_init(dt_job_t *job,const char *jobcode, uint32_t delay, uint32_t count, uint32_t brackets, uint32_t steps)
{
dt_control_job_init(job, "remote capture of image(s)");
job->execute = &dt_camera_capture_job_run;
dt_camera_capture_t *t = (dt_camera_capture_t *)job->param;
t->shared.session = dt_import_session_new();
dt_import_session_set_name(t->shared.session, jobcode);
t->delay=delay;
t->count=count;
t->brackets=brackets;
t->steps=steps;
}
开发者ID:yama1968,项目名称:darktable,代码行数:14,代码来源:camera_jobs.c
示例17: shortcut_callback
static gboolean shortcut_callback(GtkAccelGroup *accel_group,
GObject *acceleratable,
guint keyval,
GdkModifierType modifier,
gpointer p)
{
dt_job_t job;
dt_control_job_init(&job, "lua: on export image tmpfile");
job.execute = &shortcut_callback_job;
shortcut_callback_data *t = (shortcut_callback_data*)job.param;
t->name = strdup(p);
dt_control_add_job(darktable.control, &job);
return TRUE;
}
开发者ID:danielbaak,项目名称:darktable,代码行数:14,代码来源:events.c
示例18: dt_control_time_offset_job_init
void dt_control_time_offset_job_init(dt_job_t *job, const long int offset, long int imgid)
{
dt_control_job_init(job, "time offset");
job->execute = &dt_control_time_offset_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
if (imgid != -1)
t->index = g_list_append(t->index, (gpointer)imgid);
else
dt_control_image_enumerator_job_selected_init(t);
dt_control_time_offset_t *data = (dt_control_time_offset_t*)malloc(sizeof(dt_control_time_offset_t));
data->offset = offset;
t->data = data;
}
开发者ID:minusdreidb,项目名称:darktable,代码行数:14,代码来源:control_jobs.c
示例19: dt_control_gpx_apply_job_init
void dt_control_gpx_apply_job_init(dt_job_t *job, const gchar *filename, int32_t filmid, const gchar *tz)
{
dt_control_job_init(job, "gpx apply");
job->execute = &dt_control_gpx_apply_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
if (filmid != -1)
dt_control_image_enumerator_job_film_init(t, filmid);
else
dt_control_image_enumerator_job_selected_init(t);
dt_control_gpx_apply_t *data = (dt_control_gpx_apply_t*)malloc(sizeof(dt_control_gpx_apply_t));
data->filename = g_strdup(filename);
data->tz = g_strdup(tz);
t->data = data;
}
开发者ID:minusdreidb,项目名称:darktable,代码行数:15,代码来源:control_jobs.c
示例20: dt_control_export_job_init
void dt_control_export_job_init(dt_job_t *job, int max_width, int max_height, int format_index, int storage_index, gboolean high_quality, char *style)
{
dt_control_job_init(job, "export");
job->execute = &dt_control_export_job_run;
dt_control_image_enumerator_t *t = (dt_control_image_enumerator_t *)job->param;
dt_control_image_enumerator_job_selected_init(t);
dt_control_export_t *data = (dt_control_export_t*)malloc(sizeof(dt_control_export_t));
data->max_width = max_width;
data->max_height = max_height;
data->format_index = format_index;
data->storage_index = storage_index;
data->high_quality = high_quality;
strncpy(data->style,style,128);
t->data = data;
}
开发者ID:minusdreidb,项目名称:darktable,代码行数:15,代码来源:control_jobs.c
注:本文中的dt_control_job_init函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论