Logo Search packages:      
Sourcecode: libjlayer-java version File versions  Download package

javazoom::jl::decoder::SynthesisFilter Class Reference

List of all members.


Detailed Description

A class for the synthesis filter bank. This class does a fast downsampling from 32, 44.1 or 48 kHz to 8 kHz, if ULAW is defined. Frequencies above 4 kHz are removed by ignoring higher subbands.

Definition at line 40 of file SynthesisFilter.java.


Public Member Functions

void calculate_pcm_samples (Obuffer buffer)
void input_sample (float sample, int subbandnumber)
void input_samples (float[] s)
void reset ()
void setEQ (float[] eq0)
 SynthesisFilter (int channelnumber, float factor, float[] eq0)

Private Member Functions

void compute_new_v ()
void compute_new_v_old ()
void compute_pcm_samples (Obuffer buffer)
void compute_pcm_samples0 (Obuffer buffer)
void compute_pcm_samples1 (Obuffer buffer)
void compute_pcm_samples10 (Obuffer buffer)
void compute_pcm_samples11 (Obuffer buffer)
void compute_pcm_samples12 (Obuffer buffer)
void compute_pcm_samples13 (Obuffer buffer)
void compute_pcm_samples14 (Obuffer buffer)
void compute_pcm_samples15 (Obuffer buffer)
void compute_pcm_samples2 (Obuffer buffer)
void compute_pcm_samples3 (Obuffer buffer)
void compute_pcm_samples4 (Obuffer buffer)
void compute_pcm_samples5 (Obuffer buffer)
void compute_pcm_samples6 (Obuffer buffer)
void compute_pcm_samples7 (Obuffer buffer)
void compute_pcm_samples8 (Obuffer buffer)
void compute_pcm_samples9 (Obuffer buffer)

Static Private Member Functions

static float[] load_d ()
static float[][] splitArray (final float[] array, final int blockSize)
static float[] subArray (final float[] array, final int offs, int len)

Private Attributes

float[] _tmpOut = new float[32]
float[] actual_v
int actual_write_pos
int channel
float[] eq
float[] samples
float scalefactor
float[] v1
float[] v2

Static Private Attributes

static final float cos11_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 11.0 / 32.0)))
static final float cos11_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 11.0 / 64.0)))
static final float cos13_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 13.0 / 32.0)))
static final float cos13_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 13.0 / 64.0)))
static final float cos15_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 15.0 / 32.0)))
static final float cos15_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 15.0 / 64.0)))
static final float cos17_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 17.0 / 64.0)))
static final float cos19_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 19.0 / 64.0)))
static final float cos1_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 16.0)))
static final float cos1_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 32.0)))
static final float cos1_4 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 4.0)))
static final float cos1_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 64.0)))
static final float cos1_8 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 8.0)))
static final float cos21_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 21.0 / 64.0)))
static final float cos23_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 23.0 / 64.0)))
static final float cos25_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 25.0 / 64.0)))
static final float cos27_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 27.0 / 64.0)))
static final float cos29_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 29.0 / 64.0)))
static final float cos31_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 31.0 / 64.0)))
static final float cos3_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 16.0)))
static final float cos3_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 32.0)))
static final float cos3_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 64.0)))
static final float cos3_8 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 8.0)))
static final float cos5_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 16.0)))
static final float cos5_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 32.0)))
static final float cos5_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 64.0)))
static final float cos7_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 16.0)))
static final float cos7_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 32.0)))
static final float cos7_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 64.0)))
static final float cos9_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 9.0 / 32.0)))
static final float cos9_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 9.0 / 64.0)))
static float d [] = null
static float d16 [][] = null
static final double MY_PI = 3.14159265358979323846

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index