Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
film.h File Reference
#include "common/darktable.h"
#include "common/dtpthread.h"
#include <glib.h>
#include <inttypes.h>
+ Include dependency graph for common/film.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_film_t
 

Typedefs

typedef struct dt_film_t dt_film_t
 

Functions

void dt_film_init (dt_film_t *film)
 
void dt_film_cleanup (dt_film_t *film)
 
int dt_film_open (const int32_t id)
 
int dt_film_import (const char *dirname)
 
void dt_film_set_query (const int32_t id)
 
int32_t dt_film_get_id (const char *folder)
 
void dt_film_remove (const int id)
 
gboolean dt_film_is_empty (const int id)
 
int dt_film_new (dt_film_t *film, const char *directory)
 
void dt_film_remove_empty ()
 
GList * dt_film_get_image_ids (const int filmid)
 
void dt_film_set_folder_status ()
 

Typedef Documentation

◆ dt_film_t

typedef struct dt_film_t dt_film_t

film roll. this is one directory of images on disk. also manages the preview image cache.

Function Documentation

◆ dt_film_cleanup()

◆ dt_film_get_id()

int32_t dt_film_get_id ( const char *  folder)

◆ dt_film_get_image_ids()

GList * dt_film_get_image_ids ( const int  filmid)

gets all image ids in film. the returned GList has to be freed with g_list_free().

References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.

Referenced by main().

◆ dt_film_import()

int dt_film_import ( const char *  dirname)

import new film and all images in this directory as a background task(non-recursive, existing films/images are respected).

References darktable_t::control, darktable, dt_film_t::dir, dt_film_t::dirname, dt_control_add_job(), dt_film_cleanup(), dt_film_import1_create(), dt_film_init(), dt_film_is_empty(), dt_film_new(), dt_film_remove(), DT_JOB_QUEUE_USER_BG, error(), dt_film_t::id, and dt_film_t::last_loaded.

Referenced by dt_load_from_string(), import_images(), and main().

◆ dt_film_init()

◆ dt_film_is_empty()

gboolean dt_film_is_empty ( const int  id)

◆ dt_film_new()

◆ dt_film_open()

int dt_film_open ( const int32_t  id)

◆ dt_film_remove()

◆ dt_film_remove_empty()

◆ dt_film_set_folder_status()

◆ dt_film_set_query()

void dt_film_set_query ( const int32_t  id)