org.kc7bfi.jflac.frame
Class Frame

java.lang.Object
  extended by org.kc7bfi.jflac.frame.Frame

public class Frame
extends Object

The FLAC Frame class.

Author:
kc7bfi

Field Summary
 Header header
          The frame header.
 Channel[] subframes
          The subframes - One per channel.
 
Constructor Summary
Frame()
           
 
Method Summary
 short getCRC()
          return the frame's CRC.
static int getMaxRicePartitionOrderFromBlocksize(int blocksize)
          Return the maximum Rice partition order based on the block size.
 void setCRC(short crc)
          Set the frame's CRC.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

header

public Header header
The frame header.


subframes

public Channel[] subframes
The subframes - One per channel.

Constructor Detail

Frame

public Frame()
Method Detail

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getMaxRicePartitionOrderFromBlocksize

public static int getMaxRicePartitionOrderFromBlocksize(int blocksize)
Return the maximum Rice partition order based on the block size.

Parameters:
blocksize - The block size
Returns:
The maximum Rice partition order

getCRC

public short getCRC()
return the frame's CRC.

Returns:
Returns the crc.

setCRC

public void setCRC(short crc)
Set the frame's CRC.

Parameters:
crc - The crc to set.


Copyright © 2004-2011. All Rights Reserved.