46 int range_first_frame = 0;
64 if (frame->
framenr < range_first_frame) {
66 range_first_frame = frame->
framenr;
78 range_first_frame = frame->
framenr;
109 int udim_start, udim_range;
114 range->
offset = udim_start;
115 range->
length = udim_range;
125 int frame_curr = frame->
framenr;
126 range->
offset = frame_curr;
128 while (frame !=
NULL && (frame->
framenr == frame_curr)) {
bool BKE_image_get_tile_info(char *filepath, struct ListBase *tiles, int *r_tile_start, int *r_tile_range)
const char * BKE_main_blendfile_path(const struct Main *bmain) ATTR_NONNULL()
File and directory operations.
Some types for dealing with directories.
#define LISTBASE_FOREACH(type, var, list)
BLI_INLINE void BLI_listbase_clear(struct ListBase *lb)
void void BLI_freelistN(struct ListBase *listbase) ATTR_NONNULL(1)
void void BLI_listbase_sort(struct ListBase *listbase, int(*cmp)(const void *, const void *)) ATTR_NONNULL(1
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
int BLI_path_sequence_decode(const char *string, char *head, char *tail, unsigned short *r_digits_len)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BLI_path_rel(char *file, const char *relfile) ATTR_NONNULL()
void BLI_join_dirfile(char *__restrict dst, size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL()
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
#define STREQLEN(a, b, n)
Read Guarded memory(de)allocation.
#define RNA_BEGIN(sptr, itemptr, propname)
static void image_detect_frame_range(ImageFrameRange *range, const bool detect_udim)
static void image_sequence_get_frame_ranges(wmOperator *op, ListBase *ranges)
ListBase ED_image_filesel_detect_sequences(Main *bmain, wmOperator *op, const bool detect_udim)
static int image_cmp_frame(const void *a, const void *b)
struct ImageFrame ImageFrame
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void RNA_string_get(PointerRNA *ptr, const char *name, char *value)
char * RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen, int *r_len)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)