Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QMoviePrivate Class Reference
+ Inheritance diagram for QMoviePrivate:
+ Collaboration diagram for QMoviePrivate:

Public Member Functions

 QMoviePrivate (QMovie *qq)
 
bool isDone ()
 
bool next ()
 
int speedAdjustedDelay (int delay) const
 
bool isValid () const
 
bool jumpToFrame (int frameNumber)
 
int frameCount () const
 
bool jumpToNextFrame ()
 
QFrameInfo infoForFrame (int frameNumber)
 
void reset ()
 
void enterState (QMovie::MovieState newState)
 
void _q_loadNextFrame ()
 
void _q_loadNextFrame (bool starting)
 
void setSpeed (int percentSpeed)
 
 Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS (QMoviePrivate, QMovie::CacheMode, cacheMode, QMovie::CacheNone) bool haveReadAll
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QImageReaderreader = nullptr
 
QMovie::MovieState movieState = QMovie::NotRunning
 
QRect frameRect
 
QPixmap currentPixmap
 
int currentFrameNumber = -1
 
int nextFrameNumber = 0
 
int greatestFrameNumber = -1
 
int nextDelay = 0
 
int playCounter = -1
 
qint64 initialDevicePos = 0
 
bool isFirstIteration = true
 
QMap< int, QFrameInfoframeMap
 
QString absoluteFilePath
 
QTimer nextImageTimer
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Detailed Description

Definition at line 192 of file qmovie.cpp.

Constructor & Destructor Documentation

◆ QMoviePrivate()

QMoviePrivate::QMoviePrivate ( QMovie * qq)

Definition at line 243 of file qmovie.cpp.

References nextImageTimer, QObjectData::q_ptr, and QTimer::setSingleShot().

+ Here is the call graph for this function:

Member Function Documentation

◆ _q_loadNextFrame() [1/2]

void QMoviePrivate::_q_loadNextFrame ( )

Definition at line 469 of file qmovie.cpp.

References _q_loadNextFrame().

Referenced by _q_loadNextFrame(), and jumpToFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_loadNextFrame() [2/2]

void QMoviePrivate::_q_loadNextFrame ( bool starting)

Definition at line 474 of file qmovie.cpp.

References currentFrameNumber, currentPixmap, emit, enterState(), QImageReader::error(), frameRect, isDone(), isFirstIteration, movieState, next(), nextDelay, nextFrameNumber, nextImageTimer, QMovie::NotRunning, QMovie::Paused, playCounter, reader, QPixmap::rect(), QMovie::Running, QRect::size(), and QTimer::start().

+ Here is the call graph for this function:

◆ enterState()

void QMoviePrivate::enterState ( QMovie::MovieState newState)
inline

Definition at line 208 of file qmovie.cpp.

References emit, movieState, and newState().

Referenced by _q_loadNextFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ frameCount()

int QMoviePrivate::frameCount ( ) const

Definition at line 550 of file qmovie.cpp.

References greatestFrameNumber, QImageReader::imageCount(), and reader.

Referenced by infoForFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ infoForFrame()

QFrameInfo QMoviePrivate::infoForFrame ( int frameNumber)

Returns the QFrameInfo for the given frameNumber.

If the frame number is invalid, an invalid QFrameInfo is returned.

If the end of the animation has been reached, a special end marker QFrameInfo is returned.

Definition at line 298 of file qmovie.cpp.

References absoluteFilePath, QImageIOHandler::Animation, QImageReader::backgroundColor(), QMovie::CacheNone, QImageReader::canRead(), currentFrameNumber, QImageReader::device(), device, emit, QFrameInfo::endMarker(), QImageReader::error(), QImageReader::fileName(), fileName, QImageReader::format(), frameCount(), frameMap, QPixmap::fromImage(), greatestFrameNumber, i, info, initialDevicePos, QMap< Key, T >::insert(), QIODevice::isSequential(), QImageReader::jumpToImage(), QImageReader::nextImageDelay(), qCDebug, QImageReader::read(), reader, QImageReader::scaledSize(), QIODevice::seek(), QImageReader::setBackgroundColor(), QImageReader::setScaledSize(), QImageReader::supportsOption(), and QMap< Key, T >::value().

Referenced by next().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isDone()

bool QMoviePrivate::isDone ( )

Definition at line 268 of file qmovie.cpp.

References playCounter.

Referenced by _q_loadNextFrame().

+ Here is the caller graph for this function:

◆ isValid()

bool QMoviePrivate::isValid ( ) const

Definition at line 513 of file qmovie.cpp.

References QImageReader::canRead(), emit, error, QImageReader::error(), greatestFrameNumber, and reader.

+ Here is the call graph for this function:

◆ jumpToFrame()

