Audacity  3.0.3
Public Member Functions | Protected Attributes | List of all members
AVStreamWrapper Class Referenceabstract

#include <AVStreamWrapper.h>

Collaboration diagram for AVStreamWrapper:
[legend]

Public Member Functions

 AVStreamWrapper (const AVStreamWrapper &)=delete
 
AVStreamWrapperoperator= (AVStreamWrapper &)=delete
 
 AVStreamWrapper (AVStreamWrapper &&)=delete
 
AVStreamWrapperoperator= (AVStreamWrapper &&)=delete
 
 AVStreamWrapper (const FFmpegFunctions &ffmpeg, AVStream *wrapped) noexcept
 
AVStreamGetWrappedValue () noexcept
 
const AVStreamGetWrappedValue () const noexcept
 
virtual ~AVStreamWrapper ()=default
 
virtual int GetIndex () const noexcept=0
 
virtual int GetId () const noexcept=0
 
virtual void SetId (int id) noexcept=0
 
virtual AudacityAVRational GetTimeBase () const noexcept=0
 
virtual void SetTimeBase (AudacityAVRational time_base) noexcept=0
 
virtual int64_t GetStartTime () const noexcept=0
 
virtual void SetStartTime (int64_t start_time) noexcept=0
 
virtual int64_t GetDuration () const noexcept=0
 
virtual void SetDuration (int64_t duration) noexcept=0
 
virtual int64_t GetFramesCount () const noexcept=0
 
virtual void SetFramesCount (int64_t nb_frames) noexcept=0
 
virtual int GetDisposition () const noexcept=0
 
virtual void SetDisposition (int disposition) noexcept=0
 
virtual AVSampleFormatFwd GetDiscard () const noexcept=0
 
virtual void SetDiscard (AVDiscardFwd discard) noexcept=0
 
virtual AudacityAVRational GetSampleAspectRatio () const noexcept=0
 
virtual void SetSampleAspectRatio (AudacityAVRational sample_aspect_ratio) noexcept=0
 
virtual AVDictionaryWrapper GetMetadata () const noexcept=0
 
virtual void SetMetadata (AVDictionaryWrapper metadata) noexcept=0
 
virtual bool IsAudio () const noexcept=0
 
virtual AVCodecIDFwd GetAVCodecID () const noexcept=0
 
virtual std::unique_ptr< AVCodecContextWrapperGetAVCodecContext () const noexcept=0
 

Protected Attributes

const FFmpegFunctionsmFFmpeg
 
AVStreammAVStream { nullptr }
 

Detailed Description

Definition at line 24 of file AVStreamWrapper.h.

Constructor & Destructor Documentation

◆ AVStreamWrapper() [1/3]

AVStreamWrapper::AVStreamWrapper ( const AVStreamWrapper )
delete

◆ AVStreamWrapper() [2/3]

AVStreamWrapper::AVStreamWrapper ( AVStreamWrapper &&  )
delete

◆ AVStreamWrapper() [3/3]

AVStreamWrapper::AVStreamWrapper ( const FFmpegFunctions ffmpeg,
AVStream wrapped 
)
noexcept

Definition at line 15 of file AVStreamWrapper.cpp.

17  : mFFmpeg(ffmpeg)
18  , mAVStream(wrapped)
19 {
20 }

◆ ~AVStreamWrapper()

virtual AVStreamWrapper::~AVStreamWrapper ( )
virtualdefault

Member Function Documentation

◆ GetAVCodecContext()

virtual std::unique_ptr<AVCodecContextWrapper> AVStreamWrapper::GetAVCodecContext ( ) const
pure virtualnoexcept

Referenced by FFmpegImportFileHandle::InitCodecs().

Here is the caller graph for this function:

◆ GetAVCodecID()

virtual AVCodecIDFwd AVStreamWrapper::GetAVCodecID ( ) const
pure virtualnoexcept

◆ GetDiscard()

virtual AVSampleFormatFwd AVStreamWrapper::GetDiscard ( ) const
pure virtualnoexcept

◆ GetDisposition()

virtual int AVStreamWrapper::GetDisposition ( ) const
pure virtualnoexcept

◆ GetDuration()

virtual int64_t AVStreamWrapper::GetDuration ( ) const
pure virtualnoexcept

Referenced by FFmpegImportFileHandle::InitCodecs().

Here is the caller graph for this function:

◆ GetFramesCount()

virtual int64_t AVStreamWrapper::GetFramesCount ( ) const
pure virtualnoexcept

Referenced by FFmpegImportFileHandle::WriteData().

Here is the caller graph for this function:

◆ GetId()

virtual int AVStreamWrapper::GetId ( ) const
pure virtualnoexcept

◆ GetIndex()

virtual int AVStreamWrapper::GetIndex ( ) const
pure virtualnoexcept

Referenced by FFmpegImportFileHandle::InitCodecs().

Here is the caller graph for this function:

◆ GetMetadata()

virtual AVDictionaryWrapper AVStreamWrapper::GetMetadata ( ) const
pure virtualnoexcept

Referenced by FFmpegImportFileHandle::InitCodecs().

Here is the caller graph for this function:

◆ GetSampleAspectRatio()

virtual AudacityAVRational AVStreamWrapper::GetSampleAspectRatio ( ) const
pure virtualnoexcept

◆ GetStartTime()

virtual int64_t AVStreamWrapper::GetStartTime ( ) const
pure virtualnoexcept

◆ GetTimeBase()

virtual AudacityAVRational AVStreamWrapper::GetTimeBase ( ) const
pure virtualnoexcept

Referenced by FFmpegImportFileHandle::InitCodecs(), and FFmpegImportFileHandle::WriteData().

Here is the caller graph for this function:

◆ GetWrappedValue() [1/2]

const AVStream * AVStreamWrapper::GetWrappedValue ( ) const
noexcept

Definition at line 27 of file AVStreamWrapper.cpp.

28 {
29  return mAVStream;
30 }

References mAVStream.

◆ GetWrappedValue() [2/2]

AVStream * AVStreamWrapper::GetWrappedValue ( )
noexcept

Definition at line 22 of file AVStreamWrapper.cpp.

23 {
24  return mAVStream;
25 }

References mAVStream.

◆ IsAudio()

virtual bool AVStreamWrapper::IsAudio ( ) const
pure virtualnoexcept

Referenced by FFmpegImportFileHandle::InitCodecs().

Here is the caller graph for this function:

◆ operator=() [1/2]

AVStreamWrapper& AVStreamWrapper::operator= ( AVStreamWrapper &&  )
delete

◆ operator=() [2/2]

AVStreamWrapper& AVStreamWrapper::operator= ( AVStreamWrapper )
delete

◆ SetDiscard()

virtual void AVStreamWrapper::SetDiscard ( AVDiscardFwd  discard)
pure virtualnoexcept

◆ SetDisposition()

virtual void AVStreamWrapper::SetDisposition ( int  disposition)
pure virtualnoexcept

◆ SetDuration()

virtual void AVStreamWrapper::SetDuration ( int64_t  duration)
pure virtualnoexcept

◆ SetFramesCount()

virtual void AVStreamWrapper::SetFramesCount ( int64_t  nb_frames)
pure virtualnoexcept

◆ SetId()

virtual void AVStreamWrapper::SetId ( int  id)
pure virtualnoexcept

◆ SetMetadata()

virtual void AVStreamWrapper::SetMetadata ( AVDictionaryWrapper  metadata)
pure virtualnoexcept

◆ SetSampleAspectRatio()

virtual void AVStreamWrapper::SetSampleAspectRatio ( AudacityAVRational  sample_aspect_ratio)
pure virtualnoexcept

◆ SetStartTime()

virtual void AVStreamWrapper::SetStartTime ( int64_t  start_time)
pure virtualnoexcept

◆ SetTimeBase()

virtual void AVStreamWrapper::SetTimeBase ( AudacityAVRational  time_base)
pure virtualnoexcept

Member Data Documentation

◆ mAVStream

AVStream* AVStreamWrapper::mAVStream { nullptr }
protected

Definition at line 77 of file AVStreamWrapper.h.

Referenced by GetWrappedValue().

◆ mFFmpeg

const FFmpegFunctions& AVStreamWrapper::mFFmpeg
protected

Definition at line 76 of file AVStreamWrapper.h.


The documentation for this class was generated from the following files:
AVStreamWrapper::mFFmpeg
const FFmpegFunctions & mFFmpeg
Definition: AVStreamWrapper.h:76
AVStreamWrapper::mAVStream
AVStream * mAVStream
Definition: AVStreamWrapper.h:77