Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAsyncAnimationCacheRenderDialog.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISASYNCANIMATIONCACHERENDERDIALOG_H
8#define KISASYNCANIMATIONCACHERENDERDIALOG_H
9
11#include "kis_types.h"
12
13
15{
16public:
17 KisAsyncAnimationCacheRenderDialog(KisAnimationFrameCacheSP cache, const KisTimeSpan &range, int busyWait = 200);
19
20 static int calcFirstDirtyFrame(KisAnimationFrameCacheSP cache, const KisTimeSpan &playbackRange, const KisTimeSpan &skipRange);
21
22protected:
23 QList<int> calcDirtyFrames() const override;
26 KisImageSP image, int frame) override;
27
28private:
29 struct Private;
30 const QScopedPointer<Private> m_d;
31};
32
33#endif // KISASYNCANIMATIONCACHERENDERDIALOG_H
KisAsyncAnimationRendererBase * createRenderer(KisImageSP image) override
create a renderer object linked to image
KisAsyncAnimationCacheRenderDialog(KisAnimationFrameCacheSP cache, const KisTimeSpan &range, int busyWait=200)
QList< int > calcDirtyFrames() const override
returns a list of frames that should be regenerated by the dialog
static int calcFirstDirtyFrame(KisAnimationFrameCacheSP cache, const KisTimeSpan &playbackRange, const KisTimeSpan &skipRange)
void initializeRendererForFrame(KisAsyncAnimationRendererBase *renderer, KisImageSP image, int frame) override
KisAsyncAnimationRenderDialogBase is a special class for rendering multiple frames of the image and p...