![]() |
Miam-Player
0.8.0
A nice music player
|
#include <AudioEncoder.h>
Signals | |
void | audioFormatChanged () |
![]() | |
void | error (const QtAV::AVError &e) |
void | codecNameChanged () |
void | bitRateChanged () |
void | timestampModeChanged (TimestampMode mode) |
Public Member Functions | |
virtual AudioEncoderId | id () const =0 |
QString | name () const Q_DECL_OVERRIDE |
virtual bool | encode (const AudioFrame &frame=AudioFrame())=0 |
encode encode a audio frame to a Packet More... | |
const AudioFormat & | audioFormat () const |
output parameters More... | |
void | setAudioFormat (const AudioFormat &format) |
![]() | |
virtual | ~AVEncoder () |
virtual QString | description () const |
void | setCodecName (const QString &name) |
setCodecName An encoder can support more than 1 codec. More... | |
QString | codecName () const |
bool | open () |
bool | close () |
bool | isOpen () const |
virtual void | flush () |
Packet | encoded () const |
virtual void | copyAVCodecContext (void *ctx) |
used by ff muxer. More... | |
void * | codecContext () const |
void | setBitRate (int value) |
setBitRate Higher bit rate result in better quality. More... | |
int | bitRate () const |
TimestampMode | timestampMode () const |
void | setTimestampMode (TimestampMode value) |
void | setOptions (const QVariantHash &dict) |
setOptions More... | |
QVariantHash | options () const |
Static Public Member Functions | |
static QStringList | supportedCodecs () |
static AudioEncoder * | create (AudioEncoderId id) |
static AudioEncoder * | create (const char *name="FFmpeg") |
create create an encoder from registered names More... | |
template<class C > | |
static bool | Register (AudioEncoderId id, const char *name) |
static AudioEncoderId * | next (AudioEncoderId *id=0) |
next More... | |
static const char * | name (AudioEncoderId id) |
static AudioEncoderId | id (const char *name) |
Protected Member Functions | |
AudioEncoder (AudioEncoderPrivate &d) | |
![]() | |
AVEncoder (AVEncoderPrivate &d) | |
Properties | |
QtAV::AudioFormat | audioFormat |
![]() | |
int | bitRate |
QString | codecName |
TimestampMode | timestampMode |
Additional Inherited Members | |
![]() | |
enum | TimestampMode { TimestampMonotonic, TimestampCopy } |
|
protected |
const AudioFormat& QtAV::AudioEncoder::audioFormat | ( | ) | const |
output parameters
audioFormat If not set or set to an invalid format, a supported format will be used and audioFormat() will be that format after open()
|
signal |
|
static |
|
static |
create create an encoder from registered names
name | can be "FFmpeg". FFmpeg encoder will be created for empty name |
|
pure virtual |
encode encode a audio frame to a Packet
frame | pass an invalid frame to get delayed frames |
|
pure virtual |
|
static |
|
virtual |
Implements QtAV::AVEncoder.
|
static |
|
static |
next
id | NULL to get the first id address |
|
inlinestatic |
void QtAV::AudioEncoder::setAudioFormat | ( | const AudioFormat & | format | ) |
|
static |
|
readwrite |