Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
luastorage.c File Reference
#include "lua/luastorage.h"
#include "common/file_location.h"
#include "common/image.h"
#include "common/imageio.h"
#include "common/imageio_module.h"
#include "control/jobs.h"
#include "lua/call.h"
#include "lua/glist.h"
#include "lua/image.h"
#include "lua/widget/widget.h"
#include <common/darktable.h>
#include <stdio.h>
+ Include dependency graph for luastorage.c:

Data Structures

struct  lua_storage_t
 
struct  lua_storage_gui_t
 
struct  free_param_wrapper_data
 

Functions

static void push_lua_data (lua_State *L, lua_storage_t *d)
 
static const char * name_wrapper (const struct dt_imageio_module_storage_t *self)
 
static void empty_wrapper (struct dt_imageio_module_storage_t *self)
 
static int default_supported_wrapper (struct dt_imageio_module_storage_t *self, struct dt_imageio_module_format_t *format)
 
static int default_dimension_wrapper (struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data, uint32_t *width, uint32_t *height)
 
static int store_wrapper (struct dt_imageio_module_storage_t *self, struct dt_imageio_module_data_t *self_data, const int32_t imgid, dt_imageio_module_format_t *format, dt_imageio_module_data_t *fdata, const int num, const int total, const gboolean high_quality, const gboolean export_masks, dt_colorspaces_color_profile_type_t icc_type, const gchar *icc_filename, dt_iop_color_intent_t icc_intent, dt_export_metadata_t *metadata)
 
static int initialize_store_wrapper (struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data, dt_imageio_module_format_t **format, dt_imageio_module_data_t **fdata, GList **images, const gboolean high_quality)
 
static void finalize_store_wrapper (struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data)
 
static size_t params_size_wrapper (struct dt_imageio_module_storage_t *self)
 
static voidget_params_wrapper (struct dt_imageio_module_storage_t *self)
 
static void free_param_wrapper_destroy (void *data)
 
static int32_t free_param_wrapper_job (dt_job_t *job)
 
static void free_params_wrapper (struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data)
 
static int set_params_wrapper (struct dt_imageio_module_storage_t *self, const void *params, const int size)
 
static char * ask_user_confirmation_wrapper (struct dt_imageio_module_storage_t *self)
 
static int version_wrapper ()
 
static void gui_init_wrapper (struct dt_imageio_module_storage_t *self)
 
static void gui_reset_wrapper (struct dt_imageio_module_storage_t *self)
 
static void gui_cleanup_wrapper (struct dt_imageio_module_storage_t *self)
 
static int register_storage (lua_State *L)
 
static int destroy_storage (lua_State *L)
 
int dt_lua_init_luastorages (lua_State *L)
 

Variables

static dt_imageio_module_storage_t ref_storage
 

Function Documentation

◆ ask_user_confirmation_wrapper()

static char * ask_user_confirmation_wrapper ( struct dt_imageio_module_storage_t self)
static

◆ default_dimension_wrapper()

static int default_dimension_wrapper ( struct dt_imageio_module_storage_t self,
dt_imageio_module_data_t data,
uint32_t *  width,
uint32_t *  height 
)
static

◆ default_supported_wrapper()

static int default_supported_wrapper ( struct dt_imageio_module_storage_t self,
struct dt_imageio_module_format_t format 
)
static

◆ destroy_storage()

◆ dt_lua_init_luastorages()

int dt_lua_init_luastorages ( lua_State L)

◆ empty_wrapper()

static void empty_wrapper ( struct dt_imageio_module_storage_t self)
static

Referenced by register_storage().

◆ finalize_store_wrapper()

◆ free_param_wrapper_destroy()

static void free_param_wrapper_destroy ( void data)
static

◆ free_param_wrapper_job()

static int32_t free_param_wrapper_job ( dt_job_t job)
static

◆ free_params_wrapper()

◆ get_params_wrapper()

static void * get_params_wrapper ( struct dt_imageio_module_storage_t self)
static

◆ gui_cleanup_wrapper()

static void gui_cleanup_wrapper ( struct dt_imageio_module_storage_t self)
static

◆ gui_init_wrapper()

◆ gui_reset_wrapper()

◆ initialize_store_wrapper()

static int initialize_store_wrapper ( struct dt_imageio_module_storage_t self,
dt_imageio_module_data_t data,
dt_imageio_module_format_t **  format,
dt_imageio_module_data_t **  fdata,
GList **  images,
const gboolean  high_quality 
)
static

