|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectjavaFlacEncoder.Subframe
javaFlacEncoder.Subframe_Verbatim
public class Subframe_Verbatim
Implements the Subframe abstract class, providing encoding support for the FLAC Verbatim Subframe.
| Field Summary | |
|---|---|
static int |
DEBUG_LEV
For debugging: Higher value equals more output, typically by increments of 10 |
static EncodingConfiguration.SubframeType |
type
Subframe type supported by this implementation. |
| Fields inherited from class javaFlacEncoder.Subframe |
|---|
ec, lastEncodedSize, sc |
| Method Summary | |
|---|---|
int |
encodeSamples(int[] samples,
int count,
int start,
int skip,
EncodedElement data,
int offset,
int bitsPerSample)
Encodes samples into the appropriate compressed format, saving the result in the given “data” EncodedElement list. |
int |
estimateSize(int count,
int bitsPerSample)
|
boolean |
registerConfiguration(EncodingConfiguration ec)
This method is used to set the encoding configuration. |
| Methods inherited from class javaFlacEncoder.Subframe |
|---|
getEncodedSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DEBUG_LEV
public static final EncodingConfiguration.SubframeType type
| Method Detail |
|---|
public boolean registerConfiguration(EncodingConfiguration ec)
registerConfiguration in class Subframeec - encoding configuration to use.
public int estimateSize(int count,
int bitsPerSample)
public int encodeSamples(int[] samples,
int count,
int start,
int skip,
EncodedElement data,
int offset,
int bitsPerSample)
Subframe
encodeSamples in class Subframesamples - the audio samples to encode. This array may contain
samples for multiple channels, interleaved; only one of these channels is
encoded by a subframe.count - the number of samples to encode.start - the index to start at in the array.skip - the number of indices to skip between successive samples
(for use when channels are interleaved in the given
array).data - the EncodedElement to attach encoded data to. Data in
EncodedElement given is not altered. New data is
attached starting with “data.getNext()”. If “data”
already has a “next” set, it will be lost!bitsPerSample - Number of bits per single-channel sample. This may
differ from the StreamConfiguration's sample size, depending on the
subframe used(i.e, the "side-channel" of a FLAC stream uses one extra bit
compared to the input channels).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||