Audacity 3.2.0
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ExportFFmpegOPUSOptions Class Referencefinal

Options dialog for FFmpeg exporting of OPUS format. More...

#include <ExportFFmpegDialogs.h>

Inheritance diagram for ExportFFmpegOPUSOptions:
[legend]
Collaboration diagram for ExportFFmpegOPUSOptions:
[legend]

Public Member Functions

 ExportFFmpegOPUSOptions (wxWindow *parent, int format)
 
 ~ExportFFmpegOPUSOptions ()
 
void PopulateOrExchange (ShuttleGui &S)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Static Public Attributes

static const int iOPUSSampleRates []
 

Private Attributes

wxSlider * mBitRateSlider
 
int mBitRateFromSlider
 
wxChoice * mVbrChoice
 
int mVbrFromChoice
 
wxSlider * mComplexitySlider
 
int mComplexityFromSlider
 
wxChoice * mFramesizeChoice
 
int mFramesizeFromChoice
 
wxChoice * mApplicationChoice
 
int mApplicationFromChoice
 
wxChoice * mCuttoffChoice
 
int mCutoffFromChoice
 

Detailed Description

Options dialog for FFmpeg exporting of OPUS format.

Definition at line 121 of file ExportFFmpegDialogs.h.

Constructor & Destructor Documentation

◆ ExportFFmpegOPUSOptions()

ExportFFmpegOPUSOptions::ExportFFmpegOPUSOptions ( wxWindow *  parent,
int  format 
)

Definition at line 577 of file ExportFFmpegDialogs.cpp.

578: wxPanelWrapper(parent, wxID_ANY)
579{
582
584}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:48
#define S(N)
Definition: ToChars.cpp:64
bool TransferDataToWindow() override
void PopulateOrExchange(ShuttleGui &S)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:628

References eIsCreatingFromPrefs, PopulateOrExchange(), S, and TransferDataToWindow().

Here is the call graph for this function:

◆ ~ExportFFmpegOPUSOptions()

ExportFFmpegOPUSOptions::~ExportFFmpegOPUSOptions ( )

Definition at line 586 of file ExportFFmpegDialogs.cpp.

587{
589}
bool TransferDataFromWindow() override

References TransferDataFromWindow().

Here is the call graph for this function:

Member Function Documentation

◆ PopulateOrExchange()

void ExportFFmpegOPUSOptions::PopulateOrExchange ( ShuttleGui S)

Definition at line 593 of file ExportFFmpegDialogs.cpp.

594{
595 S.SetSizerProportion(1);
596 S.SetBorder(4);
597 S.StartVerticalLay();
598 {
599 S.StartHorizontalLay(wxCENTER);
600 {
601 S.StartMultiColumn(2, wxCENTER);
602 {
603 S.StartMultiColumn(2, wxCENTER);
604 {
605 S.TieChoice(
606 XXO("Bit Rate:"),
608
609 S.TieChoice(
610 XXO("Compression"),
612
613 S.TieChoice(
614 XXO("Frame Duration:"),
616 }
617 S.EndMultiColumn();
618
619 S.StartMultiColumn(2, wxCENTER);
620 {
621 S.TieChoice(
622 XXO("Vbr Mode:"),
624
625 S.TieChoice(
626 XXO("Application:"),
628
629 S.TieChoice(
630 XXO("Cutoff:"),
631 OPUSCutoff);
632
633 }
634 S.EndMultiColumn();
635 }
636 S.EndMultiColumn();
637 }
638 S.EndHorizontalLay();
639 }
640 S.EndVerticalLay();
641}
#define XXO(s)
Definition: Internat.h:44
ChoiceSetting OPUSBitrate
Bit Rates supported by OPUS encoder. Setting bit rate to other values will not result in different fi...

References anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSApplication, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSBitrate, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSCompression, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSCutoff, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSFrameDuration, anonymous_namespace{ExportFFmpegDialogs.cpp}::OPUSVbrMode, S, and XXO.

Referenced by ExportFFmpegOPUSOptions(), and TransferDataFromWindow().

Here is the caller graph for this function:

◆ TransferDataFromWindow()

bool ExportFFmpegOPUSOptions::TransferDataFromWindow ( )
override

Definition at line 652 of file ExportFFmpegDialogs.cpp.

653{
656
657 gPrefs->Flush();
658
659 return true;
660}
FileConfig * gPrefs
Definition: Prefs.cpp:71
@ eIsSavingToPrefs
Definition: ShuttleGui.h:49
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:143

References eIsSavingToPrefs, FileConfig::Flush(), gPrefs, PopulateOrExchange(), and S.

Referenced by ~ExportFFmpegOPUSOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransferDataToWindow()

bool ExportFFmpegOPUSOptions::TransferDataToWindow ( )
override

Definition at line 645 of file ExportFFmpegDialogs.cpp.

646{
647 return true;
648}

Referenced by ExportFFmpegOPUSOptions().

Here is the caller graph for this function:

Member Data Documentation

◆ iOPUSSampleRates

const int ExportFFmpegOPUSOptions::iOPUSSampleRates[]
static

Definition at line 132 of file ExportFFmpegDialogs.h.

◆ mApplicationChoice

wxChoice* ExportFFmpegOPUSOptions::mApplicationChoice
private

Definition at line 148 of file ExportFFmpegDialogs.h.

◆ mApplicationFromChoice

int ExportFFmpegOPUSOptions::mApplicationFromChoice
private

Definition at line 149 of file ExportFFmpegDialogs.h.

◆ mBitRateFromSlider

int ExportFFmpegOPUSOptions::mBitRateFromSlider
private

Definition at line 137 of file ExportFFmpegDialogs.h.

◆ mBitRateSlider

wxSlider* ExportFFmpegOPUSOptions::mBitRateSlider
private

Definition at line 136 of file ExportFFmpegDialogs.h.

◆ mComplexityFromSlider

int ExportFFmpegOPUSOptions::mComplexityFromSlider
private

Definition at line 143 of file ExportFFmpegDialogs.h.

◆ mComplexitySlider

wxSlider* ExportFFmpegOPUSOptions::mComplexitySlider
private

Definition at line 142 of file ExportFFmpegDialogs.h.

◆ mCutoffFromChoice

int ExportFFmpegOPUSOptions::mCutoffFromChoice
private

Definition at line 152 of file ExportFFmpegDialogs.h.

◆ mCuttoffChoice

wxChoice* ExportFFmpegOPUSOptions::mCuttoffChoice
private

Definition at line 151 of file ExportFFmpegDialogs.h.

◆ mFramesizeChoice

wxChoice* ExportFFmpegOPUSOptions::mFramesizeChoice
private

Definition at line 145 of file ExportFFmpegDialogs.h.

◆ mFramesizeFromChoice

int ExportFFmpegOPUSOptions::mFramesizeFromChoice
private

Definition at line 146 of file ExportFFmpegDialogs.h.

◆ mVbrChoice

wxChoice* ExportFFmpegOPUSOptions::mVbrChoice
private

Definition at line 139 of file ExportFFmpegDialogs.h.

◆ mVbrFromChoice

int ExportFFmpegOPUSOptions::mVbrFromChoice
private

Definition at line 140 of file ExportFFmpegDialogs.h.


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