Logo Search packages:      
Sourcecode: lame version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes

AEncodeProperties Class Reference

the AEncodeProperties class is responsible for handling all the encoding properties More...

#include <AEncodeProperties.h>

Collaboration diagram for AEncodeProperties:
Collaboration graph
[legend]

List of all members.

Public Types

enum  BRMode { BR_CBR, BR_VBR, BR_ABR }
 

A bitrate mode (CBR, VBR, ABR)


Public Member Functions

 AEncodeProperties (HMODULE hModule)
 default constructor
bool Config (const HINSTANCE hInstance, const HWND HwndParent)
 Get the number of possible presets.
bool DeleteConfig (const std::string &config_name)
 Delete the config name from the saved configs.
unsigned int GetAbrBitrateMax () const
 Get the max ABR bitrate possible.
unsigned int GetAbrBitrateMin () const
 Get the min ABR bitrate possible.
unsigned int GetAbrBitrateStep () const
 Get the step between ABR bitrates.
const bool GetAbrOutputMode () const
 Check wether the Encode process should allow Average Bitrate output.
const int GetBitrateLentgh () const
 Get the number of possible bitrates.
const int GetBitrateString (char *string, int string_size) const
 Get the current (VBR:min) bitrate in the form of a string.
const int GetBitrateString (char *string, int string_size, int a_bitrateID) const
 Get the (VBR:min) bitrate corresponding to the specified index in the form of a string.
const int GetBitrateValue (DWORD &bitrate, const DWORD MPEG_Version) const
 Get the current (VBR:min) bitrate for the specified MPEG version.
const unsigned int GetBitrateValue () const
 CBR : Get the bitrate to use / VBR : Get the minimum bitrate value.
const int GetBitrateValueMPEG1 (DWORD &bitrate) const
 Get the current (VBR:min) bitrate for MPEG I.
const int GetBitrateValueMPEG2 (DWORD &bitrate) const
 Get the current (VBR:min) bitrate for MPEG II.
const int GetChannelLentgh () const
 Get the number of possible channel mode.
const char * GetChannelModeString () const
 Get the current channel mode in the form of a string.
const char * GetChannelModeString (const int a_channelID) const
 Get the channel mode in the form of a string for the specified Channel mode index.
const unsigned int GetChannelModeValue () const
 Get the VBR attributes for a specified MPEG version.
const bool GetCopyrightMode () const
 Check wether the Encode process should use the Copyright bit.
const bool GetCRCMode () const
 Check wether the Encode process should use the CRC bit.
const bool GetForceChannelMode () const
 Check wether the Encode process should force the channel mode (stereo or mono resampling)
const bool GetNoBiResMode () const
 Check wether the Encode process shouldn't use the Bit Reservoir.
const bool GetOriginalMode () const
 Check wether the Encode process should use the Original bit.
const char * GetPresetModeString (const int a_presetID) const
 Get the current preset to use, see lame documentation/code for more info on the possible presets.
const bool GetPrivateMode () const
 Check wether the Encode process should use the Private bit.
const unsigned int GetResampleFreq () const
 Get the number of possible sampling frequencies.
const bool GetResampleMode () const
 Check wether the Encode process should resample before encoding.
const bool GetSmartOutputMode () const
 Check wether the Encode process should use the Smart Bitrate output.
double GetSmartRatio () const
 Get the max compression ratio allowed (1:15 default)
const BRMode GetVBRUseMode () const
 Check wether the Encode process should use the VBR mode.
const bool GetXingFrameMode () const
 Check wether the Encode process should use the Xing frame in the VBR mode.
bool HandleDialogCommand (const HWND parentWnd, const WPARAM wParam, const LPARAM lParam)
 Handle all the commands that occur in the Config dialog box.
bool InitConfigDlg (HWND hDialog)
 Init the config dialog box with the right texts and choices.
bool operator!= (const AEncodeProperties &the_instance) const
 check wether 2 instances are equal, ie have the same encoding parameters
void ParamsRestore (void)
 Load the parameters (current config in use)
void ParamsSave (void)
 Save the current parameters (current config in use)
