public class EncodingConfiguration
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
EncodingConfiguration.ChannelConfig
Defines the options for channel configuration to use.
|
static class |
EncodingConfiguration.SubframeType
Defines the various subframe types that may be used.
|
Modifier and Type | Field and Description |
---|---|
static EncodingConfiguration.ChannelConfig |
DEFAULT_CHANNEL_CONFIG
Default channel configuration
|
static int |
DEFAULT_MAX_LPC_ORDER
Default maximum lpc order to use
|
static int |
DEFAULT_MAX_RICE_ORDER
Default maximum Rice partition order
|
static int |
DEFAULT_MIN_LPC_ORDER
Default minimum lpc order to use
|
static EncodingConfiguration.SubframeType |
DEFAULT_SUBFRAME_TYPE
Default subframe type to use
|
static int |
MAX_LPC_ORDER
Maximum LPC order possible(as defined by FLAC format)
|
static int |
MAX_RICE_PARTITION_ORDER
Maximum Rice Partition order possible(as defined by FLAC Format)
|
static int |
MIN_LPC_ORDER
Minimum LPC order possible(as defined by FLAC format)
|
Constructor and Description |
---|
EncodingConfiguration()
Constructor, uses defaults for all options.
|
EncodingConfiguration(EncodingConfiguration e)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
EncodingConfiguration.ChannelConfig |
getChannelConfig()
Get the current channel configuration value.
|
int |
getMaxLPCOrder()
Get maximum LPC order
|
int |
getMinLPCOrder()
Get current minimum LPC order
|
EncodingConfiguration.SubframeType |
getSubframeType()
Get the current subframe type
|
void |
setChannelConfig(EncodingConfiguration.ChannelConfig conf)
Set the channel configuration to use.
|
void |
setMaxLPCOrder(int order)
Set the maximum LPC order.
|
void |
setMinLPCOrder(int order)
Set the minimum LPC order.
|
void |
setSubframeType(EncodingConfiguration.SubframeType type)
Set the subframe type to use.
|
public static final int MAX_LPC_ORDER
public static final int MIN_LPC_ORDER
public static final int MAX_RICE_PARTITION_ORDER
public static final EncodingConfiguration.SubframeType DEFAULT_SUBFRAME_TYPE
public static final EncodingConfiguration.ChannelConfig DEFAULT_CHANNEL_CONFIG
public static final int DEFAULT_MAX_LPC_ORDER
public static final int DEFAULT_MIN_LPC_ORDER
public static final int DEFAULT_MAX_RICE_ORDER
public EncodingConfiguration()
public EncodingConfiguration(EncodingConfiguration e)
e
- EncodingConfiguration object to copy. Must not be null.public void setChannelConfig(EncodingConfiguration.ChannelConfig conf)
ChannelConfig
for more info on choices.conf
- Channel configuration to use.public EncodingConfiguration.ChannelConfig getChannelConfig()
public void setSubframeType(EncodingConfiguration.SubframeType type)
SubframeType
for
more info on choices.type
- public EncodingConfiguration.SubframeType getSubframeType()
public int getMinLPCOrder()
public int getMaxLPCOrder()
public void setMinLPCOrder(int order)
MAX_LPC_ORDER
and
MIN_LPC_ORDER
), it will be
set to the closest valid value instead.order
- minimum LPC order to usepublic void setMaxLPCOrder(int order)
MAX_LPC_ORDER
and MIN_LPC_ORDER
), it will be
set to the closest valid value instead.order
- maximum LPC order to use