30#define DT_DRAWLAYER_IO_NAME_SIZE 64
31#define DT_DRAWLAYER_IO_PROFILE_SIZE 256
98 int raw_height, gboolean delete_target,
int *final_order);
102 int raw_height,
int *final_order);
int width
Definition bilateral.h:1
int height
Definition bilateral.h:1
#define PATH_MAX
Definition darktable.h:993
int32_t dt_drawlayer_io_background_layer_job_run(dt_job_t *job)
Worker entrypoint for async "create background from input" sidecar jobs.
Definition io.c:989
void dt_drawlayer_io_make_unique_name(const char *path, const char *requested, const char *fallback_name, char *name, size_t name_size)
Build unique layer name with fallback and numeric suffixing.
Definition io.c:904
#define DT_DRAWLAYER_IO_PROFILE_SIZE
Definition io.h:31
gboolean dt_drawlayer_io_load_layer(const char *path, const char *target_name, int target_order, int raw_width, int raw_height, dt_drawlayer_io_patch_t *patch)
Load one layer from TIFF sidecar into float RGBA patch.
Definition io.c:676
gboolean dt_drawlayer_io_store_layer(const char *path, const char *target_name, int target_order, const char *work_profile, const dt_drawlayer_io_patch_t *patch, int raw_width, int raw_height, gboolean delete_target, int *final_order)
Store or replace one layer page in sidecar TIFF.
Definition io.c:882
gboolean dt_drawlayer_io_layer_name_exists(const char *path, const char *candidate, int ignore_index)
Check whether candidate layer name already exists.
Definition io.c:611
gboolean dt_drawlayer_io_list_layer_names(const char *path, char ***names, int *count)
List all layer names from sidecar TIFF.
Definition io.c:942
void dt_drawlayer_io_make_unique_name_plain(const char *path, const char *requested, char *name, size_t name_size)
Build unique layer name without fallback override.
Definition io.c:922
gboolean dt_drawlayer_io_sidecar_path(int32_t imgid, char *path, size_t path_size)
Build absolute sidecar TIFF path from image id.
Definition io.c:651
#define DT_DRAWLAYER_IO_NAME_SIZE
Definition io.h:30
gboolean dt_drawlayer_io_load_flat_rgba(const char *path, float **pixels, int *width, int *height)
Load full TIFF page as flat RGBA float image.
Definition io.c:739
gboolean dt_drawlayer_io_insert_layer(const char *path, const char *target_name, int insert_after_order, const char *work_profile, const dt_drawlayer_io_patch_t *patch, int raw_width, int raw_height, int *final_order)
Insert new layer after target order in sidecar TIFF.
Definition io.c:893
void dt_drawlayer_io_free_layer_names(char ***names, int *count)
Free name list returned by dt_drawlayer_io_list_layer_names.
Definition io.c:980
gboolean dt_drawlayer_io_find_layer(const char *path, const char *target_name, int target_order, dt_drawlayer_io_layer_info_t *info)
Lookup layer by name/order and return directory metadata.
Definition io.c:662
Parameters owned by the async "create background from input" job.
Definition io.h:59
int insert_after_order
Definition io.h:65
int raw_height
Definition io.h:62
char work_profile[256]
Definition io.h:67
char initiator_layer_name[64]
Definition io.h:70
int raw_width
Definition io.h:61
int initiator_layer_order
Definition io.h:71
GSourceFunc done_idle
Definition io.h:72
char sidecar_path[PATH_MAX]
Definition io.h:66
char filter[64]
Definition io.h:69
int dst_x
Definition io.h:63
char requested_bg_name[64]
Definition io.h:68
int32_t imgid
Definition io.h:60
int dst_y
Definition io.h:64
Result posted back to the UI after background-layer creation.
Definition io.h:77
int initiator_layer_order
Definition io.h:83
char initiator_layer_name[64]
Definition io.h:82
gboolean success
Definition io.h:78
char message[256]
Definition io.h:84
int64_t sidecar_timestamp
Definition io.h:80
int32_t imgid
Definition io.h:79
char created_bg_name[64]
Definition io.h:81
Metadata returned when probing one layer directory in sidecar TIFF.
Definition io.h:45
uint32_t height
Definition io.h:50
char work_profile[256]
Definition io.h:52
uint32_t width
Definition io.h:49
char name[64]
Definition io.h:51
int count
Definition io.h:48
int index
Definition io.h:47
gboolean found
Definition io.h:46
Raw float RGBA patch used by drawlayer I/O routines.
Definition io.h:35
int width
Definition io.h:38
float * pixels
Definition io.h:40
int height
Definition io.h:39