QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlMovieSettings Class Reference

Description of the global settings of the application. More...

Inheritance diagram for QtlMovieSettings:
QtlSettings QtlGeometrySettingsInterface

Public Types

enum  AudioNormalizeMode {
  Compress,
  AlignPeak,
  Clip
}
 Define how to normalize the audio when the input dymanic range is too large. More...
 

Public Member Functions

 QtlMovieSettings (QtlLogger *log, QObject *parent=0)
 Constructor. More...
 
QtlMovieDeviceProfile android () const
 Get the selected model of Android device. More...
 
QStringList audienceLanguages () const
 Get the list of language codes for the intended audience. More...
 
int aviVideoBitrate (int width, int height) const
 Compute the video bitrate for AVI. More...
 
QString defaultOutputDir (const QString &outputType, bool force=false) const
 Get the default output directory for a given output type. More...
 
int dvdVideoHeight () const
 Get the video height of created DVD. More...
 
int dvdVideoWidth () const
 Get the video width of created DVD. More...
 
QString initialInputDir () const
 Get the initial input directory. More...
 
QtlMovieDeviceProfile iPad () const
 Get the selected model of iPad. More...
 
QtlMovieDeviceProfile iPhone () const
 Get the selected model of iPhone. More...
 
QtlLoggerlog () const
 Get the log. More...
 
void reportMissingTools () const
 Report missing media tools in the log. More...
 
void setAudienceLanguages (const QStringList &audienceLanguages)
 Set the list of language codes for the intended audience. More...
 
void setDefaultOutputDir (const QString &outputType, const QString &defaultOutDir)
 Set the default output directory for a given output type. More...
 
void setInitialInputDir (const QString &initialInputDir)
 Set the initial input directory. More...
 
- Public Member Functions inherited from QtlSettings
 QtlSettings (const QString &organization, const QString &application, QObject *parent=0)
 Constructor. More...
 
virtual void restoreGeometry (QWidget *widget) Q_DECL_OVERRIDE
 Restore the geometry of a widget. More...
 
template<class WIDGET >
void restoreState (WIDGET *widget)
 Restore the "state" of a widget, for widget classes implementing save/restore state. More...
 
virtual void saveGeometry (const QWidget *widget) Q_DECL_OVERRIDE
 Save the geometry of a widget. More...
 
template<class WIDGET >
void saveState (const WIDGET *widget)
 Save the "state" of a widget, for widget classes implementing save/restore state. More...
 
void sync ()
 Make sure that all settings are properly saved on disk immediately. More...
 

Static Private Member Functions

static void normalize (QStringList &list)
 "Normalize" a string list: lower case, sorted. More...
 

Private Attributes

QtlMovieExecFile_ccextractorDefault
 CCExtractor default executable description. More...
 
QtlMovieExecFile_ccextractorExplicit
 CCExtractor explicit executable description. More...
 
QtlMovieExecFile_dvdauthorDefault
 DvdAuthor default executable description. More...
 
QtlMovieExecFile_dvdauthorExplicit
 DvdAuthor explicit executable description. More...
 
QtlMovieExecFile_ffmpegDefault
 FFmpeg default executable description. More...
 
QtlMovieExecFile_ffmpegExplicit
 FFmpeg explicit executable description. More...
 
QtlMovieExecFile_ffprobeDefault
 FFprobe default executable description. More...
 
QtlMovieExecFile_ffprobeExplicit
 FFprobe explicit executable description. More...
 
QtlMovieExecFile_growisofsDefault
 Growisofs default executable description. More...
 
QtlMovieExecFile_growisofsExplicit
 Growisofs explicit executable description. More...
 
QtlLogger_log
 Where to log errors. More...
 
QtlMovieExecFile_mkisofsDefault
 Mkisofs default executable description. More...
 
QtlMovieExecFile_mkisofsExplicit
 Mkisofs explicit executable description. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QtlSettings
bool boolValue (const QString &key, bool defaultValue) const
 Get a boolean value from the settings. More...
 
int intValue (const QString &key, int defaultValue) const
 Get an integer value from the settings. More...
 
- Protected Attributes inherited from QtlSettings
QSettings _settings
 Settings in Qt format, accessible to subclasses. More...
 

Detailed Description

Description of the global settings of the application.

Refer to the QtlMovie user guide for the definition of each setting.

Member Enumeration Documentation

◆ AudioNormalizeMode

Define how to normalize the audio when the input dymanic range is too large.

Enumerator
Compress 

Align to target mean level, compress the dynamic range.

AlignPeak 

Align to target peak level, mean level will be lower than the target value.

Clip 

Align to target mean level, clip high audio,.

Constructor & Destructor Documentation

◆ QtlMovieSettings()

QtlMovieSettings::QtlMovieSettings ( QtlLogger log,
QObject *  parent = 0 
)
explicit

Constructor.

Parameters
[in]logWhere to log errors.
[in]parentOptional parent widget.

Member Function Documentation

◆ log()

QtlLogger* QtlMovieSettings::log ( ) const
inline

Get the log.

