#include <VideoCapture.h>
QtAV::VideoCapture::VideoCapture |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
void QtAV::VideoCapture::asyncChanged |
( |
| ) |
|
|
signal |
bool QtAV::VideoCapture::autoSave |
( |
| ) |
const |
void QtAV::VideoCapture::autoSaveChanged |
( |
| ) |
|
|
signal |
void QtAV::VideoCapture::capture |
( |
| ) |
|
|
slot |
QString QtAV::VideoCapture::captureDir |
( |
| ) |
const |
void QtAV::VideoCapture::captureDirChanged |
( |
| ) |
|
|
signal |
QString QtAV::VideoCapture::captureName |
( |
| ) |
const |
void QtAV::VideoCapture::captureNameChanged |
( |
| ) |
|
|
signal |
void QtAV::VideoCapture::failed |
( |
| ) |
|
|
signal |
frameAvailable Emitted when requested frame is available.
void QtAV::VideoCapture::imageCaptured |
( |
const QImage & |
image | ) |
|
|
signal |
imageCaptured Emitted when captured video frame is converted to a QImage.
- Parameters
-
bool QtAV::VideoCapture::isAsync |
( |
| ) |
const |
bool QtAV::VideoCapture::isOriginalFormat |
( |
| ) |
const |
void QtAV::VideoCapture::originalFormatChanged |
( |
| ) |
|
|
signal |
int QtAV::VideoCapture::quality |
( |
| ) |
const |
void QtAV::VideoCapture::qualityChanged |
( |
| ) |
|
|
signal |
void QtAV::VideoCapture::requested |
( |
| ) |
|
|
signal |
void QtAV::VideoCapture::saved |
( |
const QString & |
path | ) |
|
|
signal |
saved Only for autoSave is true.
Emitted when captured frame is saved.
- Parameters
-
path | the saved captured frame path. |
QString QtAV::VideoCapture::saveFormat |
( |
| ) |
const |
void QtAV::VideoCapture::saveFormatChanged |
( |
| ) |
|
|
signal |
void QtAV::VideoCapture::setAsync |
( |
bool |
value = true | ) |
|
void QtAV::VideoCapture::setAutoSave |
( |
bool |
value = true | ) |
|
setAutoSave If auto save is true, then the captured video frame will be saved as a file when frame is available.
Otherwise, signal ready() and finished() will be emitted without doing other things.
void QtAV::VideoCapture::setCaptureDir |
( |
const QString & |
value | ) |
|
void QtAV::VideoCapture::setCaptureName |
( |
const QString & |
value | ) |
|
name suffix is auto add empty name: filename_timestamp.format(suffix is videoframe.format.name() if save as raw data) If autoSave() is true, saved file name will add a timestamp string.
void QtAV::VideoCapture::setOriginalFormat |
( |
bool |
value = true | ) |
|
setOriginalFormat Save the original frame, can be YUV, NV12 etc.
No format converting. default is false The file name suffix is video frame's format name in lower case, e.g. yuv420p, nv12. quality property will not take effect.
void QtAV::VideoCapture::setQuality |
( |
int |
value | ) |
|
setQuality Set saved image quality.
Not be used if save original frame data.
- Parameters
-
value | 0-100, larger is better quality. -1: default quality |
void QtAV::VideoCapture::setSaveFormat |
( |
const QString & |
format | ) |
|
setFormat Set saved format.
can be "PNG", "jpg" etc. Not be used if save raw frame data.
- Parameters
-
format | image format string like "png", "jpg" |
bool QtAV::VideoCapture::async |
|
readwrite |
bool QtAV::VideoCapture::autoSave |
|
readwrite |
QString QtAV::VideoCapture::captureDir |
|
readwrite |
QString QtAV::VideoCapture::captureName |
|
readwrite |
bool QtAV::VideoCapture::originalFormat |
|
readwrite |
int QtAV::VideoCapture::quality |
|
readwrite |
QString QtAV::VideoCapture::saveFormat |
|
readwrite |
The documentation for this class was generated from the following file: