#include <VideoCapture.h>
◆ VideoCapture()
QtAV::VideoCapture::VideoCapture |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ asyncChanged
void QtAV::VideoCapture::asyncChanged |
( |
| ) |
|
|
signal |
◆ autoSave()
bool QtAV::VideoCapture::autoSave |
( |
| ) |
const |
◆ autoSaveChanged
void QtAV::VideoCapture::autoSaveChanged |
( |
| ) |
|
|
signal |
◆ capture
void QtAV::VideoCapture::capture |
( |
| ) |
|
|
slot |
◆ captureDir()
QString QtAV::VideoCapture::captureDir |
( |
| ) |
const |
◆ captureDirChanged
void QtAV::VideoCapture::captureDirChanged |
( |
| ) |
|
|
signal |
◆ captureName()
QString QtAV::VideoCapture::captureName |
( |
| ) |
const |
◆ captureNameChanged
void QtAV::VideoCapture::captureNameChanged |
( |
| ) |
|
|
signal |
◆ failed
void QtAV::VideoCapture::failed |
( |
| ) |
|
|
signal |
◆ frameAvailable
frameAvailable Emitted when requested frame is available.
◆ imageCaptured
void QtAV::VideoCapture::imageCaptured |
( |
const QImage & |
image | ) |
|
|
signal |
imageCaptured Emitted when captured video frame is converted to a QImage.
- Parameters
-
◆ isAsync()
bool QtAV::VideoCapture::isAsync |
( |
| ) |
const |
◆ isOriginalFormat()
bool QtAV::VideoCapture::isOriginalFormat |
( |
| ) |
const |
◆ originalFormatChanged
void QtAV::VideoCapture::originalFormatChanged |
( |
| ) |
|
|
signal |
◆ quality()
int QtAV::VideoCapture::quality |
( |
| ) |
const |
◆ qualityChanged
void QtAV::VideoCapture::qualityChanged |
( |
| ) |
|
|
signal |
◆ requested
void QtAV::VideoCapture::requested |
( |
| ) |
|
|
signal |
◆ saved
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. |
◆ saveFormat()
QString QtAV::VideoCapture::saveFormat |
( |
| ) |
const |
◆ saveFormatChanged
void QtAV::VideoCapture::saveFormatChanged |
( |
| ) |
|
|
signal |
◆ setAsync()
void QtAV::VideoCapture::setAsync |
( |
bool |
value = true | ) |
|
◆ setAutoSave()
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.
◆ setCaptureDir()
void QtAV::VideoCapture::setCaptureDir |
( |
const QString & |
value | ) |
|
◆ setCaptureName()
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.
◆ setOriginalFormat()
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.
◆ setQuality()
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 |
◆ setSaveFormat()
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" |
◆ CaptureTask
◆ VideoThread
◆ async
bool QtAV::VideoCapture::async |
|
readwrite |
◆ autoSave
bool QtAV::VideoCapture::autoSave |
|
readwrite |
◆ captureDir
QString QtAV::VideoCapture::captureDir |
|
readwrite |
◆ captureName
QString QtAV::VideoCapture::captureName |
|
readwrite |
◆ originalFormat
bool QtAV::VideoCapture::originalFormat |
|
readwrite |
◆ quality
int QtAV::VideoCapture::quality |
|
readwrite |
◆ saveFormat
QString QtAV::VideoCapture::saveFormat |
|
readwrite |
The documentation for this class was generated from the following file: