lame.blade
Class BE_CONFIG.STRUCT_FORMAT.STRUCT_LHV1

java.lang.Object
  extended by lame.blade.BE_CONFIG.STRUCT_FORMAT.STRUCT_LHV1
Enclosing class:
BE_CONFIG.STRUCT_FORMAT

public static class BE_CONFIG.STRUCT_FORMAT.STRUCT_LHV1
extends java.lang.Object

The STRUCT_LHV1 class is the Java symmetric representation of the structure data type of the LHV1 field of the STRUCT_FORMAT structure.

                struct
                {
                // STRUCTURE INFORMATION
                DWORD                   dwStructVersion;        
                DWORD                   dwStructSize;

                // BASIC ENCODER SETTINGS
                DWORD                   dwSampleRate;           // SAMPLERATE OF INPUT FILE
                DWORD                   dwReSampleRate;         // DOWNSAMPLERATE, 0=ENCODER DECIDES  
                LONG                    nMode;                  // BE_MP3_MODE_STEREO, BE_MP3_MODE_DUALCHANNEL, BE_MP3_MODE_MONO
                DWORD                   dwBitrate;              // CBR bitrate, VBR min bitrate
                DWORD                   dwMaxBitrate;           // CBR ignored, VBR Max bitrate
                LONG                    nPreset;                // Quality preset, use one of the settings of the LAME_QUALITY_PRESET enum
                DWORD                   dwMpegVersion;          // FUTURE USE, MPEG-1 OR MPEG-2
                DWORD                   dwPsyModel;             // FUTURE USE, SET TO 0
                DWORD                   dwEmphasis;             // FUTURE USE, SET TO 0

                // BIT STREAM SETTINGS
                BOOL                    bPrivate;               // Set Private Bit (TRUE/FALSE)
                BOOL                    bCRC;                   // Insert CRC (TRUE/FALSE)
                BOOL                    bCopyright;             // Set Copyright Bit (TRUE/FALSE)
                BOOL                    bOriginal;              // Set Original Bit (TRUE/FALSE)

                // VBR STUFF
                BOOL                    bWriteVBRHeader;        // WRITE XING VBR HEADER (TRUE/FALSE)
                BOOL                    bEnableVBR;             // USE VBR ENCODING (TRUE/FALSE)
                INT                     nVBRQuality;            // VBR QUALITY 0..9
                DWORD                   dwVbrAbr_bps;           // Use ABR in stead of nVBRQuality
                VBRMETHOD               nVbrMethod;
                BOOL                    bNoRes;                 // Disable Bit resorvoir (TRUE/FALSE)

                // MISC SETTINGS
                BOOL                    bStrictIso;             // Use strict ISO encoding rules (TRUE/FALSE)
                WORD                    nQuality;               // Quality Setting, HIGH BYTE should be NOT LOW byte, otherwhise quality=5

                // FUTURE USE, SET TO 0, align strucutre to 331 bytes
                BYTE                    btReserved[255-4*sizeof(DWORD) - sizeof( WORD )];

                }         
         

See Also:
BE_CONFIG.STRUCT_FORMAT

Field Summary
protected  int bCopyright
           
protected  int bCRC
           
protected  int bEnableVBR
           
protected  int bNoRes
           
protected  int bOriginal
           
protected  int bPrivate
           
protected  int bStrictIso
           
protected  byte[] btReserved
           
protected  int bWriteVBRHeader
           
protected  int dwBitrate
           
protected  int dwEmphasis
           
protected  int dwMaxBitrate
           
protected  int dwMpegVersion
           
protected  int dwPsyModel
           
protected  int dwReSampleRate
           
protected  int dwSampleRate
           
protected  int dwStructSize
           
protected  int dwStructVersion
           
protected  int dwVbrAbr_bps
           
protected  int nMode
           
protected  int nPreset
           
protected  short nQuality
           
protected  int nVbrMethod
           
protected  int nVBRQuality
           
 
Constructor Summary
BE_CONFIG.STRUCT_FORMAT.STRUCT_LHV1()
           
 
Method Summary
 byte[] getBtReserved()
          Returns the current value of btReserved attribute.
 int getDwBitrate()
          Returns the current value of dwBitrate attribute.
 int getDwEmphasis()
          Returns the current value of dwEmphasis attribute.
 int getDwMaxBitrate()
          Returns the current value of dwMaxBitrate attribute.
 int getDwMpegVersion()
          Returns the current value of dwMpegVersion attribute.
 int getDwPsyModel()
          Returns the current value of dwPsyModel attribute.
 int getDwReSampleRate()
          Returns the current value of dwReSampleRate attribute.
 int getDwSampleRate()
          Returns the current value of dwSampleRate attribute.
 int getDwStructSize()
          Returns the current value of dwStructSize attribute.
 int getDwStructVersion()
          Returns the current value of dwStructVersion attribute.
 int getDwVbrAbr_bps()
          Returns the current value of dwVbrAbr_bps attribute.
 int getNMode()
          Returns the current value of nMode attribute.
 int getNPreset()
          Returns the current value of nPreset attribute.
 short getNQuality()
          Returns the current value of nQuality attribute.
 int getNVbrMethod()
          Returns the current value of nVbrMethod attribute.
 int getNVBRQuality()
          Returns the current value of nVBRQuality attribute.
 boolean isBCopyright()
          Returns the current value of bCopyright attribute.
 boolean isBCRC()
          Returns the current value of bCRC attribute.
 boolean isBEnableVBR()
          Returns the current value of bEnableVBR attribute.
 boolean isBNoRes()
          Returns the current value of bNoRes attribute.
 boolean isBOriginal()
          Returns the current value of bOriginal attribute.
 boolean isBPrivate()
          Returns the current value of bPrivate attribute.
 boolean isBStrictIso()
          Returns the current value of bStrictIso attribute.
 boolean isBWriteVBRHeader()
          Returns the current value of bWriteVBRHeader attribute.
 void setBCopyright(boolean bCopyright)
          Sets the value of the bCopyright attribute.
 void setBCRC(boolean bCRC)
          Sets the value of the bCRC attribute.
 void setBEnableVBR(boolean bEnableVBR)
          Sets the value of the bEnableVBR attribute.
 void setBNoRes(boolean bNoRes)
          Sets the value of the bNoRes attribute.
 void setBOriginal(boolean bOriginal)
          Sets the value of the bOriginal attribute.
 void setBPrivate(boolean bPrivate)
          Sets the value of the bPrivate attribute.
 void setBStrictIso(boolean bStrictIso)
          Sets the value of the bStrictIso attribute.
 void setBtReserved(byte[] btReserved)
          Sets the value of the btReserved attribute.
 void setBWriteVBRHeader(boolean bWriteVBRHeader)
          Sets the value of the bWriteVBRHeader attribute.
 void setDwBitrate(int dwBitrate)
          Sets the value of the dwBitrate attribute.
 void setDwEmphasis(int dwEmphasis)
          Sets the value of the dwEmphasis attribute.
 void setDwMaxBitrate(int dwMaxBitrate)
          Sets the value of the dwMaxBitrate attribute.
 void setDwMpegVersion(int dwMpegVersion)
          Sets the value of the dwMpegVersion attribute.
 void setDwPsyModel(int dwPsyModel)
          Sets the value of the dwPsyModel attribute.
 void setDwReSampleRate(int dwReSampleRate)
          Sets the value of the dwReSampleRate attribute.
 void setDwSampleRate(int dwSampleRate)
          Sets the value of the dwSampleRate attribute.
 void setDwStructSize(int dwStructSize)
          Sets the value of the dwStructSize attribute.
 void setDwStructVersion(int dwStructVersion)
          Sets the value of the dwStructVersion attribute.
 void setDwVbrAbr_bps(int dwVbrAbr_bps)
          Sets the value of the dwVbrAbr_bps attribute.
 void setNMode(int nMode)
          Sets the value of the nMode attribute.
 void setNPreset(int nPreset)
          Sets the value of the nPreset attribute.
 void setNQuality(short nQuality)
          Sets the value of the nQuality attribute.
 void setNVbrMethod(int nVbrMethod)
          Sets the value of the nVbrMethod attribute.
 void setNVBRQuality(int nVBRQuality)
          Sets the value of the nVBRQuality attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dwStructVersion

protected int dwStructVersion

dwStructSize

protected int dwStructSize

dwSampleRate

protected int dwSampleRate

dwReSampleRate

protected int dwReSampleRate

nMode

protected int nMode

dwBitrate

protected int dwBitrate

dwMaxBitrate

protected int dwMaxBitrate

nPreset

protected int nPreset

dwMpegVersion

protected int dwMpegVersion

dwPsyModel

protected int dwPsyModel

dwEmphasis

protected int dwEmphasis

bPrivate

protected int bPrivate

bCRC

protected int bCRC

bCopyright

protected int bCopyright

bOriginal

protected int bOriginal

bWriteVBRHeader

protected int bWriteVBRHeader

bEnableVBR

protected int bEnableVBR

nVBRQuality

protected int nVBRQuality

dwVbrAbr_bps

protected int dwVbrAbr_bps

nVbrMethod

protected int nVbrMethod

bNoRes

protected int bNoRes

bStrictIso

protected int bStrictIso

nQuality

protected short nQuality

btReserved

protected byte[] btReserved
Constructor Detail

BE_CONFIG.STRUCT_FORMAT.STRUCT_LHV1

public BE_CONFIG.STRUCT_FORMAT.STRUCT_LHV1()
Method Detail

getDwStructVersion

public int getDwStructVersion()
Returns the current value of dwStructVersion attribute.

Returns:
the value of dwStructVersion

setDwStructVersion

public void setDwStructVersion(int dwStructVersion)
Sets the value of the dwStructVersion attribute.

Parameters:
dwStructVersion - the new value

getDwStructSize

public int getDwStructSize()
Returns the current value of dwStructSize attribute.

Returns:
the value of dwStructSize

setDwStructSize

public void setDwStructSize(int dwStructSize)
Sets the value of the dwStructSize attribute.

Parameters:
dwStructSize - the new value

getDwSampleRate

public int getDwSampleRate()
Returns the current value of dwSampleRate attribute.

Returns:
the value of dwSampleRate

setDwSampleRate

public void setDwSampleRate(int dwSampleRate)
Sets the value of the dwSampleRate attribute.

Parameters:
dwSampleRate - the new value

getDwReSampleRate

public int getDwReSampleRate()
Returns the current value of dwReSampleRate attribute.

Returns:
the value of dwReSampleRate

setDwReSampleRate

public void setDwReSampleRate(int dwReSampleRate)
Sets the value of the dwReSampleRate attribute.

Parameters:
dwReSampleRate - the new value

getNMode

public int getNMode()
Returns the current value of nMode attribute.

Returns:
the value of nMode

setNMode

public void setNMode(int nMode)
Sets the value of the nMode attribute.

Parameters:
nMode - the new value

getDwBitrate

public int getDwBitrate()
Returns the current value of dwBitrate attribute.

Returns:
the value of dwBitrate

setDwBitrate

public void setDwBitrate(int dwBitrate)
Sets the value of the dwBitrate attribute.

Parameters:
dwBitrate - the new value

getDwMaxBitrate

public int getDwMaxBitrate()
Returns the current value of dwMaxBitrate attribute.

Returns:
the value of dwMaxBitrate

setDwMaxBitrate

public void setDwMaxBitrate(int dwMaxBitrate)
Sets the value of the dwMaxBitrate attribute.

Parameters:
dwMaxBitrate - the new value

getNPreset

public int getNPreset()
Returns the current value of nPreset attribute.

Returns:
the value of nPreset

setNPreset

public void setNPreset(int nPreset)
Sets the value of the nPreset attribute.

Parameters:
nPreset - the new value

getDwMpegVersion

public int getDwMpegVersion()
Returns the current value of dwMpegVersion attribute.

Returns:
the value of dwMpegVersion

setDwMpegVersion

public void setDwMpegVersion(int dwMpegVersion)
Sets the value of the dwMpegVersion attribute.

Parameters:
dwMpegVersion - the new value

getDwPsyModel

public int getDwPsyModel()
Returns the current value of dwPsyModel attribute.

Returns:
the value of dwPsyModel

setDwPsyModel

public void setDwPsyModel(int dwPsyModel)
Sets the value of the dwPsyModel attribute.

Parameters:
dwPsyModel - the new value

getDwEmphasis

public int getDwEmphasis()
Returns the current value of dwEmphasis attribute.

Returns:
the value of dwEmphasis

setDwEmphasis

public void setDwEmphasis(int dwEmphasis)
Sets the value of the dwEmphasis attribute.

Parameters:
dwEmphasis - the new value

isBPrivate

public boolean isBPrivate()
Returns the current value of bPrivate attribute.

Returns:
the value of bPrivate

setBPrivate

public void setBPrivate(boolean bPrivate)
Sets the value of the bPrivate attribute.

Parameters:
bPrivate - the new value

isBCRC

public boolean isBCRC()
Returns the current value of bCRC attribute.

Returns:
the value of bCRC

setBCRC

public void setBCRC(boolean bCRC)
Sets the value of the bCRC attribute.

Parameters:
bCRC - the new value

isBCopyright

public boolean isBCopyright()
Returns the current value of bCopyright attribute.

Returns:
the value of bCopyright

setBCopyright

public void setBCopyright(boolean bCopyright)
Sets the value of the bCopyright attribute.

Parameters:
bCopyright - the new value

isBOriginal

public boolean isBOriginal()
Returns the current value of bOriginal attribute.

Returns:
the value of bOriginal

setBOriginal

public void setBOriginal(boolean bOriginal)
Sets the value of the bOriginal attribute.

Parameters:
bOriginal - the new value

isBWriteVBRHeader

public boolean isBWriteVBRHeader()
Returns the current value of bWriteVBRHeader attribute.

Returns:
the value of bWriteVBRHeader

setBWriteVBRHeader

public void setBWriteVBRHeader(boolean bWriteVBRHeader)
Sets the value of the bWriteVBRHeader attribute.

Parameters:
bWriteVBRHeader - the new value

isBEnableVBR

public boolean isBEnableVBR()
Returns the current value of bEnableVBR attribute.

Returns:
the value of bEnableVBR

setBEnableVBR

public void setBEnableVBR(boolean bEnableVBR)
Sets the value of the bEnableVBR attribute.

Parameters:
bEnableVBR - the new value

getNVBRQuality

public int getNVBRQuality()
Returns the current value of nVBRQuality attribute.

Returns:
the value of nVBRQuality

setNVBRQuality

public void setNVBRQuality(int nVBRQuality)
Sets the value of the nVBRQuality attribute.

Parameters:
nVBRQuality - the new value

getDwVbrAbr_bps

public int getDwVbrAbr_bps()
Returns the current value of dwVbrAbr_bps attribute.

Returns:
the value of dwVbrAbr_bps

setDwVbrAbr_bps

public void setDwVbrAbr_bps(int dwVbrAbr_bps)
Sets the value of the dwVbrAbr_bps attribute.

Parameters:
dwVbrAbr_bps - the new value

getNVbrMethod

public int getNVbrMethod()
Returns the current value of nVbrMethod attribute.

Returns:
the value of nVbrMethod

setNVbrMethod

public void setNVbrMethod(int nVbrMethod)
Sets the value of the nVbrMethod attribute.

Parameters:
nVbrMethod - the new value

isBNoRes

public boolean isBNoRes()
Returns the current value of bNoRes attribute.

Returns:
the value of bNoRes

setBNoRes

public void setBNoRes(boolean bNoRes)
Sets the value of the bNoRes attribute.

Parameters:
bNoRes - the new value

isBStrictIso

public boolean isBStrictIso()
Returns the current value of bStrictIso attribute.

Returns:
the value of bStrictIso

setBStrictIso

public void setBStrictIso(boolean bStrictIso)
Sets the value of the bStrictIso attribute.

Parameters:
bStrictIso - the new value

getNQuality

public short getNQuality()
Returns the current value of nQuality attribute.

Returns:
the value of nQuality

setNQuality

public void setNQuality(short nQuality)
Sets the value of the nQuality attribute.

Parameters:
nQuality - the new value

getBtReserved

public byte[] getBtReserved()
Returns the current value of btReserved attribute.

Returns:
the value of btReserved

setBtReserved

public void setBtReserved(byte[] btReserved)
Sets the value of the btReserved attribute.

Parameters:
btReserved - the new value


Copyright © 2006-2008 Jose Maria Arranz. All Rights Reserved.