Returns
The log.

◆ reportMissingTools()

void QtlMovieSettings::reportMissingTools ( ) const

Report missing media tools in the log.

◆ initialInputDir()

QString QtlMovieSettings::initialInputDir ( ) const

Get the initial input directory.

Returns
Initial input directory. Never empty (the default is user's home directory).

◆ setInitialInputDir()

void QtlMovieSettings::setInitialInputDir ( const QString &  initialInputDir)

Set the initial input directory.

Parameters
[in]initialInputDirSet the initial input directory. Specify an empty string to reset to the default.

◆ defaultOutputDir()

QString QtlMovieSettings::defaultOutputDir ( const QString &  outputType,
bool  force = false 
) const

Get the default output directory for a given output type.

Parameters
[in]outputTypeOutput type.
[in]forceWhen true, return the stored directory value, even if defaultOutputDirIsInput() is true.
Returns
The default output directory for the specified output type. If empty, use the same directory as the input file. Note that an empty string is always returned when defaultOutputDirIsInput() is true and force is false.

◆ setDefaultOutputDir()

void QtlMovieSettings::setDefaultOutputDir ( const QString &  outputType,
const QString &  defaultOutDir 
)

Set the default output directory for a given output type.

Parameters
[in]outputTypeOutput type.
[in]defaultOutDirDefault output directory for the specified output type. If empty, the same directory as the input file will be used for the specified output type.

◆ audienceLanguages()

QStringList QtlMovieSettings::audienceLanguages ( ) const

Get the list of language codes for the intended audience.

Returns
A list of language codes for the intended audience.

◆ setAudienceLanguages()

void QtlMovieSettings::setAudienceLanguages ( const QStringList &  audienceLanguages)

Set the list of language codes for the intended audience.

Parameters
[in]audienceLanguagesList of language codes for the intended audience.

◆ dvdVideoWidth()

int QtlMovieSettings::dvdVideoWidth ( ) const

Get the video width of created DVD.

Returns
The video width of created DVD.

◆ dvdVideoHeight()

int QtlMovieSettings::dvdVideoHeight ( ) const

Get the video height of created DVD.

Returns
The video height of created DVD.

◆ iPad()

QtlMovieDeviceProfile QtlMovieSettings::iPad ( ) const

Get the selected model of iPad.

Returns
The selected model of iPad.

◆ iPhone()

QtlMovieDeviceProfile QtlMovieSettings::iPhone ( ) const

Get the selected model of iPhone.

Returns
The selected model of iPhone.

◆ android()

QtlMovieDeviceProfile QtlMovieSettings::android ( ) const

Get the selected model of Android device.

Returns
The selected model of Android device.

◆ aviVideoBitrate()

int QtlMovieSettings::aviVideoBitrate ( int  width,
int  height 
) const
inline

Compute the video bitrate for AVI.

Parameters
[in]widthActual video width in pixels.
[in]heightActual video height in pixels.
Returns
The computed bitrate in bits per second.

◆ normalize()

void QtlMovieSettings::normalize ( QStringList &  list)
staticprivate

"Normalize" a string list: lower case, sorted.

Parameters
listList of strings to normalize.

Member Data Documentation

◆ _log

QtlLogger* QtlMovieSettings::_log
private

Where to log errors.

◆ _ffmpegDefault

QtlMovieExecFile* QtlMovieSettings::_ffmpegDefault
private

FFmpeg default executable description.

◆ _ffmpegExplicit

QtlMovieExecFile* QtlMovieSettings::_ffmpegExplicit
private

FFmpeg explicit executable description.

◆ _ffprobeDefault

QtlMovieExecFile* QtlMovieSettings::_ffprobeDefault
private

FFprobe default executable description.

◆ _ffprobeExplicit

QtlMovieExecFile* QtlMovieSettings::_ffprobeExplicit
private

FFprobe explicit executable description.

◆ _dvdauthorDefault

QtlMovieExecFile* QtlMovieSettings::_dvdauthorDefault
private

DvdAuthor default executable description.

◆ _dvdauthorExplicit

QtlMovieExecFile* QtlMovieSettings::_dvdauthorExplicit
private

DvdAuthor explicit executable description.

◆ _mkisofsDefault

QtlMovieExecFile* QtlMovieSettings::_mkisofsDefault
private

Mkisofs default executable description.

◆ _mkisofsExplicit

QtlMovieExecFile* QtlMovieSettings::_mkisofsExplicit
private

Mkisofs explicit executable description.

◆ _growisofsDefault

QtlMovieExecFile* QtlMovieSettings::_growisofsDefault
private

Growisofs default executable description.

◆ _growisofsExplicit

QtlMovieExecFile* QtlMovieSettings::_growisofsExplicit
private

Growisofs explicit executable description.

◆ _ccextractorDefault

QtlMovieExecFile* QtlMovieSettings::_ccextractorDefault
private

CCExtractor default executable description.

◆ _ccextractorExplicit

QtlMovieExecFile* QtlMovieSettings::_ccextractorExplicit
private

CCExtractor explicit executable description.


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