Audacity 3.2.0
|
#include <AVCodecContextWrapper.h>
Public Member Functions | |
AVCodecContextWrapper (const AVCodecContextWrapper &)=delete | |
AVCodecContextWrapper & | operator= (AVCodecContextWrapper &)=delete |
AVCodecContextWrapper (AVCodecContextWrapper &&)=delete | |
AVCodecContextWrapper & | operator= (AVCodecContextWrapper &&)=delete |
AVCodecContextWrapper (const FFmpegFunctions &ffmpeg, std::unique_ptr< AVCodecWrapper > codec) noexcept | |
AVCodecContextWrapper (const FFmpegFunctions &ffmpeg, AVCodecContext *wrapped) noexcept | |
AVCodecContext * | GetWrappedValue () noexcept |
const AVCodecContext * | GetWrappedValue () const noexcept |
virtual | ~AVCodecContextWrapper () |
std::vector< uint8_t > | DecodeAudioPacket (const AVPacketWrapper *packet) |
virtual sampleFormat | GetPreferredAudacitySampleFormat () const noexcept=0 |
virtual std::vector< int16_t > | DecodeAudioPacketInt16 (const AVPacketWrapper *packet)=0 |
virtual std::vector< float > | DecodeAudioPacketFloat (const AVPacketWrapper *packet)=0 |
virtual int | GetBitRate () const noexcept=0 |
virtual void | SetBitRate (int value) noexcept=0 |
virtual const AVChannelLayoutWrapper * | GetChannelLayout () const noexcept=0 |
virtual void | SetChannelLayout (const AVChannelLayoutWrapper *value) noexcept=0 |
virtual int | GetChannels () const noexcept=0 |
virtual const AVCodecWrapper * | GetCodec () const noexcept=0 |
virtual AVCodecIDFwd | GetCodecId () const noexcept=0 |
void | SetCodecTagFourCC (const char *fourCC) noexcept |
virtual void | SetCodecTag (unsigned int tag) noexcept=0 |
virtual unsigned int | GetCodecTag () const noexcept=0 |
virtual AVMediaTypeFwd | GetCodecType () const noexcept=0 |
virtual int | GetCompressionLevel () const noexcept=0 |
virtual void | SetCompressionLevel (int value) noexcept=0 |
virtual int | GetCutoff () const noexcept=0 |
virtual void | SetCutoff (int value) noexcept=0 |
virtual int | GetFlags () const noexcept=0 |
virtual void | SetFlags (int value) noexcept=0 |
virtual int | GetFlags2 () const noexcept=0 |
virtual void | SetFlags2 (int value) noexcept=0 |
virtual int | GetFrameNumber () const noexcept=0 |
virtual int | GetFrameSize () const noexcept=0 |
virtual void | SetFrameSize (int value) noexcept=0 |
virtual int | GetGlobalQuality () const noexcept=0 |
virtual void | SetGlobalQuality (int value) noexcept=0 |
virtual int | GetProfile () const noexcept=0 |
virtual void | SetProfile (int value) noexcept=0 |
virtual AVSampleFormatFwd | GetSampleFmt () const noexcept=0 |
virtual void | SetSampleFmt (AVSampleFormatFwd value) noexcept=0 |
virtual int | GetSampleRate () const noexcept=0 |
virtual void | SetSampleRate (int value) noexcept=0 |
virtual int | GetStrictStdCompliance () const noexcept=0 |
virtual void | SetStrictStdCompliance (int value) noexcept=0 |
virtual struct AudacityAVRational | GetTimeBase () const noexcept=0 |
virtual void | SetTimeBase (struct AudacityAVRational value) noexcept=0 |
virtual int | Open (const AVCodecWrapper *codec, AVDictionaryWrapper *options=nullptr)=0 |
Protected Attributes | |
const FFmpegFunctions & | mFFmpeg |
AVCodecContext * | mAVCodecContext { nullptr } |
std::unique_ptr< AVCodecWrapper > | mAVCodec |
bool | mIsOwned { false } |
Private Member Functions | |
void | ConsumeFrame (std::vector< uint8_t > &data, AVFrameWrapper &frame) |
Definition at line 30 of file AVCodecContextWrapper.h.
|
delete |
|
delete |
|
noexcept |
Definition at line 18 of file AVCodecContextWrapper.cpp.
|
noexcept |
Definition at line 28 of file AVCodecContextWrapper.cpp.
|
virtual |
Definition at line 47 of file AVCodecContextWrapper.cpp.
References AVCodecFunctions::avcodec_close, AVCodecFunctions::avcodec_free_context, AVCodecFunctions::avcodec_is_open, mAVCodecContext, mFFmpeg, and mIsOwned.
|
private |
Definition at line 150 of file AVCodecContextWrapper.cpp.
References AVUtilFunctions::av_get_bytes_per_sample, staffpad::vo::copy(), GetChannels(), AVFrameWrapper::GetData(), AVFrameWrapper::GetExtendedData(), AVFrameWrapper::GetFormat(), AVFrameWrapper::GetSamplesCount(), and mFFmpeg.
Referenced by DecodeAudioPacket().
std::vector< uint8_t > AVCodecContextWrapper::DecodeAudioPacket | ( | const AVPacketWrapper * | packet | ) |
Definition at line 68 of file AVCodecContextWrapper.cpp.
References AUDACITY_AVERROR, AUDACITY_AVERROR_EOF, AVCodecFunctions::avcodec_decode_audio4, AVCodecFunctions::avcodec_receive_frame, AVCodecFunctions::avcodec_send_packet, AVPacketWrapper::Clone(), ConsumeFrame(), FFmpegFunctions::CreateAVFrameWrapper(), FFmpegFunctions::CreateAVPacketWrapper(), AVPacketWrapper::GetWrappedValue(), mAVCodecContext, and mFFmpeg.
|
pure virtual |
|
pure virtual |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
noexcept |
Definition at line 42 of file AVCodecContextWrapper.cpp.
References mAVCodecContext.
|
noexcept |
Definition at line 37 of file AVCodecContextWrapper.cpp.
References mAVCodecContext.
|
pure virtual |
options | A dictionary filled with AVCodecContext and codec-private options. On return this object will be filled with options that were not found. |
|
delete |
|
delete |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
noexcept |
Definition at line 199 of file AVCodecContextWrapper.cpp.
References anonymous_namespace{AVCodecContextWrapper.cpp}::MakeTag().
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
mutableprotected |
Definition at line 125 of file AVCodecContextWrapper.h.
|
protected |
Definition at line 123 of file AVCodecContextWrapper.h.
Referenced by DecodeAudioPacket(), GetWrappedValue(), and ~AVCodecContextWrapper().
|
protected |
Definition at line 122 of file AVCodecContextWrapper.h.
Referenced by ConsumeFrame(), DecodeAudioPacket(), and ~AVCodecContextWrapper().
|
protected |
Definition at line 127 of file AVCodecContextWrapper.h.
Referenced by ~AVCodecContextWrapper().