Audacity 3.2.0
|
Controlling class for FFmpeg exporting. Creates the options dialog of the appropriate type, adds tags and invokes the export function. More...
Public Member Functions | |
ExportFFmpeg () | |
~ExportFFmpeg () override | |
std::unique_ptr< ExportOptionsEditor > | CreateOptionsEditor (int format, ExportOptionsEditor::Listener *listener) const override |
Creates format-dependent options editor, that is used to create a valid set of parameters to be used in exporting. More... | |
int | GetFormatCount () const override |
FormatInfo | GetFormatInfo (int index) const override |
Returns FormatInfo structure for given index if it's valid, or a default one. FormatInfo::format isn't guaranteed to be unique. More... | |
bool | CheckFileName (wxFileName &filename, int format=0) const override |
Callback, called from GetFilename. More... | |
std::unique_ptr< ExportProcessor > | CreateProcessor (int format) const override |
Public Member Functions inherited from ExportPlugin | |
ExportPlugin () | |
virtual | ~ExportPlugin () |
virtual int | GetFormatCount () const =0 |
virtual FormatInfo | GetFormatInfo (int index) const =0 |
Returns FormatInfo structure for given index if it's valid, or a default one. FormatInfo::format isn't guaranteed to be unique. More... | |
virtual std::unique_ptr< ExportOptionsEditor > | CreateOptionsEditor (int formatIndex, ExportOptionsEditor::Listener *listener) const =0 |
Creates format-dependent options editor, that is used to create a valid set of parameters to be used in exporting. More... | |
virtual std::vector< std::string > | GetMimeTypes (int formatIndex) const |
virtual bool | ParseConfig (int formatIndex, const rapidjson::Value &config, ExportProcessor::Parameters ¶meters) const |
Attempt to parse configuration JSON object and produce a suitable set of parameters. Configuration is format dependent. More... | |
virtual bool | CheckFileName (wxFileName &filename, int format=0) const |
virtual std::unique_ptr< ExportProcessor > | CreateProcessor (int format) const =0 |
Private Attributes | |
std::shared_ptr< FFmpegFunctions > | mFFmpeg |
std::vector< FormatInfo > | mFormatInfos |
Controlling class for FFmpeg exporting. Creates the options dialog of the appropriate type, adds tags and invokes the export function.
Definition at line 690 of file ExportFFmpeg.cpp.
ExportFFmpeg::ExportFFmpeg | ( | ) |
Definition at line 738 of file ExportFFmpeg.cpp.
References AV_CANMETA, ExposedFormat::canmetadata, ExposedFormat::codecid, ExposedFormat::compiledIn, ExposedFormat::description, anonymous_namespace{CloudProjectFileIOExtensions.cpp}::extension, FMT_LAST, FMT_M4A, FMT_OTHER, FMT_WMA2, ExportFFmpegOptions::fmts, FormatInfo::format, FFmpegFunctions::Load(), ExposedFormat::maxchannels, mFFmpeg, mFormatInfos, ExposedFormat::name, and wxT().
|
overridedefault |
|
overridevirtual |
Callback, called from GetFilename.
Reimplemented from ExportPlugin.
Definition at line 836 of file ExportFFmpeg.cpp.
References FindFFmpegLibs(), FFmpegFunctions::Load(), LoadFFmpeg(), and mFFmpeg.
|
overridevirtual |
Creates format-dependent options editor, that is used to create a valid set of parameters to be used in exporting.
listener | Option listener object that could be used by the editor to report on option changes. |
Implements ExportPlugin.
Definition at line 793 of file ExportFFmpeg.cpp.
References anonymous_namespace{ExportFFmpeg.cpp}::AACOptions, anonymous_namespace{ExportFFmpeg.cpp}::AC3Options, AdjustFormatIndex(), anonymous_namespace{ExportFFmpeg.cpp}::AMRNBOptions, FMT_AC3, FMT_AMRNB, FMT_M4A, FMT_OTHER, FMT_WMA2, anonymous_namespace{ExportPCM.cpp}::format, anonymous_namespace{ExportFFmpeg.cpp}::iAC3SampleRates, anonymous_namespace{ExportFFmpeg.cpp}::iWMASampleRates, anonymous_namespace{ExportOpus.cpp}::OPUSOptions, anonymous_namespace{ExportFFmpeg.cpp}::ToSampleRateList(), and anonymous_namespace{ExportFFmpeg.cpp}::WMAOptions.
|
overridevirtual |
format | Control which of the multiple formats this exporter is capable of exporting should be used. Used where a single export plug-in handles a number of related formats, but they have separate entries in the Format drop-down list box. For example, the options to export to "Other PCM", "AIFF 16 Bit" and "WAV 16 Bit" are all the same libsndfile export plug-in, but with subformat set to 0, 1, and 2 respectively. |
Implements ExportPlugin.
Definition at line 853 of file ExportFFmpeg.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, and mFFmpeg.
|
overridevirtual |
|
overridevirtual |
Returns FormatInfo structure for given index if it's valid, or a default one. FormatInfo::format isn't guaranteed to be unique.
index | Should not exceed the number of formats provided by GetFormatCount() |
Implements ExportPlugin.
Definition at line 829 of file ExportFFmpeg.cpp.
References FMT_OTHER, and mFormatInfos.
|
mutableprivate |
Definition at line 709 of file ExportFFmpeg.cpp.
Referenced by CheckFileName(), CreateProcessor(), and ExportFFmpeg().
|
private |
Definition at line 711 of file ExportFFmpeg.cpp.
Referenced by ExportFFmpeg(), GetFormatCount(), and GetFormatInfo().