Audacity 3.2.0
|
Public Member Functions | |
FFmpegExportProcessor (std::shared_ptr< FFmpegFunctions > ffmpeg, int format) | |
bool | Initialize (AudacityProject &project, const Parameters ¶meters, const wxFileNameWrapper &filename, double t0, double t1, bool selectedOnly, double sampleRate, unsigned channels, MixerOptions::Downmix *mixerSpec, const Tags *tags) override |
Called before start processing. More... | |
ExportResult | Process (ExportProcessorDelegate &delegate) override |
Public Member Functions inherited from ExportProcessor | |
ExportProcessor (const ExportProcessor &)=delete | |
ExportProcessor & | operator= (const ExportProcessor &)=delete |
ExportProcessor ()=default | |
virtual | ~ExportProcessor () |
virtual bool | Initialize (AudacityProject &project, const Parameters ¶meters, const wxFileNameWrapper &filename, double t0, double t1, bool selectedOnly, double rate, unsigned channels, MixerOptions::Downmix *mixerSpec=nullptr, const Tags *tags=nullptr)=0 |
Called before start processing. More... | |
virtual ExportResult | Process (ExportProcessorDelegate &delegate)=0 |
Private Attributes | |
std::shared_ptr< FFmpegFunctions > | mFFmpeg |
struct { | |
int subformat | |
TranslatableString status | |
double t0 | |
double t1 | |
std::unique_ptr< Mixer > mixer | |
std::unique_ptr< FFmpegExporter > exporter | |
} | context |
Additional Inherited Members | |
Public Types inherited from ExportProcessor | |
using | Parameters = std::vector< std::tuple< ExportOptionID, ExportValue > > |
Definition at line 661 of file ExportFFmpeg.cpp.
FFmpegExportProcessor::FFmpegExportProcessor | ( | std::shared_ptr< FFmpegFunctions > | ffmpeg, |
int | format | ||
) |
Definition at line 1589 of file ExportFFmpeg.cpp.
|
overridevirtual |
Called before start processing.
project | Processor may access project data, take care to exclude any data race |
parameters | A format-dependent set of parameters used in exporting |
selectedOnly | Set to true if all tracks should be mixed, to false if only the selected tracks should be mixed and exported. |
tags | A Tags object that will over-ride the one in *project and be used to tag the file that is exported. @retern Implementations may simply return false without any error reporting. This is to temporarily preserve old behavior, which is to be removed in the nearest future. |
Implements ExportProcessor.
Definition at line 1595 of file ExportFFmpeg.cpp.
References _, AdjustFormatIndex(), context, FMT_LAST, FMT_OTHER, ExportFFmpegOptions::fmts, FFmpegFunctions::Load(), mFFmpeg, project, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, t0, t1, and XO().
|
overridevirtual |
Implements ExportProcessor.
Definition at line 1653 of file ExportFFmpeg.cpp.
References Cancelled, context, Error, ExportProcessorDelegate::SetStatusString(), Success, and ExportPluginHelpers::UpdateProgress().
struct { ... } FFmpegExportProcessor::context |
Referenced by FFmpegExportProcessor(), Initialize(), and Process().
std::unique_ptr<FFmpegExporter> FFmpegExportProcessor::exporter |
Definition at line 672 of file ExportFFmpeg.cpp.
|
private |
Definition at line 663 of file ExportFFmpeg.cpp.
Referenced by Initialize().
std::unique_ptr<Mixer> FFmpegExportProcessor::mixer |
Definition at line 671 of file ExportFFmpeg.cpp.
TranslatableString FFmpegExportProcessor::status |
Definition at line 668 of file ExportFFmpeg.cpp.
int FFmpegExportProcessor::subformat |
Definition at line 667 of file ExportFFmpeg.cpp.
Referenced by FFmpegExportProcessor().
double FFmpegExportProcessor::t0 |
Definition at line 669 of file ExportFFmpeg.cpp.
Referenced by Initialize().
double FFmpegExportProcessor::t1 |
Definition at line 670 of file ExportFFmpeg.cpp.
Referenced by Initialize().