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

Go to the source code of this file.

Functions

void dt_grouping_add_to_group (int32_t group_id, int32_t image_id)
 
int dt_grouping_remove_from_group (int32_t image_id)
 
int dt_grouping_change_representative (int32_t image_id)
 
GList * dt_grouping_get_group_images (const int32_t imgid)
 
void dt_grouping_add_grouped_images (GList **images)
 

Function Documentation

◆ dt_grouping_add_grouped_images()

void dt_grouping_add_grouped_images ( GList **  images)

◆ dt_grouping_add_to_group()

void dt_grouping_add_to_group ( const int32_t  group_id,
const int32_t  image_id 
)

◆ dt_grouping_change_representative()

int dt_grouping_change_representative ( const int32_t  image_id)

make an image the representative of the group it is in. returns the new group_id, or -1 when the image could not be read. A member that cannot be read moves to the new group with the others.

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().

◆ dt_grouping_get_group_images()

GList * dt_grouping_get_group_images ( const int32_t  imgid)

◆ dt_grouping_remove_from_group()

int dt_grouping_remove_from_group ( const int32_t  image_id)

remove an image from a group. returns the new group_id of the other images, or -1 when nothing changed: the image was alone, or could not be read.

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().