![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Include dependency graph for 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 () |
| void | dt_film_relocate (const char *old_path, const char *new_path) |
film roll. this is one directory of images on disk. also manages the preview image cache.
Definition at line 80 of file film.c.
References dt_film_t::dir, dt_pthread_mutex_destroy(), and dt_film_t::images_mutex.
Referenced by _drop_move_to_folder(), _film_import1(), create_test_image(), dt_film_import(), and dt_film_import1_cleanup().
| int32_t dt_film_get_id | ( | const char * | folder | ) |
get id associated with filmroll
Definition at line 111 of file film.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_TEXT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by _folders_root_collapse_path(), _is_in_library_by_path(), and dt_film_new().
| 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().
Definition at line 497 of file film.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by main().
| 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).
Definition at line 236 of file film.c.
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_free, DT_JOB_QUEUE_USER_BG, error(), dt_film_t::id, and dt_film_t::last_loaded.
Referenced by dt_load_from_string(), and main().
Definition at line 70 of file film.c.
References dt_film_t::dir, dt_film_t::dirname, dt_pthread_mutex_init(), dt_film_t::id, dt_film_t::images_mutex, dt_film_t::last_loaded, dt_film_t::num_images, and dt_film_t::ref.
Referenced by _drop_move_to_folder(), _film_import1(), create_test_image(), and dt_film_import().
| gboolean dt_film_is_empty | ( | const int | id | ) |
checks if film is empty
Definition at line 383 of file film.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, FALSE, and TRUE.
Referenced by _film_import1(), dt_film_import(), and dt_film_import1_run().
| int dt_film_new | ( | dt_film_t * | film, |
| const char * | directory | ||
| ) |
Creating a new filmroll
Definition at line 161 of file film.c.
References darktable, darktable_t::db, dt_film_t::dirname, dt_database_get(), DT_DEBUG_IMPORT, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_film_get_id(), dt_print(), dt_film_t::id, and dt_film_t::last_loaded.
Referenced by _drop_move_to_folder(), _film_import1(), _generic_dt_control_fileop_images_job_run(), _import_job(), create_test_image(), dt_control_merge_hdr_job_run(), dt_film_import(), dt_load_from_string(), and main().
| int dt_film_open | ( | const int32_t | id | ) |
open film with given id.
Definition at line 128 of file film.c.
References darktable, darktable_t::db, dt_control_queue_redraw_center(), dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_film_set_query(), dt_view_manager_reset(), and darktable_t::view_manager.
Referenced by dt_load_from_string().
| void dt_film_relocate | ( | const char * | old_path, |
| const char * | new_path | ||
| ) |
relocate every film roll located under old_path so it sits under new_path (database only, does not move files on disk). Used by the library module to fix moved folders.
Definition at line 455 of file film.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, f, i, and IS_NULL_PTR.
Referenced by _act_folders_relocate().
| void dt_film_remove | ( | const int | id | ) |
removes this film and all its images from db.
Definition at line 398 of file film.c.
References darktable, darktable_t::db, dt_control_log(), dt_database_get(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_image_cache_remove(), dt_image_local_copy_reset(), dt_image_safe_remove(), dt_mipmap_cache_remove(), DT_SIGNAL_FILMROLLS_CHANGED, FALSE, darktable_t::image_cache, darktable_t::mipmap_cache, darktable_t::signals, and TRUE.
Referenced by _film_import1(), dt_film_import(), and dt_film_import1_run().
| void dt_film_remove_empty | ( | ) |
removes all empty film rolls.
Definition at line 342 of file film.c.
References ask_and_delete(), darktable, darktable_t::db, dt_conf_get_bool(), dt_database_get(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, DT_SIGNAL_FILMROLLS_REMOVED, dt_util_is_dir_empty(), FALSE, darktable_t::signals, and TRUE.
Referenced by _generic_dt_control_fileop_images_job_run(), dt_control_delete_images_job_run(), and dt_control_remove_images_job_run().
| void dt_film_set_folder_status | ( | ) |
Definition at line 514 of file film.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by _act_folders_relocate(), _mount_changed(), and dt_init().
| void dt_film_set_query | ( | const int32_t | id | ) |
constructs the lighttable/query setting for this film, respecting stars and filters.
Definition at line 90 of file film.c.
References darktable_t::collection, darktable, darktable_t::db, DT_COLLECTION_CHANGE_NEW_QUERY, DT_COLLECTION_PROP_UNDEF, dt_collection_update_query(), dt_conf_set_int(), dt_conf_set_string(), dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by dt_film_open().