Blender V5.3
SEQ_proxy.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2004 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include "DNA_space_enums.h"
12
13#include "BLI_function_ref.hh"
14#include "BLI_set.hh"
15#include "BLI_vector.hh"
16
17#include "IMB_imbuf_enums.h"
18
19namespace blender {
20
21struct Main;
22struct Scene;
23struct Strip;
24struct bContext;
25struct wmJob;
27
28namespace seq {
29
31struct RenderData;
32
33/*
34 * Initializes proxy (re)build for the given input strip.
35 * The actual proxy builders, if needed, are added to the
36 * `r_queue` output vector (there can be more than one
37 * for multi-view videos/images).
38 */
39bool proxy_build_start(Main *bmain,
40 Scene *scene,
41 Strip *strip,
42 Set<std::string> *processed_paths,
43 bool build_only_on_bad_performance,
44 Vector<ProxyBuildContext *> &r_queue);
45
46/* Processes a proxy (re)build request in given `context`. */
48 const bool *should_stop,
49 bool *has_updated,
50 FunctionRef<void(float progress)> set_progress_fn);
51
52/* Cleans up and deallocates the proxy build context. */
54
55void proxy_set(Strip *strip, bool value);
56bool can_use_proxy(const RenderData *context, const Strip *strip, IMB_Proxy_Size psize);
59
60struct ProxyJob {
61 Main *main = nullptr;
62 Scene *scene = nullptr;
64 int stop = 0;
65};
66
69
70} // namespace seq
71} // namespace blender
#define C
Definition RandGen.cpp:29
bool proxy_build_start(Main *bmain, Scene *scene, Strip *strip, Set< std::string > *processed_paths, bool build_only_on_bad_performance, Vector< ProxyBuildContext * > &r_queue)
Definition proxy.cc:455
IMB_Proxy_Size rendersize_to_proxysize(eSpaceSeq_Proxy_RenderSize render_size)
Definition proxy.cc:137
void proxy_build_finish(ProxyBuildContext *context)
Definition proxy.cc:763
void proxy_build_process(ProxyBuildContext *context, const bool *should_stop, bool *has_updated, const FunctionRef< void(float progress)> set_progress_fn)
Definition proxy.cc:743
void proxy_set(Strip *strip, bool value)
Definition proxy.cc:771
ProxyJob * ED_seq_proxy_job_get(const bContext *C, wmJob *wm_job)
Definition proxy_job.cc:71
float rendersize_to_scale_factor(eSpaceSeq_Proxy_RenderSize render_size)
Definition proxy.cc:153
bool can_use_proxy(const RenderData *context, const Strip *strip, IMB_Proxy_Size psize)
Definition proxy.cc:280
wmJob * ED_seq_proxy_wm_job_get(const bContext *C)
Definition proxy_job.cc:86
BMesh Iterators.
Vector< ProxyBuildContext * > queue
Definition SEQ_proxy.hh:63