Blender V5.3
SEQ_thumbnail_cache.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11namespace blender {
12
13struct bContext;
14struct ImBuf;
15struct rctf;
16struct Strip;
17struct Scene;
18
19namespace seq {
20
21static constexpr int THUMB_SIZE = 256;
22
26void image_size_to_thumb_size(int &r_width, int &r_height, int size = THUMB_SIZE);
27
41 Scene *scene,
42 const Strip *strip,
43 float timeline_frame);
44
46
53
59
60void thumbnail_cache_invalidate_strip(Scene *scene, const Strip *strip);
61
67
68void thumbnail_cache_clear(Scene *scene);
70
71bool strip_can_have_thumbnail(const Scene *scene, const Strip *strip);
72
73} // namespace seq
74} // namespace blender
#define C
Definition RandGen.cpp:29
void thumbnail_cache_invalidate_strip(Scene *scene, const Strip *strip)
bool strip_can_have_thumbnail(const Scene *scene, const Strip *strip)
void thumbnail_cache_clear(Scene *scene)
ImBuf * thumbnail_cache_get(const bContext *C, Scene *scene, const Strip *strip, float timeline_frame)
void image_size_to_thumb_size(int &r_width, int &r_height, int size)
void thumbnail_cache_discard_requests_outside(Scene *scene, const rctf &rect)
void thumbnail_cache_destroy(Scene *scene)
bool thumbnail_cache_update_scene_thumbs(const bContext *C, Scene *scene)
bool thumbnail_cache_has_pending_scene_requests(Scene *scene)
static constexpr int THUMB_SIZE
void thumbnail_cache_maintain_capacity(Scene *scene)
BMesh Iterators.