#include <AVDecoder.h>
◆ ~AVDecoder()
virtual QtAV::AVDecoder::~AVDecoder |
( |
| ) |
|
|
virtual |
◆ AVDecoder()
◆ close()
virtual bool QtAV::AVDecoder::close |
( |
| ) |
|
|
virtual |
◆ codecContext()
void* QtAV::AVDecoder::codecContext |
( |
| ) |
const |
◆ codecName()
QString QtAV::AVDecoder::codecName |
( |
| ) |
const |
|
protected |
◆ codecNameChanged()
virtual void QtAV::AVDecoder::codecNameChanged |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ decode()
virtual bool QtAV::AVDecoder::decode |
( |
const Packet & |
packet | ) |
|
|
pure virtual |
◆ description()
virtual QString QtAV::AVDecoder::description |
( |
| ) |
const |
|
virtual |
◆ descriptionChanged
void QtAV::AVDecoder::descriptionChanged |
( |
| ) |
|
|
signal |
◆ error
◆ flush()
virtual void QtAV::AVDecoder::flush |
( |
| ) |
|
|
virtual |
◆ isAvailable()
bool QtAV::AVDecoder::isAvailable |
( |
| ) |
const |
◆ isOpen()
bool QtAV::AVDecoder::isOpen |
( |
| ) |
const |
◆ name()
virtual QString QtAV::AVDecoder::name |
( |
| ) |
const |
|
virtual |
◆ open()
virtual bool QtAV::AVDecoder::open |
( |
| ) |
|
|
virtual |
default is open FFmpeg codec context codec config must be done before open NOTE: open() and close() are not thread safe.
You'd better call them in the same thread.
◆ options()
QVariantHash QtAV::AVDecoder::options |
( |
| ) |
const |
◆ setCodecContext()
void QtAV::AVDecoder::setCodecContext |
( |
void * |
codecCtx | ) |
|
◆ setCodecName()
void QtAV::AVDecoder::setCodecName |
( |
const QString & |
name | ) |
|
|
protected |
◆ setOptions()
void QtAV::AVDecoder::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 AVDecoder. Use AVDecoder::name() or lower case as a key to set properties. If key not found, assume key is "avcodec"
- If no ket AVDecoder::name() found in the option, set key-value pairs as QObject property-value pairs.
- Parameters
-
dict | example: "avcodec": {"vismv":"pf"}, "vaapi":{"display":"DRM"}, "copyMode": "ZeroCopy" means set avcodec context option vismv=>pf, VA-API display (qt property) to DRM when using VA-API, set copyMode (GPU decoders) property to ZeroCopy |
◆ undecodedSize()
int QtAV::AVDecoder::undecodedSize |
( |
| ) |
const |
The documentation for this class was generated from the following file: