Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMoviePrivate Class Reference
Inheritance diagram for QMoviePrivate:
Collaboration diagram for QMoviePrivate:

Public Member Functions

 QMoviePrivate ()
void init (QMovie *qq, std::unique_ptr< QImageReader > r)
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
 QMoviePrivate ()
void init (QMovie *qq, std::unique_ptr< QImageReader > r)
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 ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
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
const QMetaObjectdynamicMetaObject () const

Public Attributes

std::unique_ptr< 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
std::map< int, QFrameInfoframeMap
QString absoluteFilePath
QTimernextImageTimer = nullptr
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 193 of file qmovie.cpp.

Constructor & Destructor Documentation

◆ QMoviePrivate() [1/2]

QMoviePrivate::QMoviePrivate ( )

Definition at line 247 of file qmovie.cpp.

◆ QMoviePrivate() [2/2]

QMoviePrivate::QMoviePrivate ( )

Member Function Documentation

◆ _q_loadNextFrame() [1/4]

void QMoviePrivate::_q_loadNextFrame ( )

Definition at line 481 of file qmovie.cpp.

References _q_loadNextFrame().

Referenced by jumpToFrame().

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

◆ _q_loadNextFrame() [2/4]

void QMoviePrivate::_q_loadNextFrame ( )

◆ _q_loadNextFrame() [3/4]

void QMoviePrivate::_q_loadNextFrame ( bool starting)

Definition at line 486 of file qmovie.cpp.

References isDone(), isFirstIteration, next(), nextFrameNumber, and playCounter.

Referenced by _q_loadNextFrame().

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

◆ _q_loadNextFrame() [4/4]

void QMoviePrivate::_q_loadNextFrame ( bool starting)

◆ enterState() [1/2]

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

Definition at line 212 of file qmovie.cpp.

◆ enterState() [2/2]

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

Definition at line 212 of file qmovie.cpp.

◆ frameCount() [1/2]

int QMoviePrivate::frameCount ( ) const

Definition at line 562 of file qmovie.cpp.

References greatestFrameNumber.

Referenced by infoForFrame().

Here is the caller graph for this function:

◆ frameCount() [2/2]

int QMoviePrivate::frameCount ( ) const

◆ infoForFrame() [1/2]

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 310 of file qmovie.cpp.

References currentFrameNumber, frameCount(), and greatestFrameNumber.

Referenced by next().

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

◆ infoForFrame() [2/2]

QFrameInfo QMoviePrivate::infoForFrame ( int frameNumber)

◆ init() [1/2]

void QMoviePrivate::init ( QMovie * qq,
std::unique_ptr< QImageReader > r )

Definition at line 251 of file qmovie.cpp.

◆ init() [2/2]

void QMoviePrivate::init ( QMovie * qq,
std::unique_ptr< QImageReader > r )

◆ isDone() [1/2]

bool QMoviePrivate::isDone ( )

Definition at line 280 of file qmovie.cpp.

References playCounter.

Referenced by _q_loadNextFrame().

Here is the caller graph for this function:

◆ isDone() [2/2]

bool QMoviePrivate::isDone ( )

◆ isValid() [1/2]

bool QMoviePrivate::isValid ( ) const

Definition at line 525 of file qmovie.cpp.

References greatestFrameNumber.

◆ isValid() [2/2]

bool QMoviePrivate::isValid ( ) const

◆ jumpToFrame() [1/2]

bool QMoviePrivate::jumpToFrame ( int frameNumber)

Definition at line 546 of file qmovie.cpp.

References _q_loadNextFrame(), currentFrameNumber, and nextFrameNumber.

Referenced by jumpToNextFrame().

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

◆ jumpToFrame() [2/2]

bool QMoviePrivate::jumpToFrame ( int frameNumber)

◆ jumpToNextFrame() [1/2]

bool QMoviePrivate::jumpToNextFrame ( )

Definition at line 575 of file qmovie.cpp.

References currentFrameNumber, and jumpToFrame().

Here is the call graph for this function:

◆ jumpToNextFrame() [2/2]

bool QMoviePrivate::jumpToNextFrame ( )

◆ next() [1/2]

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 434 of file qmovie.cpp.

References currentFrameNumber, infoForFrame(), isFirstIteration, next(), nextDelay, nextFrameNumber, playCounter, and speedAdjustedDelay().

Referenced by _q_loadNextFrame(), and next().

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

◆ next() [2/2]

bool QMoviePrivate::next ( )

◆ Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS() [1/2]

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

◆ Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS() [2/2]

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

◆ reset() [1/2]

void QMoviePrivate::reset ( )

◆ reset() [2/2]

void QMoviePrivate::reset ( )

◆ setSpeed() [1/2]

void QMoviePrivate::setSpeed ( int percentSpeed)
inline

Definition at line 223 of file qmovie.cpp.

◆ setSpeed() [2/2]

void QMoviePrivate::setSpeed ( int percentSpeed)
inline

Definition at line 223 of file qmovie.cpp.

◆ speedAdjustedDelay() [1/2]

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 293 of file qmovie.cpp.

Referenced by next().

Here is the caller graph for this function:

◆ speedAdjustedDelay() [2/2]

int QMoviePrivate::speedAdjustedDelay ( int delay) const

Member Data Documentation

◆ absoluteFilePath

QString QMoviePrivate::absoluteFilePath

Definition at line 240 of file qmovie.cpp.

◆ currentFrameNumber

int QMoviePrivate::currentFrameNumber = -1

Definition at line 229 of file qmovie.cpp.

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

◆ currentPixmap

QPixmap QMoviePrivate::currentPixmap

Definition at line 228 of file qmovie.cpp.

◆ frameMap

std::map< int, QFrameInfo > QMoviePrivate::frameMap

Definition at line 239 of file qmovie.cpp.

◆ frameRect

QRect QMoviePrivate::frameRect

Definition at line 227 of file qmovie.cpp.

◆ greatestFrameNumber

int QMoviePrivate::greatestFrameNumber = -1

Definition at line 231 of file qmovie.cpp.

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

◆ initialDevicePos

qint64 QMoviePrivate::initialDevicePos = 0

Definition at line 234 of file qmovie.cpp.

◆ isFirstIteration

bool QMoviePrivate::isFirstIteration = true

Definition at line 238 of file qmovie.cpp.

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

◆ movieState

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

Definition at line 226 of file qmovie.cpp.

◆ nextDelay

int QMoviePrivate::nextDelay = 0

Definition at line 232 of file qmovie.cpp.

Referenced by next(), and reset().

◆ nextFrameNumber

int QMoviePrivate::nextFrameNumber = 0

Definition at line 230 of file qmovie.cpp.

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

◆ nextImageTimer

QTimer * QMoviePrivate::nextImageTimer = nullptr

Definition at line 242 of file qmovie.cpp.

◆ playCounter

int QMoviePrivate::playCounter = -1

Definition at line 233 of file qmovie.cpp.

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

◆ reader

std::unique_ptr< QImageReader > QMoviePrivate::reader = nullptr

Definition at line 221 of file qmovie.cpp.


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