Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/image.c
| Show First 20 Lines • Show All 3,954 Lines • ▼ Show 20 Lines | static int image_num_files(Image *ima) | ||||
| } | } | ||||
| } | } | ||||
| static ImBuf *load_sequence_single( | static ImBuf *load_sequence_single( | ||||
| Image *ima, ImageUser *iuser, int frame, const int view_id, bool *r_assign) | Image *ima, ImageUser *iuser, int frame, const int view_id, bool *r_assign) | ||||
| { | { | ||||
| struct ImBuf *ibuf; | struct ImBuf *ibuf; | ||||
| char name[FILE_MAX]; | char name[FILE_MAX]; | ||||
| int flag; | eImBufFlags flag; | ||||
| ImageUser iuser_t = {0}; | ImageUser iuser_t = {0}; | ||||
| ima->lastframe = frame; | ima->lastframe = frame; | ||||
| if (iuser) { | if (iuser) { | ||||
| iuser_t = *iuser; | iuser_t = *iuser; | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | static ImBuf *load_image_single(Image *ima, | ||||
| ImageUser *iuser, | ImageUser *iuser, | ||||
| int cfra, | int cfra, | ||||
| const int view_id, | const int view_id, | ||||
| const bool has_packed, | const bool has_packed, | ||||
| bool *r_assign) | bool *r_assign) | ||||
| { | { | ||||
| char filepath[FILE_MAX]; | char filepath[FILE_MAX]; | ||||
| struct ImBuf *ibuf = NULL; | struct ImBuf *ibuf = NULL; | ||||
| int flag; | eImBufFlags flag; | ||||
| /* is there a PackedFile with this image ? */ | /* is there a PackedFile with this image ? */ | ||||
| if (has_packed) { | if (has_packed) { | ||||
| ImagePackedFile *imapf; | ImagePackedFile *imapf; | ||||
| flag = IB_rect | IB_multilayer; | flag = IB_rect | IB_multilayer; | ||||
| flag |= imbuf_alpha_flags_for_image(ima); | flag |= imbuf_alpha_flags_for_image(ima); | ||||
| ▲ Show 20 Lines • Show All 1,534 Lines • Show Last 20 Lines | |||||