#include <VideoFrameExtractor.h>
|
void | extract () |
| extract If last extracted frame can be use, use it. More...
|
|
◆ VideoFrameExtractor()
QtAV::VideoFrameExtractor::VideoFrameExtractor |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ 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 |
◆ 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 |
◆ 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: