Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Show First 20 Lines • Show All 2,087 Lines • ▼ Show 20 Lines | case SEQ_TYPE_IMAGE: { | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| return num_views; | return num_views; | ||||
| } | } | ||||
| void BKE_sequencer_proxy_rebuild_context(Main *bmain, | bool BKE_sequencer_proxy_rebuild_context(Main *bmain, | ||||
| Depsgraph *depsgraph, | Depsgraph *depsgraph, | ||||
| Scene *scene, | Scene *scene, | ||||
| Sequence *seq, | Sequence *seq, | ||||
| struct GSet *file_list, | struct GSet *file_list, | ||||
| ListBase *queue) | ListBase *queue) | ||||
| { | { | ||||
| SeqIndexBuildContext *context; | SeqIndexBuildContext *context; | ||||
| Sequence *nseq; | Sequence *nseq; | ||||
| LinkData *link; | LinkData *link; | ||||
| int num_files; | int num_files; | ||||
| int i; | int i; | ||||
| if (!seq->strip || !seq->strip->proxy) { | if (!seq->strip || !seq->strip->proxy) { | ||||
| return; | return; | ||||
bartus: `gcc-9` complains about `error: ‘return’ with no value, in function returning non-void… | |||||
| } | } | ||||
| if (!(seq->flag & SEQ_USE_PROXY)) { | if (!(seq->flag & SEQ_USE_PROXY)) { | ||||
| return; | return; | ||||
| } | } | ||||
| num_files = seq_proxy_context_count(seq, scene); | num_files = seq_proxy_context_count(seq, scene); | ||||
| Show All 14 Lines | for (i = 0; i < num_files; i++) { | ||||
| context->bmain = bmain; | context->bmain = bmain; | ||||
| context->depsgraph = depsgraph; | context->depsgraph = depsgraph; | ||||
| context->scene = scene; | context->scene = scene; | ||||
| context->orig_seq = seq; | context->orig_seq = seq; | ||||
| context->seq = nseq; | context->seq = nseq; | ||||
| context->view_id = i; /* only for images */ | context->view_id = i; /* only for images */ | ||||
| link = BLI_genericNodeN(context); | |||||
| BLI_addtail(queue, link); | |||||
| if (nseq->type == SEQ_TYPE_MOVIE) { | if (nseq->type == SEQ_TYPE_MOVIE) { | ||||
| StripAnim *sanim; | StripAnim *sanim; | ||||
| seq_open_anim_file(scene, nseq, true); | seq_open_anim_file(scene, nseq, true); | ||||
| sanim = BLI_findlink(&nseq->anims, i); | sanim = BLI_findlink(&nseq->anims, i); | ||||
| if (sanim->anim) { | if (sanim->anim) { | ||||
| context->index_context = IMB_anim_index_rebuild_context(sanim->anim, | context->index_context = IMB_anim_index_rebuild_context(sanim->anim, | ||||
| context->tc_flags, | context->tc_flags, | ||||
| context->size_flags, | context->size_flags, | ||||
| context->quality, | context->quality, | ||||
| context->overwrite, | context->overwrite, | ||||
| file_list); | file_list); | ||||
| } | } | ||||
| if (!context->index_context) { | |||||
| MEM_freeN(context); | |||||
| return false; | |||||
| } | |||||
| } | } | ||||
| link = BLI_genericNodeN(context); | |||||
| BLI_addtail(queue, link); | |||||
| } | } | ||||
| return true; | |||||
| } | } | ||||
| void BKE_sequencer_proxy_rebuild(SeqIndexBuildContext *context, | void BKE_sequencer_proxy_rebuild(SeqIndexBuildContext *context, | ||||
| short *stop, | short *stop, | ||||
| short *do_update, | short *do_update, | ||||
| float *progress) | float *progress) | ||||
| { | { | ||||
| const bool overwrite = context->overwrite; | const bool overwrite = context->overwrite; | ||||
| ▲ Show 20 Lines • Show All 3,928 Lines • Show Last 20 Lines | |||||
gcc-9 complains about error: ‘return’ with no value, in function returning non-void [-Werror=return-type]
It should return with false/true