Miam-Player  0.8.0
A nice music player
QtAV::VideoFrameExtractor Class Reference

#include <VideoFrameExtractor.h>

Inheritance diagram for QtAV::VideoFrameExtractor:

Public Slots

void extract ()
 extract If last extracted frame can be use, use it. More...
 

Signals

void frameExtracted (const QtAV::VideoFrame &frame)
 
void sourceChanged ()
 
void asyncChanged ()
 
void error ()
 
void autoExtractChanged ()
 
void positionChanged ()
 positionChanged If not autoExtract, positionChanged() => extract() in a slot More...
 
void precisionChanged ()
 
void aboutToExtract (qint64 pos)
 

Public Member Functions

 VideoFrameExtractor (QObject *parent=0)
 
void setSource (const QString url)
 setSource Set the video file. More...
 
QString source () const
 
void setAsync (bool value)
 setAsync Extract video frames in another thread. More...
 
bool async () const
 
void setAutoExtract (bool value)
 
bool autoExtract () const
 
void setPrecision (int value)
 setPrecision if the difference between the next requested position is less than the value, previous one is used and no positionChanged() and frameExtracted() signals to emit. More...
 
int precision () const
 
void setPosition (qint64 value)
 
qint64 position () const
 
virtual bool event (QEvent *e)
 

Properties

QString source
 
bool autoExtract
 
bool async
 
int precision
 
qint64 position
 

Constructor & Destructor Documentation

◆ VideoFrameExtractor()

QtAV::VideoFrameExtractor::VideoFrameExtractor ( QObject *  parent = 0)
explicit

Member Function Documentation

◆ aboutToExtract

void QtAV::VideoFrameExtractor::aboutToExtract ( qint64  pos)
signal

◆ async()

bool QtAV::VideoFrameExtractor::async ( ) const

◆ asyncChanged

void QtAV::VideoFrameExtractor::asyncChanged ( )
signal

◆ autoExtract()

bool QtAV::VideoFrameExtractor::autoExtract ( ) const

◆ autoExtractChanged

void QtAV::VideoFrameExtractor::autoExtractChanged ( )
signal

◆ error

void QtAV::VideoFrameExtractor::error ( )
signal

◆ event()

virtual bool QtAV::VideoFrameExtractor::event ( QEvent *  e)
virtual

◆ extract

void QtAV::VideoFrameExtractor::extract ( )
slot

extract If last extracted frame can be use, use it.

If there is a key frame in [position, position+precision], the nearest key frame before position+precision will be extracted. Otherwise, the given position frame will be extracted.

◆ frameExtracted

void QtAV::VideoFrameExtractor::frameExtracted ( const QtAV::VideoFrame frame)
signal

◆ position()

qint64 QtAV::VideoFrameExtractor::position ( ) const

◆ positionChanged

void QtAV::VideoFrameExtractor::positionChanged ( )
signal

positionChanged If not autoExtract, positionChanged() => extract() in a slot

◆ precision()

int QtAV::VideoFrameExtractor::precision ( ) const

◆ precisionChanged

void QtAV::VideoFrameExtractor::precisionChanged ( )
signal

◆ setAsync()

void QtAV::VideoFrameExtractor::setAsync ( bool  value)

setAsync Extract video frames in another thread.

Default is true. In async mode, if current extraction is not finished, new setPosition() will be ignored.

◆ setAutoExtract()

void QtAV::VideoFrameExtractor::setAutoExtract ( bool  value)

◆ setPosition()

void QtAV::VideoFrameExtractor::setPosition ( qint64  value)

◆ setPrecision()

void QtAV::VideoFrameExtractor::setPrecision ( int  value)

setPrecision if the difference between the next requested position is less than the value, previous one is used and no positionChanged() and frameExtracted() signals to emit.

Parameters
value< 0: auto. Real value depends on video duration and fps, but always 20 <= value <=500 Default is auto.

◆ setSource()

void QtAV::VideoFrameExtractor::setSource ( const QString  url)

setSource Set the video file.

If video changes, current loaded video will be unloaded.

◆ source()

QString QtAV::VideoFrameExtractor::source ( ) const

◆ sourceChanged

void QtAV::VideoFrameExtractor::sourceChanged ( )
signal

Property Documentation

◆ async

bool QtAV::VideoFrameExtractor::async
readwrite

◆ autoExtract

bool QtAV::VideoFrameExtractor::autoExtract
readwrite

◆ position

qint64 QtAV::VideoFrameExtractor::position
readwrite

◆ precision

int QtAV::VideoFrameExtractor::precision
readwrite

◆ source

QString QtAV::VideoFrameExtractor::source
readwrite

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