public class Encoder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLKSIZE
FFT sizes
|
static int |
BLKSIZE_s |
static int |
CBANDS
parition bands bands
|
static int |
DECDELAY
Most decoders, including the one we use, have a delay of 528 samples.
|
static int |
ENCDELAY
ENCDELAY The encoder delay.
|
static int |
FFTOFFSET |
static int |
HBLKSIZE |
static int |
HBLKSIZE_s |
static int |
MDCTDELAY
delay of the MDCT used in mdct.c original ISO routines had a delay of
528! Takehiro's routines:
|
static int |
MPG_MD_LR_I |
static int |
MPG_MD_LR_LR
Mode Extention:
When we are in stereo mode, there are 4 possible methods to store these
two channels.
|
static int |
MPG_MD_MS_I |
static int |
MPG_MD_MS_LR |
static int |
NORM_TYPE |
static int |
POSTDELAY
make sure there is at least one complete frame after the last frame
containing real data
Using a value of 288 would be sufficient for a a very sophisticated
decoder that can decode granule-by-granule instead of frame by frame.
|
static int |
PSFB12 |
static int |
PSFB21 |
PsyModel |
psy |
static int |
SBLIMIT
number of subbands
|
static int |
SBMAX_l
total number of scalefactor bands encoded
|
static int |
SBMAX_s |
static int |
SBPSY_l
number of critical bands/scale factor bands where masking is computed
|
static int |
SBPSY_s |
static int |
SHORT_TYPE |
static int |
START_TYPE |
static int |
STOP_TYPE |
| Constructor and Description |
|---|
Encoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
lame_encode_mp3_frame(LameGlobalFlags gfp,
float[] inbuf_l,
float[] inbuf_r,
byte[] mp3buf,
int mp3bufPos,
int mp3buf_size) |
void |
setModules(BitStream bs,
PsyModel psy,
QuantizePVT qupvt,
VBRTag vbr) |
public PsyModel psy
public static final int ENCDELAY
public static final int POSTDELAY
public static final int MDCTDELAY
public static final int FFTOFFSET
public static final int DECDELAY
public static final int SBLIMIT
public static final int CBANDS
public static final int SBPSY_l
public static final int SBPSY_s
public static final int SBMAX_l
public static final int SBMAX_s
public static final int PSFB21
public static final int PSFB12
public static final int BLKSIZE
public static final int HBLKSIZE
public static final int BLKSIZE_s
public static final int HBLKSIZE_s
public static final int NORM_TYPE
public static final int START_TYPE
public static final int SHORT_TYPE
public static final int STOP_TYPE
public static final int MPG_MD_LR_LR
Mode Extention: When we are in stereo mode, there are 4 possible methods to store these two channels. The stereo modes -m? are using a subset of them. -ms: MPG_MD_LR_LR -mj: MPG_MD_LR_LR and MPG_MD_MS_LR -mf: MPG_MD_MS_LR -mi: all
public static final int MPG_MD_LR_I
public static final int MPG_MD_MS_LR
public static final int MPG_MD_MS_I
public final void setModules(BitStream bs, PsyModel psy, QuantizePVT qupvt, VBRTag vbr)
public final int lame_encode_mp3_frame(LameGlobalFlags gfp, float[] inbuf_l, float[] inbuf_r, byte[] mp3buf, int mp3bufPos, int mp3buf_size)