bool QMoviePrivate::jumpToFrame ( int frameNumber)

Definition at line 534 of file qmovie.cpp.

References _q_loadNextFrame(), currentFrameNumber, movieState, nextFrameNumber, nextImageTimer, QMovie::Running, and QTimer::stop().

Referenced by jumpToNextFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ jumpToNextFrame()

bool QMoviePrivate::jumpToNextFrame ( )

Definition at line 563 of file qmovie.cpp.

References currentFrameNumber, and jumpToFrame().

+ Here is the call graph for this function:

◆ next()

bool QMoviePrivate::next ( )

Attempts to advance the animation to the next frame. If successful, currentFrameNumber, currentPixmap and nextDelay are updated accordingly, and true is returned. Otherwise, false is returned. When false is returned, isDone() can be called to determine whether the animation ended gracefully or an error occurred when reading the frame.

Definition at line 422 of file qmovie.cpp.

References currentFrameNumber, currentPixmap, info, infoForFrame(), isFirstIteration, QImageReader::loopCount(), next(), nextDelay, nextFrameNumber, playCounter, reader, speedAdjustedDelay(), and time.

Referenced by _q_loadNextFrame(), and next().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS()

QMoviePrivate::Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS ( QMoviePrivate ,
QMovie::CacheMode ,
cacheMode ,
QMovie::CacheNone  )

◆ reset()

void QMoviePrivate::reset ( )

Definition at line 251 of file qmovie.cpp.

References QMap< Key, T >::clear(), currentFrameNumber, QImageReader::device(), frameMap, greatestFrameNumber, initialDevicePos, isFirstIteration, nextDelay, nextFrameNumber, nextImageTimer, playCounter, QIODevice::pos(), reader, and QTimer::stop().

+ Here is the call graph for this function:

◆ setSpeed()

void QMoviePrivate::setSpeed ( int percentSpeed)
inline

Definition at line 219 of file qmovie.cpp.

◆ speedAdjustedDelay()

int QMoviePrivate::speedAdjustedDelay ( int delay) const

Given the original delay, this function returns the actual number of milliseconds to delay according to the current speed. E.g. if the speed is 200%, the result will be half of the original delay.

Definition at line 281 of file qmovie.cpp.

Referenced by next().

+ Here is the caller graph for this function:

Member Data Documentation

◆ absoluteFilePath

QString QMoviePrivate::absoluteFilePath

Definition at line 236 of file qmovie.cpp.

Referenced by infoForFrame().

◆ currentFrameNumber

int QMoviePrivate::currentFrameNumber = -1

Definition at line 225 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), infoForFrame(), jumpToFrame(), jumpToNextFrame(), next(), and reset().

◆ currentPixmap

QPixmap QMoviePrivate::currentPixmap

Definition at line 224 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), and next().

◆ frameMap

QMap<int, QFrameInfo> QMoviePrivate::frameMap

Definition at line 235 of file qmovie.cpp.

Referenced by infoForFrame(), and reset().

◆ frameRect

QRect QMoviePrivate::frameRect

Definition at line 223 of file qmovie.cpp.

Referenced by _q_loadNextFrame().

◆ greatestFrameNumber

int QMoviePrivate::greatestFrameNumber = -1

Definition at line 227 of file qmovie.cpp.

Referenced by frameCount(), infoForFrame(), isValid(), and reset().

◆ initialDevicePos

qint64 QMoviePrivate::initialDevicePos = 0

Definition at line 230 of file qmovie.cpp.

Referenced by infoForFrame(), and reset().

◆ isFirstIteration

bool QMoviePrivate::isFirstIteration = true

Definition at line 234 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), next(), and reset().

◆ movieState

QMovie::MovieState QMoviePrivate::movieState = QMovie::NotRunning

Definition at line 222 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), enterState(), and jumpToFrame().

◆ nextDelay

int QMoviePrivate::nextDelay = 0

Definition at line 228 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), next(), and reset().

◆ nextFrameNumber

int QMoviePrivate::nextFrameNumber = 0

Definition at line 226 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), jumpToFrame(), next(), and reset().

◆ nextImageTimer

QTimer QMoviePrivate::nextImageTimer

Definition at line 238 of file qmovie.cpp.

Referenced by QMoviePrivate(), _q_loadNextFrame(), jumpToFrame(), and reset().

◆ playCounter

int QMoviePrivate::playCounter = -1

Definition at line 229 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), isDone(), next(), and reset().

◆ reader

QImageReader* QMoviePrivate::reader = nullptr

Definition at line 217 of file qmovie.cpp.

Referenced by _q_loadNextFrame(), frameCount(), infoForFrame(), isValid(), next(), and reset().


The documentation for this class was generated from the following file: