![]() |
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 | |
| 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 149 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 40 of file grouping.c.
References dt_grouping_remove_from_group(), dt_image_cache_get(), DT_IMAGE_CACHE_SAFE, dt_image_cache_write_release(), dt_image_t::group_id, and IS_NULL_PTR.
Referenced by _image_duplicate_with_version(), dt_image_read_duplicates(), group_images_callback(), and test_setters_leave_an_unreadable_image_alone().
| int dt_grouping_change_representative | ( | const int32_t | image_id | ) |
make an image the representative of the group it is in
Definition at line 105 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(), dt_image_t::group_id, IS_NULL_PTR, and m.
Referenced by _event_grouping_release(), and test_change_representative_moves_an_unreadable_member().
| GList * dt_grouping_get_group_images | ( | const int32_t | imgid | ) |
get images of the group
Definition at line 131 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().
| int dt_grouping_remove_from_group | ( | const int32_t | image_id | ) |
remove an image from a group
Definition at line 52 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(), dt_image_t::group_id, IS_NULL_PTR, and o.
Referenced by _image_remove(), dt_grouping_add_to_group(), test_remove_from_group_names_the_group_after_a_readable_member(), and ungroup_images_callback().