|
Krita Source Code Documentation
|
#include <kis_animation_frame_cache.h>
Inheritance diagram for KisAnimationFrameCache:Classes | |
| struct | Private |
Public Types | |
| enum | CacheStatus { Cached , Uncached } |
Signals | |
| void | changed () |
Public Member Functions | |
| void | addConvertedFrameData (KisOpenGLUpdateInfoSP info, int time) |
| void | dropLowQualityFrames (const KisTimeSpan &range, const QRect ®ionOfInterest, const QRect &minimalRect) |
| KisOpenGLUpdateInfoSP | fetchFrameData (int time, KisImageSP image, const KisRegion &requestedRegion) const |
| bool | framesHaveValidRoi (const KisTimeSpan &range, const QRect ®ionOfInterest) |
| CacheStatus | frameStatus (int time) const |
| QImage | getFrame (int time) |
| KisImageWSP | image () |
| KisAnimationFrameCache (KisOpenGLImageTexturesSP textures) | |
| bool | shouldUploadNewFrame (int newTime, int oldTime) const |
| bool | tryGlueSameFrames (const KisTimeSpan &range) |
| bool | uploadFrame (int time) |
| ~KisAnimationFrameCache () override | |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Static Public Member Functions | |
| static const KisAnimationFrameCacheSP | cacheForImage (KisImageWSP image) |
| static const QList< KisAnimationFrameCache * > | caches () |
| static KisAnimationFrameCacheSP | getFrameCache (KisOpenGLImageTexturesSP textures) |
Private Slots | |
| void | framesChanged (const KisTimeSpan &range, const QRect &rect) |
| void | slotConfigChanged () |
Private Attributes | |
| QScopedPointer< Private > | m_d |
Additional Inherited Members | |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
Definition at line 28 of file kis_animation_frame_cache.h.
| Enumerator | |
|---|---|
| Cached | |
| Uncached | |
Definition at line 46 of file kis_animation_frame_cache.h.
| KisAnimationFrameCache::KisAnimationFrameCache | ( | KisOpenGLImageTexturesSP | textures | ) |
Definition at line 212 of file kis_animation_frame_cache.cpp.
References connect(), framesChanged(), KisConfigNotifier::instance(), m_d, and slotConfigChanged().
|
override |
Definition at line 222 of file kis_animation_frame_cache.cpp.
References KisAnimationFrameCache::Private::caches, and m_d.
| void KisAnimationFrameCache::addConvertedFrameData | ( | KisOpenGLUpdateInfoSP | info, |
| int | time ) |
Definition at line 432 of file kis_animation_frame_cache.cpp.
References KisTimeSpan::calculateIdenticalFramesRecursive(), changed(), and m_d.
|
static |
Definition at line 204 of file kis_animation_frame_cache.cpp.
References KisAnimationFrameCache::Private::caches, and image().
|
static |
Definition at line 199 of file kis_animation_frame_cache.cpp.
References KisAnimationFrameCache::Private::caches.
|
signal |
| void KisAnimationFrameCache::dropLowQualityFrames | ( | const KisTimeSpan & | range, |
| const QRect & | regionOfInterest, | ||
| const QRect & | minimalRect ) |
Drops all the frames with worse level of detail values than the current desired level of detail.
Definition at line 442 of file kis_animation_frame_cache.cpp.
References KisTimeSpan::end(), KisTimeSpan::isInfinite(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, and KisTimeSpan::start().
| KisOpenGLUpdateInfoSP KisAnimationFrameCache::fetchFrameData | ( | int | time, |
| KisImageSP | image, | ||
| const KisRegion & | requestedRegion ) const |
Definition at line 405 of file kis_animation_frame_cache.cpp.
References KisImage::animationInterface(), KisRegion::boundingRect(), KisImage::currentLevelOfDetail(), KisImageAnimationInterface::currentTime(), image(), KIS_SAFE_ASSERT_RECOVER_NOOP, m_d, ppVar, KisRegion::rects(), and KisOpenGLUpdateInfo::tryMergeWith().
|
privateslot |
Definition at line 362 of file kis_animation_frame_cache.cpp.
References changed(), KisTimeSpan::isValid(), and m_d.
| bool KisAnimationFrameCache::framesHaveValidRoi | ( | const KisTimeSpan & | range, |
| const QRect & | regionOfInterest ) |
Definition at line 474 of file kis_animation_frame_cache.cpp.
References KisTimeSpan::end(), KisTimeSpan::isInfinite(), KIS_SAFE_ASSERT_RECOVER_NOOP, KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_d, and KisTimeSpan::start().
| KisAnimationFrameCache::CacheStatus KisAnimationFrameCache::frameStatus | ( | int | time | ) | const |
| QImage KisAnimationFrameCache::getFrame | ( | int | time | ) |
|
static |
Definition at line 184 of file kis_animation_frame_cache.cpp.
References KisAnimationFrameCache::Private::caches, and KisAnimationFrameCache().
| KisImageWSP KisAnimationFrameCache::image | ( | ) |
Definition at line 357 of file kis_animation_frame_cache.cpp.
References m_d.
| bool KisAnimationFrameCache::shouldUploadNewFrame | ( | int | newTime, |
| int | oldTime ) const |
Definition at line 243 of file kis_animation_frame_cache.cpp.
References m_d.
|
privateslot |
Definition at line 375 of file kis_animation_frame_cache.cpp.
References KisImageConfig::animationCacheFrameSizeLimit(), changed(), m_d, KisImageConfig::swapDir(), KisImageConfig::useAnimationCacheFrameSizeLimit(), and KisImageConfig::useOnDiskAnimationCacheSwapping().
| bool KisAnimationFrameCache::tryGlueSameFrames | ( | const KisTimeSpan & | range | ) |
Definition at line 326 of file kis_animation_frame_cache.cpp.
References changed(), m_d, and FramesGluerBase::moveFrame().
| bool KisAnimationFrameCache::uploadFrame | ( | int | time | ) |
Definition at line 227 of file kis_animation_frame_cache.cpp.
References m_d.
|
private |
Definition at line 74 of file kis_animation_frame_cache.h.