org.kc7bfi.jflac.frame
Class Channel

java.lang.Object
  extended by org.kc7bfi.jflac.frame.Channel
Direct Known Subclasses:
ChannelConstant, ChannelFixed, ChannelLPC, ChannelVerbatim

public abstract class Channel
extends Object

Base class for FLAC subframe (channel) classes.

Author:
kc7bfi

Field Summary
static int ENTROPY_CODING_METHOD_PARTITIONED_RICE
          Partisioned Rice Encoding Method.
static int ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN
          The size of the Rice Order field (in bits).
static int ENTROPY_CODING_METHOD_TYPE_LEN
          The size of the encoding method field (in bits).
protected  Header header
          The FLAC Frame Header.
protected  int wastedBits
          The number of waisted bits in the frame.
 
Constructor Summary
protected Channel(Header header, int wastedBits)
          The constructor.
 
Method Summary
 int getWastedBits()
          Return he number of waisted bits in the frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTROPY_CODING_METHOD_PARTITIONED_RICE

public static final int ENTROPY_CODING_METHOD_PARTITIONED_RICE
Partisioned Rice Encoding Method.

See Also:
Constant Field Values

ENTROPY_CODING_METHOD_TYPE_LEN

public static final int ENTROPY_CODING_METHOD_TYPE_LEN
The size of the encoding method field (in bits).

See Also:
Constant Field Values

ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN

public static final int ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN
The size of the Rice Order field (in bits).

See Also:
Constant Field Values

header

protected Header header
The FLAC Frame Header.


wastedBits

protected int wastedBits
The number of waisted bits in the frame.

Constructor Detail

Channel

protected Channel(Header header,
                  int wastedBits)
The constructor.

Parameters:
header - The FLAC Frame Header
wastedBits - The number of waisted bits in the frame
Method Detail

getWastedBits

public int getWastedBits()
Return he number of waisted bits in the frame.

Returns:
The number of waisted bits in the frame


Copyright © 2004-2011. All Rights Reserved.