Blender V4.5
SEQ_render.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
11struct Depsgraph;
12struct GPUOffScreen;
13struct GPUViewport;
14struct ImBuf;
15struct ListBase;
16struct Main;
17struct Scene;
18struct Strip;
19struct StripElem;
20
21namespace blender::seq {
22
27
28struct RenderData {
29 Main *bmain = nullptr;
30 Depsgraph *depsgraph = nullptr;
31 Scene *scene = nullptr;
32 int rectx = 0;
33 int recty = 0;
35 bool use_proxies = false;
37 int for_render = 0;
39 float motion_blur_shutter = 0.0f;
40 bool skip_cache = false;
41 bool is_proxy_render = false;
42 bool is_prefetch_render = false;
43 bool is_playing = false;
44 bool is_scrubbing = false;
45 int view_id = 0;
46 /* ID of task for assigning temp cache entries to particular task(thread, etc.) */
48
49 /* special case for OpenGL render */
52 // int gpu_samples;
53 // bool gpu_full_samples;
54};
55
61ImBuf *render_give_ibuf(const RenderData *context, float timeline_frame, int chanshown);
62ImBuf *render_give_ibuf_direct(const RenderData *context, float timeline_frame, Strip *strip);
64 Depsgraph *depsgraph,
65 Scene *scene,
66 int rectx,
67 int recty,
68 int preview_render_size,
69 int for_render,
70 RenderData *r_context);
71StripElem *render_give_stripelem(const Scene *scene, const Strip *strip, int timeline_frame);
72
73void render_imbuf_from_sequencer_space(const Scene *scene, ImBuf *ibuf);
74void render_pixel_from_sequencer_space_v4(const Scene *scene, float pixel[4]);
79bool render_is_muted(const ListBase *channels, const Strip *strip);
80
81} // namespace blender::seq
BPy_StructRNA * depsgraph
bool render_is_muted(const ListBase *channels, const Strip *strip)
Definition render.cc:2081
void render_new_render_data(Main *bmain, Depsgraph *depsgraph, Scene *scene, int rectx, int recty, int preview_render_size, int for_render, RenderData *r_context)
Definition render.cc:206
ImBuf * render_give_ibuf(const RenderData *context, float timeline_frame, int chanshown)
Definition render.cc:2001
@ SEQ_TASK_PREFETCH_RENDER
Definition SEQ_render.hh:25
void render_pixel_from_sequencer_space_v4(const Scene *scene, float pixel[4])
Definition render.cc:185
void render_imbuf_from_sequencer_space(const Scene *scene, ImBuf *ibuf)
Definition render.cc:163
StripElem * render_give_stripelem(const Scene *scene, const Strip *strip, int timeline_frame)
Definition render.cc:234
ImBuf * render_give_ibuf_direct(const RenderData *context, float timeline_frame, Strip *strip)
Definition render.cc:2071
GPUOffScreen * gpu_offscreen
Definition SEQ_render.hh:50
GPUViewport * gpu_viewport
Definition SEQ_render.hh:51