diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-07 02:01:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-02-26 21:22:42 +0300 |
commit | da38cb622e0f2e6389fee3ffb148ca77b5979014 (patch) | |
tree | c153731e6acf1c0260ca15bab556ff94443e5307 /source/blender/editors/include | |
parent | 4c4e798f3529b3972d96ad68635b3e31eccdee81 (diff) |
Cleanup: split image sequence detection into own file, and make it reusable
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_image.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_image.h b/source/blender/editors/include/ED_image.h index e6d8684a8b2..d78c2620253 100644 --- a/source/blender/editors/include/ED_image.h +++ b/source/blender/editors/include/ED_image.h @@ -24,15 +24,21 @@ #ifndef __ED_IMAGE_H__ #define __ED_IMAGE_H__ +#include "DNA_listBase.h" +#include "DNA_space_types.h" + struct ARegion; struct ImBuf; struct Image; struct ImageUser; +struct LinkNodePair; +struct Main; struct ReportList; struct Scene; struct SpaceImage; struct ViewLayer; struct bContext; +struct wmOperator; struct wmWindowManager; /* image_edit.c, exported for transform */ @@ -116,4 +122,24 @@ bool ED_image_should_save_modified(const struct bContext *C); int ED_image_save_all_modified_info(const struct bContext *C, struct ReportList *reports); bool ED_image_save_all_modified(const struct bContext *C, struct ReportList *reports); +/* image_sequence.c */ +typedef struct ImageFrameRange { + struct ImageFrameRange *next, *prev; + + /** Absolute file path of the first file in the range. */ + char filepath[FILE_MAX]; + /* Sequence parameters. */ + int length; + int offset; + /* UDIM tiles. */ + ListBase udim_tiles; + + /* Temporary data. */ + ListBase frames; +} ImageFrameRange; + +ListBase ED_image_filesel_detect_sequences(struct Main *bmain, + struct wmOperator *op, + const bool detect_udim); + #endif /* __ED_IMAGE_H__ */ |