Implement delete for frames

This commit is contained in:
Kovid Goyal
2021-01-28 09:59:44 +05:30
parent 43ea58ef48
commit d76e757d53
3 changed files with 80 additions and 23 deletions

View File

@@ -44,6 +44,7 @@ typedef struct {
typedef struct {
uint32_t gap;
uint32_t id;
} Frame;
@@ -56,7 +57,7 @@ typedef struct {
ImageRef *refs;
Frame *extra_frames;
uint32_t loop_delay, current_frame_index;
uint32_t loop_delay, current_frame_index, frame_id_counter;
size_t refcnt, refcap, extra_framecnt;
monotonic_t atime;
size_t used_storage;
@@ -79,7 +80,7 @@ typedef struct {
typedef struct {
id_type image_id;
uint32_t frame_idx;
uint32_t frame_id;
} ImageAndFrame;
typedef struct {