bool RenameCurrentTo (const std::string &new_config_name)
 Rename the current config name to something else.
void SaveParams (const HWND hDialog)
 Handle the saving of parameters when something has changed in the config dialog box.
void SaveValuesToStringKey (const std::string &config_name)
 Save the current parameters to the specified config name.
void SelectSavedParams (const std::string config_name)
 Select the specified config name as the new default one.
void SetAbrOutputMode (const bool bMode)
 Set wether the Encode process should use the Average Bitrate output.
void SetCopyrightMode (const bool bMode)
 Set wether the Encode process should use the Copyright bit.
void SetCRCMode (const bool bMode)
 Set wether the Encode process should use the CRC bit.
void SetForceChannelMode (const bool bMode)
 Set wether the Encode process should force the channel mode (stereo or mono resampling)
void SetNoBiResMode (const bool bMode)
 Set wether the Encode process shouldn't use the Bit Reservoir.
void SetOriginalMode (const bool bMode)
 Set wether the Encode process should use the Original bit.
void SetPrivateMode (const bool bMode)
 Set wether the Encode process should use the Private bit.
void SetSmartOutputMode (const bool bMode)
 Set wether the Encode process should use the Smart Bitrate output.
void SetVBRUseMode (const BRMode mode)
 Set wether the Encode process should use the VBR mode.
void SetXingFrameMode (const bool bMode)
 Set wether the Encode process should use the Xing frame in the VBR mode.
void UpdateDlgFromSlides (HWND parent_window) const
 Update the slides value (on scroll)
bool UpdateDlgFromValue (HWND hDialog)
 Update the config dialog box from the instance parameters.
bool UpdateValueFromDlg (HWND hDialog)
 Update the instance parameters from the config dialog box.
virtual ~AEncodeProperties ()
 default destructor

Static Public Member Functions

static void DisplayVbrOptions (const HWND hDialog, const BRMode the_mode)
 Update the config dialog box with the BitRate mode.

Public Attributes

ADbg my_debug

Static Public Attributes

static ToolTipItem Tooltips [13]

Private Member Functions

void EnableAbrOptions (HWND hDialog, bool enable)
void GetValuesFromKey (const std::string &config_name, const TiXmlNode &parentNode)
void SaveValuesToElement (TiXmlElement *the_element) const
void SetAttributeBool (TiXmlElement *the_elt, const std::string &the_string, const bool the_value) const
void UpdateConfigs (const HWND HwndDlg)

Private Attributes

unsigned int AverageBitrate_Max
unsigned int AverageBitrate_Min
unsigned int AverageBitrate_Step
bool bAbrOutput
bool bCopyright
bool bCRC
bool bForceChannel
bool bNoBitRes
bool bOriginal
bool bPrivate
bool bResample
bool bSmartOutput
bool bXingFrame
BRMode mBRmode
std::string my_current_config
HMODULE my_hModule
std::string my_store_location
TiXmlDocument my_stored_data
int nChannelIndex
int nMaxBitrateIndex
int nMinBitrateIndex
int nPresetIndex
int nSamplingFreqIndex
double SmartRatioMax
int VbrQuality

Static Private Attributes

static const unsigned int the_Bitrates [18] = {320, 256, 224, 192, 160, 144, 128, 112, 96, 80, 64, 56, 48, 40, 32, 24, 16, 8 }
static const unsigned int the_ChannelModes [3] = { STEREO, JOINT_STEREO, DUAL_CHANNEL }
static const unsigned int the_MPEG1_Bitrates [14] = {320, 256, 224, 192, 160, 128, 112, 96, 80, 64, 56, 48, 40, 32 }
static const unsigned int the_MPEG2_Bitrates [14] = {160, 144, 128, 112, 96, 80, 64, 56, 48, 40, 32, 24, 16, 8}
static const unsigned int the_SamplingFreqs [9]

Detailed Description

the AEncodeProperties class is responsible for handling all the encoding properties

Definition at line 51 of file AEncodeProperties.h.


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

Generated by  Doxygen 1.6.0   Back to index