#include <AVEncoder.h>
Enumerator |
---|
TimestampMonotonic |
|
TimestampCopy |
|
virtual QtAV::AVEncoder::~AVEncoder |
( |
| ) |
|
|
virtual |
int QtAV::AVEncoder::bitRate |
( |
| ) |
const |
void QtAV::AVEncoder::bitRateChanged |
( |
| ) |
|
|
signal |
bool QtAV::AVEncoder::close |
( |
| ) |
|
void* QtAV::AVEncoder::codecContext |
( |
| ) |
const |
QString QtAV::AVEncoder::codecName |
( |
| ) |
const |
void QtAV::AVEncoder::codecNameChanged |
( |
| ) |
|
|
signal |
virtual void QtAV::AVEncoder::copyAVCodecContext |
( |
void * |
ctx | ) |
|
|
virtual |
used by ff muxer.
Be sure all parameters are set. (open?)
virtual QString QtAV::AVEncoder::description |
( |
| ) |
const |
|
virtual |
Packet QtAV::AVEncoder::encoded |
( |
| ) |
const |
virtual void QtAV::AVEncoder::flush |
( |
| ) |
|
|
virtual |
bool QtAV::AVEncoder::isOpen |
( |
| ) |
const |
virtual QString QtAV::AVEncoder::name |
( |
| ) |
const |
|
pure virtual |
bool QtAV::AVEncoder::open |
( |
| ) |
|
QVariantHash QtAV::AVEncoder::options |
( |
| ) |
const |
void QtAV::AVEncoder::setBitRate |
( |
int |
value | ) |
|
setBitRate Higher bit rate result in better quality.
Default for video: 400000, audio: 64000
void QtAV::AVEncoder::setCodecName |
( |
const QString & |
name | ) |
|
setCodecName An encoder can support more than 1 codec.
void QtAV::AVEncoder::setOptions |
( |
const QVariantHash & |
dict | ) |
|
setOptions
- If has key "avcodec", it's value (suboption, a hash or map) will be used to set AVCodecContext use av_opt_set and av_dict_set. A value of hash type is ignored. we can ignore the flags used in av_dict_xxx because we can use hash api. empty value does nothing to current context if it is open, but will clear AVDictionary in the next open. AVDictionary is used in avcodec_open2() and will not change unless user call setOptions().
- Set QObject properties for AVEncoder. Use AVEncoder::name() or lower case as a key to set properties. If key not found, assume key is "avcodec"
- If no ket AVEncoder::name() found in the option, set key-value pairs as QObject property-value pairs.
int QtAV::AVEncoder::bitRate |
|
readwrite |
QString QtAV::AVEncoder::codecName |
|
readwrite |
The documentation for this class was generated from the following file: