Package x3

Class X3FrameEncode

java.lang.Object
x3.X3FrameEncode

public class X3FrameEncode
extends java.lang.Object
Functions to encode a single X3 frame.
Author:
Doug
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int blockSamples  
    int[] codeCount  
    static int frameSamples  
    static int[] riceOrders  
    static int[] riceThresholds  
  • Constructor Summary

    Constructors 
    Constructor Description
    X3FrameEncode()
    Constructor - created the required standard rice tables.
  • Method Summary

    Modifier and Type Method Description
    int encodeFrame​(short[] data, byte[] packedData, int nChan, int nSamples)
    Encode a frame of audio data.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • X3FrameEncode

      public X3FrameEncode()
      Constructor - created the required standard rice tables.
  • Method Details

    • encodeFrame

      public int encodeFrame​(short[] data, byte[] packedData, int nChan, int nSamples)
      Encode a frame of audio data.
      Parameters:
      data - sound data array
      packedData - packed data array
      nChan - number of channels
      nSamples - number of samples
      Returns:
      number of bytes of packed data.