Audacity 3.2.0
Public Member Functions | Protected Attributes | List of all members
AVFrameWrapper Class Referenceabstract

#include <AVFrameWrapper.h>

Collaboration diagram for AVFrameWrapper:
[legend]

Public Member Functions

 AVFrameWrapper (const AVFrameWrapper &)=delete
 
AVFrameWrapperoperator= (AVFrameWrapper &)=delete
 
 AVFrameWrapper (AVFrameWrapper &&)=delete
 
AVFrameWrapperoperator= (AVFrameWrapper &&)=delete
 
 AVFrameWrapper (const FFmpegFunctions &ffmpeg) noexcept
 
AVFrameGetWrappedValue () noexcept
 
const AVFrameGetWrappedValue () const noexcept
 
virtual ~AVFrameWrapper ()
 
virtual int GetNumDataPointers () const noexcept=0
 
virtual uint8_t * GetData (int index) const noexcept=0
 
virtual int GetLineSize (int index) const noexcept=0
 
virtual uint8_t * GetExtendedData (int index) const noexcept=0
 
virtual int GetWidth () const noexcept=0
 
virtual int GetHeight () const noexcept=0
 
virtual int GetSamplesCount () const noexcept=0
 
virtual void SetSamplesCount (int count) noexcept=0
 
virtual AVSampleFormatFwd GetFormat () const noexcept=0
 
virtual void SetFormat (AVSampleFormatFwd format) noexcept=0
 
virtual int GetKeyFrame () const noexcept=0
 
virtual AudacityAVRational GetSampleAspectRatio () const noexcept=0
 
virtual int64_t GetPresentationTimestamp () const noexcept=0
 
virtual int64_t GetPacketPresentationTimestamp () const noexcept=0
 
virtual int64_t GetPacketDecompressionTimestamp () const noexcept=0
 
virtual int GetQuality () const noexcept=0
 
virtual void * GetOpaque () const noexcept=0
 
virtual void SetOpaque (void *opaque) noexcept=0
 
virtual int GetRepeatPict () const noexcept=0
 
virtual int GetInterlacedFrame () const noexcept=0
 
virtual int GetTopFieldFirst () const noexcept=0
 
virtual int GetPaletteHasChanged () const noexcept=0
 
virtual int GetSampleRate () const noexcept=0
 
virtual const AVChannelLayoutWrapperGetChannelLayout () const noexcept=0
 
virtual void SetChannelLayout (const AVChannelLayoutWrapper *layout) noexcept=0
 
virtual int GetSideDataCount () const noexcept=0
 
virtual int GetFlags () const noexcept=0
 
virtual int64_t GetBestEffortTimestamp () const noexcept=0
 
virtual AVDictionaryWrapper GetMetadata () const noexcept=0
 
virtual int GetDecodeErrorFlags () const noexcept=0
 
virtual int GetChannels () const noexcept=0
 
virtual int GetPacketSize () const noexcept=0
 

Protected Attributes

const FFmpegFunctionsmFFmpeg
 
AVFramemAVFrame { nullptr }
 
std::unique_ptr< AVChannelLayoutWrappermChannelLayoutWrapper
 

Detailed Description

Definition at line 27 of file AVFrameWrapper.h.

Constructor & Destructor Documentation

◆ AVFrameWrapper() [1/3]

AVFrameWrapper::AVFrameWrapper ( const AVFrameWrapper )
delete

◆ AVFrameWrapper() [2/3]

AVFrameWrapper::AVFrameWrapper ( AVFrameWrapper &&  )
delete

◆ AVFrameWrapper() [3/3]

AVFrameWrapper::AVFrameWrapper ( const FFmpegFunctions ffmpeg)
explicitnoexcept

Definition at line 17 of file AVFrameWrapper.cpp.

18 : mFFmpeg(ffmpeg)
19{
21}
const FFmpegFunctions & mFFmpeg
AVFrame * mAVFrame
AVFrame *(* av_frame_alloc)(void)

◆ ~AVFrameWrapper()

AVFrameWrapper::~AVFrameWrapper ( )
virtual

Definition at line 33 of file AVFrameWrapper.cpp.

34{
35 if (mAVFrame != nullptr)
37}
void(* av_frame_free)(AVFrame **frame)

References AVUtilFunctions::av_frame_free, mAVFrame, and mFFmpeg.

Member Function Documentation

◆ GetBestEffortTimestamp()

virtual int64_t AVFrameWrapper::GetBestEffortTimestamp ( ) const
pure virtualnoexcept

◆ GetChannelLayout()

virtual const AVChannelLayoutWrapper * AVFrameWrapper::GetChannelLayout ( ) const
pure virtualnoexcept

◆ GetChannels()

virtual int AVFrameWrapper::GetChannels ( ) const
pure virtualnoexcept

◆ GetData()

virtual uint8_t * AVFrameWrapper::GetData ( int  index) const
pure virtualnoexcept

Referenced by AVCodecContextWrapper::ConsumeFrame().

Here is the caller graph for this function:

◆ GetDecodeErrorFlags()

virtual int AVFrameWrapper::GetDecodeErrorFlags ( ) const
pure virtualnoexcept

◆ GetExtendedData()

virtual uint8_t * AVFrameWrapper::GetExtendedData ( int  index) const
pure virtualnoexcept

Referenced by AVCodecContextWrapper::ConsumeFrame().

