Ardour  9.0-pre0-350-gf17a656217
ARDOUR::ExportFormatMPEG Class Reference

#include <export_formats.h>

Inheritance diagram for ARDOUR::ExportFormatMPEG:
[legend]

Public Member Functions

 ExportFormatMPEG (std::string const &name, std::string const &ext)
 
 ~ExportFormatMPEG ()
 
bool set_compatibility_state (ExportFormatCompatibility const &compatibility)
 
Type get_type () const
 
SampleFormat default_sample_format () const
 
int default_codec_quality () const
 
virtual bool supports_tagging () const
 
- Public Member Functions inherited from ARDOUR::ExportFormat
 ExportFormat ()
 
 ~ExportFormat ()
 
FormatId get_format_id () const
 
Quality get_quality () const
 
bool has_sample_format ()
 
bool has_codec_quality ()
 
bool sample_format_is_compatible (SampleFormat format) const
 
virtual SampleFormat get_explicit_sample_format () const
 
virtual uint32_t get_channel_limit () const
 
virtual bool has_broadcast_info () const
 
- Public Member Functions inherited from ARDOUR::ExportFormatBase
 ExportFormatBase ()
 
 ExportFormatBase (ExportFormatBase const &other)
 
virtual ~ExportFormatBase ()
 
std::shared_ptr< ExportFormatBaseget_intersection (ExportFormatBase const &other) const
 
std::shared_ptr< ExportFormatBaseget_union (ExportFormatBase const &other) const
 
bool endiannesses_empty () const
 
bool sample_formats_empty () const
 
bool sample_rates_empty () const
 
bool formats_empty () const
 
bool qualities_empty () const
 
bool has_endianness (Endianness endianness) const
 
bool has_sample_format (SampleFormat format) const
 
bool has_sample_rate (SampleRate rate) const
 
bool has_format (FormatId format) const
 
bool has_quality (Quality quality) const
 
void set_extension (std::string const &extension)
 
std::string const & extension () const
 
- Public Member Functions inherited from ARDOUR::ExportFormatBase::SelectableCompatible
 SelectableCompatible ()
 
 ~SelectableCompatible ()
 
bool selected () const
 
bool compatible () const
 
std::string name () const
 
void set_selected (bool value)
 
void set_compatible (bool value)
 
- Public Member Functions inherited from ARDOUR::HasSampleFormat
 HasSampleFormat (ExportFormatBase::SampleFormatSet &sample_formats)
 
virtual ~HasSampleFormat ()
 
void add_sample_format (ExportFormatBase::SampleFormat format)
 
SampleFormatList const & get_sample_formats () const
 
DitherTypeList const & get_dither_types () const
 
SampleFormatPtr get_selected_sample_format ()
 
DitherTypePtr get_selected_dither_type ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 
- Public Member Functions inherited from ARDOUR::HasCodecQuality
virtual ~HasCodecQuality ()
 
void add_codec_quality (std::string const &name, int q)
 
CodecQualityList const & get_codec_qualities () const
 

Additional Inherited Members

- Public Types inherited from ARDOUR::ExportFormatBase
enum  Type { T_None = 0 , T_Sndfile , T_FFMPEG }
 
enum  FormatId {
  F_None = 0 , F_WAV = SF_FORMAT_WAV , F_W64 = SF_FORMAT_W64 , F_CAF = SF_FORMAT_CAF ,
  F_AIFF = SF_FORMAT_AIFF , F_AU = SF_FORMAT_AU , F_IRCAM = SF_FORMAT_IRCAM , F_RAW = SF_FORMAT_RAW ,
  F_FLAC = SF_FORMAT_FLAC , F_Ogg = SF_FORMAT_OGG , F_MPEG = 0x230000 , F_FFMPEG = 0xF10000
}
 
enum  Endianness { E_FileDefault = SF_ENDIAN_FILE , E_Little = SF_ENDIAN_LITTLE , E_Big = SF_ENDIAN_BIG , E_Cpu = SF_ENDIAN_CPU }
 
enum  SampleFormat {
  SF_None = 0 , SF_8 = SF_FORMAT_PCM_S8 , SF_16 = SF_FORMAT_PCM_16 , SF_24 = SF_FORMAT_PCM_24 ,
  SF_32 = SF_FORMAT_PCM_32 , SF_U8 = SF_FORMAT_PCM_U8 , SF_Float = SF_FORMAT_FLOAT , SF_Double = SF_FORMAT_DOUBLE ,
  SF_Vorbis = SF_FORMAT_VORBIS , SF_Opus = 0x0064 , SF_MPEG_LAYER_III = 0x0082
}
 
enum  DitherType { D_None = AudioGrapher::D_None , D_Rect = AudioGrapher::D_Rect , D_Tri = AudioGrapher::D_Tri , D_Shaped = AudioGrapher::D_Shaped }
 
enum  Quality {
  Q_None = 0 , Q_Any , Q_LosslessLinear , Q_LosslessCompression ,
  Q_LossyCompression
}
 
