#include <VideoEncoder.h>
◆ VideoEncoder()
◆ create() [1/2]
◆ create() [2/2]
| static VideoEncoder* QtAV::VideoEncoder::create |
( |
const char * |
name = "FFmpeg" | ) |
|
|
static |
create create an encoder from registered names
- Parameters
-
| name | can be "FFmpeg". FFmpeg encoder will be created for empty name |
- Returns
- 0 if not registered
◆ defaultFrameRate()
| static qreal QtAV::VideoEncoder::defaultFrameRate |
( |
| ) |
|
|
inlinestatic |
◆ encode()
encode encode a video frame to a Packet
- Parameters
-
| frame | pass an invalid frame to get delayed frames |
- Returns
◆ frameRate()
| qreal QtAV::VideoEncoder::frameRate |
( |
| ) |
const |
◆ frameRateChanged
| void QtAV::VideoEncoder::frameRateChanged |
( |
| ) |
|
|
signal |
◆ height()
| int QtAV::VideoEncoder::height |
( |
| ) |
const |
◆ heightChanged
| void QtAV::VideoEncoder::heightChanged |
( |
| ) |
|
|
signal |
◆ id() [1/2]
◆ id() [2/2]
◆ name() [1/2]
| QString QtAV::VideoEncoder::name |
( |
| ) |
const |
|
virtual |
◆ name() [2/2]
◆ next()
next
- Parameters
-
| id | NULL to get the first id address |
- Returns
- address of id or NULL if not found/end
◆ pixelFormat()
◆ pixelFormatChanged
| void QtAV::VideoEncoder::pixelFormatChanged |
( |
| ) |
|
|
signal |
◆ Register()
template<class C >
| static bool QtAV::VideoEncoder::Register |
( |
VideoEncoderId |
id, |
|
|
const char * |
name |
|
) |
| |
|
inlinestatic |
◆ setFrameRate()
| void QtAV::VideoEncoder::setFrameRate |
( |
qreal |
value | ) |
|
TODO: check avctx->supported_framerates. use frame_rate_used.
setFrameRate If frame rate is not set, frameRate() returns -1, but internally the default frame rate 25 will be used
- Parameters
-
◆ setHeight()
| void QtAV::VideoEncoder::setHeight |
( |
int |
value | ) |
|
◆ setPixelFormat()
setPixelFormat If not set or set to an invalid format, a supported format will be used and pixelFormat() will be that format after open()
- Parameters
-
◆ setWidth()
| void QtAV::VideoEncoder::setWidth |
( |
int |
value | ) |
|
output parameters
setWidth set the encoded video width. The same as input frame size if value <= 0
◆ supportedCodecs()
| static QStringList QtAV::VideoEncoder::supportedCodecs |
( |
| ) |
|
|
static |
◆ width()
| int QtAV::VideoEncoder::width |
( |
| ) |
const |
◆ widthChanged
| void QtAV::VideoEncoder::widthChanged |
( |
| ) |
|
|
signal |
◆ frameRate
| qreal QtAV::VideoEncoder::frameRate |
|
readwrite |
◆ height
| int QtAV::VideoEncoder::height |
|
readwrite |
◆ pixelFormat
◆ width
| int QtAV::VideoEncoder::width |
|
readwrite |
The documentation for this class was generated from the following file: