48 if (scene ==
nullptr || scene->
ed ==
nullptr) {
57 if (cache !=
nullptr) {
70 if (strip ==
nullptr) {
74 if (cache !=
nullptr) {
83 for (
auto it = this->
map_.items().begin(); it != this->map_.items().end(); it++) {
84 const Strip *key = (*it).key;
85 if (key == strip || key->channel >= strip->channel) {
87 this->
map_.remove(it);
117 for (
const auto &item : this->
map_.items()) {
126 if (strip ==
nullptr || cache ==
nullptr) {
135 if (strip ==
nullptr || cache ==
nullptr) {
143 if (scene ==
nullptr || scene->
ed ==
nullptr || strip ==
nullptr || !
result.is_valid()) {
147 if (cache ==
nullptr) {
148 cache = MEM_new<IntraFrameCache>(__func__);
155 if (scene ==
nullptr || scene->
ed ==
nullptr || strip ==
nullptr || !
result.is_valid()) {
159 if (cache ==
nullptr) {
160 cache = MEM_new<IntraFrameCache>(__func__);
168 if (cache !=
nullptr) {
174 Scene *scene,
float frame,
int view_id,
int width,
int height,
bool is_render)
177 if (cache !=
nullptr) {
183 cache->
width = width;
SeqResult intra_frame_cache_get_preprocessed(Scene *scene, const Strip *strip)
void intra_frame_cache_invalidate(Scene *scene)
void intra_frame_cache_put_composite(Scene *scene, const Strip *strip, const SeqResult &result)
void intra_frame_cache_set_cur_frame(Scene *scene, float frame, int view_id, int width, int height, bool is_render)
void intra_frame_cache_put_preprocessed(Scene *scene, const Strip *strip, const SeqResult &result)
void intra_frame_cache_destroy(Scene *scene)
static IntraFrameCache * query_intra_frame_cache(Scene *scene)
SeqResult intra_frame_cache_get_composite(Scene *scene, const Strip *strip)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void IMB_refImBuf(ImBuf *ibuf)
void IMB_freeImBuf(ImBuf *ibuf)
seq::EditingRuntime * runtime
IntraFrameCache * intra_frame_cache
StripImageMap preprocessed
SeqResult get(const Strip *strip) const
Map< const Strip *, SeqResult > map_
void put(const Strip *strip, const SeqResult &result)
void invalidate(const Strip *strip)