Here is the caller graph for this function:

◆ GetFlags()

virtual int AVFrameWrapper::GetFlags ( ) const
pure virtualnoexcept

◆ GetFormat()

virtual AVSampleFormatFwd AVFrameWrapper::GetFormat ( ) const
pure virtualnoexcept

Referenced by AVCodecContextWrapper::ConsumeFrame().

Here is the caller graph for this function:

◆ GetHeight()

virtual int AVFrameWrapper::GetHeight ( ) const
pure virtualnoexcept

◆ GetInterlacedFrame()

virtual int AVFrameWrapper::GetInterlacedFrame ( ) const
pure virtualnoexcept

◆ GetKeyFrame()

virtual int AVFrameWrapper::GetKeyFrame ( ) const
pure virtualnoexcept

◆ GetLineSize()

virtual int AVFrameWrapper::GetLineSize ( int  index) const
pure virtualnoexcept

◆ GetMetadata()

virtual AVDictionaryWrapper AVFrameWrapper::GetMetadata ( ) const
pure virtualnoexcept

◆ GetNumDataPointers()

virtual int AVFrameWrapper::GetNumDataPointers ( ) const
pure virtualnoexcept

◆ GetOpaque()

virtual void * AVFrameWrapper::GetOpaque ( ) const
pure virtualnoexcept

◆ GetPacketDecompressionTimestamp()

virtual int64_t AVFrameWrapper::GetPacketDecompressionTimestamp ( ) const
pure virtualnoexcept

◆ GetPacketPresentationTimestamp()

virtual int64_t AVFrameWrapper::GetPacketPresentationTimestamp ( ) const
pure virtualnoexcept

◆ GetPacketSize()

virtual int AVFrameWrapper::GetPacketSize ( ) const
pure virtualnoexcept

◆ GetPaletteHasChanged()

virtual int AVFrameWrapper::GetPaletteHasChanged ( ) const
pure virtualnoexcept

◆ GetPresentationTimestamp()

virtual int64_t AVFrameWrapper::GetPresentationTimestamp ( ) const
pure virtualnoexcept

◆ GetQuality()

virtual int AVFrameWrapper::GetQuality ( ) const
pure virtualnoexcept

◆ GetRepeatPict()

virtual int AVFrameWrapper::GetRepeatPict ( ) const
pure virtualnoexcept

◆ GetSampleAspectRatio()

virtual AudacityAVRational AVFrameWrapper::GetSampleAspectRatio ( ) const
pure virtualnoexcept

◆ GetSampleRate()

virtual int AVFrameWrapper::GetSampleRate ( ) const
pure virtualnoexcept

◆ GetSamplesCount()

virtual int AVFrameWrapper::GetSamplesCount ( ) const
pure virtualnoexcept

Referenced by AVCodecContextWrapper::ConsumeFrame().

Here is the caller graph for this function:

◆ GetSideDataCount()

virtual int AVFrameWrapper::GetSideDataCount ( ) const
pure virtualnoexcept

◆ GetTopFieldFirst()

virtual int AVFrameWrapper::GetTopFieldFirst ( ) const
pure virtualnoexcept

◆ GetWidth()

virtual int AVFrameWrapper::GetWidth ( ) const
pure virtualnoexcept

◆ GetWrappedValue() [1/2]

const AVFrame * AVFrameWrapper::GetWrappedValue ( ) const
noexcept

Definition at line 28 of file AVFrameWrapper.cpp.

29{
30 return mAVFrame;
31}

References mAVFrame.

◆ GetWrappedValue() [2/2]

AVFrame * AVFrameWrapper::GetWrappedValue ( )
noexcept

Definition at line 23 of file AVFrameWrapper.cpp.

24{
25 return mAVFrame;
26}

References mAVFrame.

◆ operator=() [1/2]

AVFrameWrapper & AVFrameWrapper::operator= ( AVFrameWrapper &&  )
delete

◆ operator=() [2/2]

AVFrameWrapper & AVFrameWrapper::operator= ( AVFrameWrapper )
delete

◆ SetChannelLayout()

virtual void AVFrameWrapper::SetChannelLayout ( const AVChannelLayoutWrapper layout)
pure virtualnoexcept

◆ SetFormat()

virtual void AVFrameWrapper::SetFormat ( AVSampleFormatFwd  format)
pure virtualnoexcept

◆ SetOpaque()

virtual void AVFrameWrapper::SetOpaque ( void *  opaque)
pure virtualnoexcept

◆ SetSamplesCount()

virtual void AVFrameWrapper::SetSamplesCount ( int  count)
pure virtualnoexcept

Member Data Documentation

◆ mAVFrame

AVFrame* AVFrameWrapper::mAVFrame { nullptr }
protected

Definition at line 87 of file AVFrameWrapper.h.

Referenced by GetWrappedValue(), and ~AVFrameWrapper().

◆ mChannelLayoutWrapper

std::unique_ptr<AVChannelLayoutWrapper> AVFrameWrapper::mChannelLayoutWrapper
protected

Definition at line 89 of file AVFrameWrapper.h.

◆ mFFmpeg

const FFmpegFunctions& AVFrameWrapper::mFFmpeg
protected

Definition at line 86 of file AVFrameWrapper.h.

Referenced by ~AVFrameWrapper().


The documentation for this class was generated from the following files: