![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/grouping.h"#include "common/collection.h"#include "system/macros.h"#include "system/mem_alloc.h"#include "database/collection_query.h"#include "database/image_repository.h"#include "caches/image_cache.h"
Include dependency graph for grouping.c:Go to the source code of this file.
Functions | |
| int32_t | dt_grouping_get_image_group (const int32_t image_id) |
| void | dt_grouping_add_to_group (const int32_t group_id, const int32_t image_id) |
| int | dt_grouping_remove_from_group (const int32_t image_id) |
| int | dt_grouping_change_representative (const int32_t image_id) |
| GList * | dt_grouping_get_group_images (const int32_t imgid) |
| void | dt_grouping_add_grouped_images (GList **images) |
| void dt_grouping_add_grouped_images | ( | GList ** | images | ) |
add grouped images to images list
Definition at line 148 of file grouping.c.
References dt_collection_get_global(), dt_collection_query_get_group_members(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_t::group_id, IS_NULL_PTR, and m.
Referenced by dt_control_datetime_job_run(), dt_image_set_location(), dt_ratings_apply_on_image(), and dt_tag_detach().
| void dt_grouping_add_to_group | ( | const int32_t | group_id, |
| const int32_t | image_id | ||
| ) |
add an image to a group
Definition at line 47 of file grouping.c.
References dt_grouping_remove_from_group(), dt_image_cache_get(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), and dt_image_t::group_id.
Referenced by _image_duplicate_with_version(), dt_image_read_duplicates(), and group_images_callback().
| int dt_grouping_change_representative | ( | const int32_t | image_id | ) |
make an image the representative of the group it is in
Definition at line 108 of file grouping.c.
References dt_image_cache_get(), dt_image_cache_read_release(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), dt_image_repository_get_group_members(), dt_image_t::group_id, and m.
Referenced by _event_grouping_release().
| GList * dt_grouping_get_group_images | ( | const int32_t | imgid | ) |
get images of the group
Definition at line 130 of file grouping.c.
References dt_image_cache_get(), dt_image_cache_read_release(), dt_image_repository_get_group_members(), dt_image_t::group_id, and m.
Referenced by dt_control_datetime_job_run(), and dt_control_gpx_apply_job_run().
| int32_t dt_grouping_get_image_group | ( | const int32_t | image_id | ) |
util to get the group ID of any image
Definition at line 38 of file grouping.c.
References dt_image_cache_get(), dt_image_cache_read_release(), and dt_image_t::group_id.
| int dt_grouping_remove_from_group | ( | const int32_t | image_id | ) |
remove an image from a group
Definition at line 58 of file grouping.c.
References dt_image_cache_get(), dt_image_cache_read_release(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), dt_image_repository_get_group_members(), dt_image_repository_reassign_group(), and dt_image_t::group_id.
Referenced by _image_remove(), dt_grouping_add_to_group(), and ungroup_images_callback().