54 bool selected =
false;
66 if (strip->data->proxy->build_size_flags == 0) {
68 reports,
RPT_WARNING,
"Resolution is not selected for %s, skipping", strip->name);
116 if (strip->flag &
SELECT) {
117 ListBase queue = {
nullptr,
nullptr};
137 ot->name =
"Rebuild Proxy and Timecode Indices";
138 ot->idname =
"SEQUENCER_OT_rebuild_proxy";
139 ot->description =
"Rebuild all selected proxies and timecode indices";
161 C, op, 200,
IFACE_(
"Set Selected Strip Proxies"),
IFACE_(
"Set"));
175 if (
ed ==
nullptr || !(proxy_25 || proxy_50 || proxy_75 || proxy_100)) {
180 if (strip->flag &
SELECT) {
183 if (strip->data->proxy ==
nullptr) {
233 ot->name =
"Set Selected Strip Proxies";
234 ot->idname =
"SEQUENCER_OT_enable_proxies";
235 ot->description =
"Enable selected proxies on all selected Movie and Image strips";
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
Main * CTX_data_main(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
Scene * CTX_data_sequencer_scene(const bContext *C)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
#define LISTBASE_FOREACH(type, var, list)
@ SEQ_PROXY_IMAGE_SIZE_100
@ SEQ_PROXY_IMAGE_SIZE_25
@ SEQ_PROXY_IMAGE_SIZE_50
@ SEQ_PROXY_IMAGE_SIZE_75
@ SEQ_PROXY_SKIP_EXISTING
void ED_area_tag_redraw(ScrArea *area)
BPy_StructRNA * depsgraph
static wmOperatorStatus sequencer_rebuild_proxy_exec(bContext *C, wmOperator *)
bool sequencer_edit_poll(bContext *C)
void SEQUENCER_OT_enable_proxies(wmOperatorType *ot)
static wmOperatorStatus sequencer_enable_proxies_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus sequencer_rebuild_proxy_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus sequencer_enable_proxies_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_rebuild_proxy(wmOperatorType *ot)
static void seq_proxy_build_job(const bContext *C, ReportList *reports)
void proxy_rebuild(IndexBuildContext *context, wmJobWorkerStatus *worker_status)
Editing * editing_get(const Scene *scene)
bool proxy_rebuild_context(Main *bmain, Depsgraph *depsgraph, Scene *scene, Strip *strip, blender::Set< std::string > *processed_paths, ListBase *queue, bool build_only_on_bad_performance)
void proxy_set(Strip *strip, bool value)
ProxyJob * ED_seq_proxy_job_get(const bContext *C, wmJob *wm_job)
void proxy_rebuild_finish(IndexBuildContext *context, bool stop)
ListBase * active_seqbase_get(const Editing *ed)
void relations_free_imbuf(Scene *scene, ListBase *seqbase, bool for_render)
wmJob * ED_seq_proxy_wm_job_get(const bContext *C)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
struct ReportList * reports
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
bool WM_jobs_is_running(const wmJob *wm_job)
void WM_jobs_start(wmWindowManager *wm, wmJob *wm_job)
wmOperatorStatus WM_operator_props_dialog_popup(bContext *C, wmOperator *op, int width, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message)