◆ name_wrapper()

static const char * name_wrapper ( const struct dt_imageio_module_storage_t self)
static

◆ params_size_wrapper()

static size_t params_size_wrapper ( struct dt_imageio_module_storage_t self)
static

◆ push_lua_data()

static void push_lua_data ( lua_State L,
lua_storage_t d 
)
static

◆ register_storage()

◆ set_params_wrapper()

static int set_params_wrapper ( struct dt_imageio_module_storage_t self,
const void params,
const int  size 
)
static

◆ store_wrapper()

static int store_wrapper ( struct dt_imageio_module_storage_t self,
struct dt_imageio_module_data_t self_data,
const int32_t  imgid,
dt_imageio_module_format_t format,
dt_imageio_module_data_t fdata,
const int  num,
const int  total,
const gboolean  high_quality,
const gboolean  export_masks,
dt_colorspaces_color_profile_type_t  icc_type,
const gchar *  icc_filename,
dt_iop_color_intent_t  icc_intent,
dt_export_metadata_t metadata 
)
static

◆ version_wrapper()

static int version_wrapper ( )
static

Variable Documentation

◆ ref_storage

dt_imageio_module_storage_t ref_storage
static
Initial value:
= {
.plugin_name = { 0 },
.module = NULL,
.widget = NULL,
.gui_data = NULL,
.name = name_wrapper,
.gui_init = gui_init_wrapper,
.gui_cleanup = gui_cleanup_wrapper,
.gui_reset = gui_reset_wrapper,
.init = NULL,
.recommended_dimension = default_dimension_wrapper,
.store = store_wrapper,
.finalize_store = finalize_store_wrapper,
.initialize_store = initialize_store_wrapper,
.params_size = params_size_wrapper,
.get_params = get_params_wrapper,
.free_params = free_params_wrapper,
.set_params = set_params_wrapper,
.export_dispatched = empty_wrapper,
.ask_user_confirmation = ask_user_confirmation_wrapper,
.parameter_lua_type = LUAA_INVALID_TYPE,
.version = version_wrapper,
}
#define LUAA_INVALID_TYPE
Definition lua.h:93
static int set_params_wrapper(struct dt_imageio_module_storage_t *self, const void *params, const int size)
Definition luastorage.c:306
static void gui_reset_wrapper(struct dt_imageio_module_storage_t *self)
Definition luastorage.c:327
static void gui_init_wrapper(struct dt_imageio_module_storage_t *self)
Definition luastorage.c:321
static int version_wrapper()
Definition luastorage.c:316
static void finalize_store_wrapper(struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data)
Definition luastorage.c:210
static int initialize_store_wrapper(struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data, dt_imageio_module_format_t **format, dt_imageio_module_data_t **fdata, GList **images, const gboolean high_quality)
Definition luastorage.c:149
static int store_wrapper(struct dt_imageio_module_storage_t *self, struct dt_imageio_module_data_t *self_data, const int32_t imgid, dt_imageio_module_format_t *format, dt_imageio_module_data_t *fdata, const int num, const int total, const gboolean high_quality, const gboolean export_masks, dt_colorspaces_color_profile_type_t icc_type, const gchar *icc_filename, dt_iop_color_intent_t icc_intent, dt_export_metadata_t *metadata)
Definition luastorage.c:78
static const char * name_wrapper(const struct dt_imageio_module_storage_t *self)
Definition luastorage.c:55
static char * ask_user_confirmation_wrapper(struct dt_imageio_module_storage_t *self)
Definition luastorage.c:311
static size_t params_size_wrapper(struct dt_imageio_module_storage_t *self)
Definition luastorage.c:239
static void empty_wrapper(struct dt_imageio_module_storage_t *self)
Definition luastorage.c:59
static void gui_cleanup_wrapper(struct dt_imageio_module_storage_t *self)
Definition luastorage.c:337
static void free_params_wrapper(struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data)
Definition luastorage.c:291
static int default_supported_wrapper(struct dt_imageio_module_storage_t *self, struct dt_imageio_module_format_t *format)
Definition luastorage.c:60
static void * get_params_wrapper(struct dt_imageio_module_storage_t *self)
Definition luastorage.c:243
static int default_dimension_wrapper(struct dt_imageio_module_storage_t *self, dt_imageio_module_data_t *data, uint32_t *width, uint32_t *height)
Definition luastorage.c:72

Referenced by register_storage().