enum  SampleRate {
  SR_None = 0 , SR_Session = 1 , SR_8 = 8000 , SR_22_05 = 22050 ,
  SR_24 = 24000 , SR_44_1 = 44100 , SR_48 = 48000 , SR_88_2 = 88200 ,
  SR_96 = 96000 , SR_176_4 = 176400 , SR_192 = 192000
}
 
enum  SRCQuality {
  SRC_SincBest = SRC_SINC_BEST_QUALITY , SRC_SincMedium = SRC_SINC_MEDIUM_QUALITY , SRC_SincFast = SRC_SINC_FASTEST , SRC_ZeroOrderHold = SRC_ZERO_ORDER_HOLD ,
  SRC_Linear = SRC_LINEAR
}
 
- Public Types inherited from ARDOUR::HasSampleFormat
typedef std::shared_ptr< SampleFormatStateSampleFormatPtr
 
typedef std::weak_ptr< SampleFormatStateWeakSampleFormatPtr
 
typedef std::list< SampleFormatPtrSampleFormatList
 
typedef std::shared_ptr< DitherTypeStateDitherTypePtr
 
typedef std::weak_ptr< DitherTypeStateWeakDitherTypePtr
 
typedef std::list< DitherTypePtrDitherTypeList
 
- Public Types inherited from ARDOUR::HasCodecQuality
typedef std::shared_ptr< CodecQualityCodecQualityPtr
 
typedef std::list< CodecQualityPtrCodecQualityList
 
- Static Public Member Functions inherited from ARDOUR::ExportFormatBase
static SampleRate nearest_sample_rate (samplecnt_t sample_rate)
 
- Static Public Member Functions inherited from ARDOUR::HasSampleFormat
static std::string get_sample_format_name (ExportFormatBase::SampleFormat format)
 
- Public Attributes inherited from ARDOUR::ExportFormatBase::SelectableCompatible
PBD::Signal< void(bool)> SelectChanged
 
PBD::Signal< void(bool)> CompatibleChanged
 
- Public Attributes inherited from ARDOUR::HasSampleFormat
PBD::Signal< void(bool, WeakSampleFormatPtr)> SampleFormatSelectChanged
 
PBD::Signal< void(bool, WeakSampleFormatPtr)> SampleFormatCompatibleChanged
 
PBD::Signal< void(bool, WeakDitherTypePtr)> DitherTypeSelectChanged
 
PBD::Signal< void(bool, WeakDitherTypePtr)> DitherTypeCompatibleChanged
 
- Protected Types inherited from ARDOUR::ExportFormatBase
typedef std::set< SampleFormatSampleFormatSet
 
typedef std::set< EndiannessEndianSet
 
typedef std::set< SampleRateSampleRateSet
 
typedef std::set< FormatIdFormatSet
 
typedef std::set< QualityQualitySet
 
- Protected Member Functions inherited from ARDOUR::ExportFormat
void add_sample_rate (SampleRate rate)
 
void add_endianness (Endianness endianness)
 
void set_format_id (FormatId id)
 
void set_quality (Quality value)
 
- Protected Member Functions inherited from ARDOUR::ExportFormatBase::SelectableCompatible
void set_name (std::string name)
 
- Protected Attributes inherited from ARDOUR::ExportFormatBase
SampleFormatSet sample_formats
 
EndianSet endiannesses
 
SampleRateSet sample_rates
 
FormatSet format_ids
 
QualitySet qualities
 
- Protected Attributes inherited from ARDOUR::HasSampleFormat
DitherTypeList dither_type_states
 
SampleFormatList sample_format_states
 
- Protected Attributes inherited from ARDOUR::HasCodecQuality
CodecQualityList _codec_qualties
 

Detailed Description

Definition at line 383 of file export_formats.h.

Constructor & Destructor Documentation

◆ ExportFormatMPEG()

ARDOUR::ExportFormatMPEG::ExportFormatMPEG ( std::string const &  name,
std::string const &  ext 
)

◆ ~ExportFormatMPEG()

ARDOUR::ExportFormatMPEG::~ExportFormatMPEG ( )
inline

Definition at line 387 of file export_formats.h.

Member Function Documentation

◆ default_codec_quality()

int ARDOUR::ExportFormatMPEG::default_codec_quality ( ) const
inlinevirtual

Implements ARDOUR::HasCodecQuality.

Definition at line 399 of file export_formats.h.

◆ default_sample_format()

SampleFormat ARDOUR::ExportFormatMPEG::default_sample_format ( ) const
inlinevirtual

Reimplemented from ARDOUR::ExportFormat.

Definition at line 395 of file export_formats.h.

◆ get_type()

Type ARDOUR::ExportFormatMPEG::get_type ( ) const
inlinevirtual

Implements ARDOUR::ExportFormat.

Definition at line 391 of file export_formats.h.

◆ set_compatibility_state()

bool ARDOUR::ExportFormatMPEG::set_compatibility_state ( ExportFormatCompatibility const &  compatibility)
virtual

Implements ARDOUR::ExportFormat.

◆ supports_tagging()

virtual bool ARDOUR::ExportFormatMPEG::supports_tagging ( ) const
inlinevirtual

Reimplemented from ARDOUR::ExportFormat.

Definition at line 403 of file export_formats.h.


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