/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
channel_map.h | 29 Word16 InitElementInfo (Word16 nChannels, ELEMENT_INFO* elInfo); 31 Word16 InitElementBits(ELEMENT_BITS *elementBits, 34 Word16 averageBitsTot, 35 Word16 staticBitsTot);
|
pre_echo_control.h | 29 Word16 numPb, 34 Word16 numPb, 36 Word16 minRemainingThresholdFactor, 38 Word16 mdctScale, 39 Word16 mdctScalenm1);
|
transform.h | 28 void Transform_Real(Word16 *mdctDelayBuffer, 29 Word16 *timeSignal, 30 Word16 chIncrement, /*! channel increment */ 32 Word16 *mdctScale, 33 Word16 windowSequence
|
psy_data.h | 36 }SFB_THRESHOLD; /* Word16 size: 260 */ 41 }SFB_ENERGY; /* Word16 size: 260 */ 46 }SFB_ENERGY_SUM; /* Word16 size: 18 */ 51 Word16 *mdctDelayBuffer; /* mdct delay buffer [BLOCK_SWITCHING_OFFSET]*/ 53 Word16 mdctScalenm1; /* scale of last block's mdct (PreEchoControl) */ 63 Word16 mdctScale; /* scale of mdct */ 64 }PSY_DATA; /* Word16 size: 4 + 87 + 102 + 360 + 360 + 360 + 18 + 18 + 360 = 1669 */
|
band_nrg.h | 31 const Word16 *bandOffset, 32 const Word16 numBands, 39 const Word16 *bandOffset, 40 const Word16 numBands,
|
tns_param.h | 33 Word16 maxBandLong; 34 Word16 maxBandShort; 48 Word32 bitRate, Word16 channels, Word16 blockType); 50 void GetTnsMaxBands(Word32 samplingRate, Word16 blockType, Word16* tnsMaxSfb);
|
bitbuffer.h | 55 Word16 wBitPos; /*!< 31<=wBitPos<=0*/ 56 Word16 cntBits; /*!< number of available bits in the bitstream buffer 59 Word16 size; /*!< size of bitbuffer in bits */ 60 Word16 isValid; /*!< indicates whether the instance has been initialized */ 61 }; /* size Word16: 8 */ 69 Word16 bitBufSize); 75 Word16 GetBitsAvail(HANDLE_BIT_BUF hBitBuf); 78 Word16 WriteBits(HANDLE_BIT_BUF hBitBuf, 80 Word16 noBitsToWrite); 84 Word16 bitBufSize) [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
q_pulse.h | 31 Word16 pos, /* (i) position of the pulse */ 32 Word16 N); /* (i) number of bits for position */ 35 Word16 pos1, /* (i) position of the pulse 1 */ 36 Word16 pos2, /* (i) position of the pulse 2 */ 37 Word16 N); /* (i) number of bits for position */ 40 Word16 pos1, /* (i) position of the pulse 1 */ 41 Word16 pos2, /* (i) position of the pulse 2 */ 42 Word16 pos3, /* (i) position of the pulse 3 */ 43 Word16 N); /* (i) number of bits for position */ 46 Word16 pos1, /* (i) position of the pulse 1 * [all...] |
wb_vad.h | 40 Word16 bckr_est[COMPLEN]; /* background noise estimate */ 41 Word16 ave_level[COMPLEN]; /* averaged input components for stationary */ 43 Word16 old_level[COMPLEN]; /* input levels of the previous frame */ 44 Word16 sub_level[COMPLEN]; /* input levels calculated at the end of a frame (lookahead) */ 45 Word16 a_data5[F_5TH_CNT][2]; /* memory for the filter bank */ 46 Word16 a_data3[F_3TH_CNT]; /* memory for the filter bank */ 48 Word16 burst_count; /* counts length of a speech burst */ 49 Word16 hang_count; /* hangover counter */ 50 Word16 stat_count; /* stationary counter */ 54 Word16 vadreg; /* flags for intermediate VAD decisions * [all...] |
bits.h | 45 #define BIT_0 (Word16)-127 46 #define BIT_1 (Word16)127 47 #define BIT_0_ITU (Word16)0x007F 48 #define BIT_1_ITU (Word16)0x0081 51 #define TX_FRAME_TYPE (Word16)0x6b21 52 #define RX_FRAME_TYPE (Word16)0x6b20 54 static const Word16 nb_of_bits[NUM_OF_MODES] = { 69 Word16 sid_update_counter; 70 Word16 sid_handover_debt; 71 Word16 prev_ft [all...] |
p_med_o.h | 26 Word16 Pitch_med_ol( /* output: open loop pitch lag */ 27 Word16 wsp[], /* input : signal used to compute the open loop pitch */ 29 Word16 L_min, /* input : minimum pitch lag */ 30 Word16 L_max, /* input : maximum pitch lag */ 31 Word16 L_frame, /* input : length of frame to compute pitch */ 32 Word16 L_0, /* input : old_ open-loop pitch */ 33 Word16 * gain, /* output: normalize correlation of hp_wsp for the Lag */ 34 Word16 * hp_wsp_mem, /* i:o : memory of the hypass filter for hp_wsp[] (lg=9) */ 35 Word16 * old_hp_wsp, /* i:o : hypass wsp[] */ 36 Word16 wght_flg /* input : is weighting function used * [all...] |
wb_vad_c.h | 33 #define TONE_THR (Word16)(0.65*MAX_16) /* Threshold for tone detection */ 38 #define ALPHA_SP_UP (Word16)((1.0 - 0.85)*MAX_16) 39 #define ALPHA_SP_DOWN (Word16)((1.0 - 0.85)*MAX_16) 43 #define MIN_SPEECH_LEVEL1 (Word16)(NOM_LEVEL * 0.063) /* NOM_LEVEL -24 dB */ 44 #define MIN_SPEECH_LEVEL2 (Word16)(NOM_LEVEL * 0.2) /* NOM_LEVEL -14 dB */ 48 #define ALPHA_UP1 (Word16)((1.0 - 0.95)*MAX_16) /* Normal update, upwards: */ 49 #define ALPHA_DOWN1 (Word16)((1.0 - 0.936)*MAX_16) /* Normal update, downwards */ 50 #define ALPHA_UP2 (Word16)((1.0 - 0.985)*MAX_16) /* Forced update, upwards */ 51 #define ALPHA_DOWN2 (Word16)((1.0 - 0.943)*MAX_16) /* Forced update, downwards */ 52 #define ALPHA3 (Word16)((1.0 - 0.95)*MAX_16) /* Update downwards * [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
psy_configuration.c | 44 static const Word16 ABS_LEV = 20; 45 static const Word16 BARC_THR_QUIET[] = {15, 10, 7, 2, 0, 0, 0, 0, 0, 0, 51 static const Word16 max_bark = 24; /* maximum bark-value */ 52 static const Word16 maskLow = 30; /* in 1dB/bark */ 53 static const Word16 maskHigh = 15; /* in 1*dB/bark */ 54 static const Word16 c_ratio = 0x0029; /* pow(10.0f, -(29.0f/10.0f)) */ 56 static const Word16 maskLowSprEnLong = 30; /* in 1dB/bark */ 57 static const Word16 maskHighSprEnLong = 20; /* in 1dB/bark */ 58 static const Word16 maskHighSprEnLongLowBr = 15; /* in 1dB/bark */ 59 static const Word16 maskLowSprEnShort = 20; /* in 1dB/bark * [all...] |
dyn_bits.c | 36 buildBitLookUp(const Word16 *quantSpectrum, 37 const Word16 maxSfb, 38 const Word16 *sfbOffset, 40 Word16 bitLookUp[MAX_SFB_LONG][CODE_BOOK_ESC_NDX + 1], 46 Word16 sfbWidth, maxVal; 65 static Word16 66 findBestBook(const Word16 *bc, Word16 *book) 81 static Word16 82 findMinMergeBits(const Word16 *bc1, const Word16 *bc2 [all...] |
bitenc.c | 30 static const Word16 globalGainOffset = 100; 31 static const Word16 icsReservedBit = 0; 41 static Word32 encodeSpectralData(Word16 *sfbOffset, 43 Word16 *quantSpectrum, 46 Word16 i,sfb; 47 Word16 dbgVal; 76 static void encodeGlobalGain(Word16 globalGain, 77 Word16 logNorm, 78 Word16 scalefac, 93 static void encodeIcsInfo(Word16 blockType [all...] |
channel_map.c | 28 static const Word16 maxChannelBits = MAXBITS_COEF; 30 static Word16 initElement(ELEMENT_INFO* elInfo, ELEMENT_TYPE elType) 32 Word16 error=0; 64 Word16 InitElementInfo (Word16 nChannels, ELEMENT_INFO* elInfo) 66 Word16 error; 87 Word16 InitElementBits(ELEMENT_BITS *elementBits, 90 Word16 averageBitsTot, 91 Word16 staticBitsTot) 93 Word16 error [all...] |
interface.c | 35 const Word16 mdctScale, 41 const Word16 windowSequence, 42 const Word16 windowShape, 43 const Word16 groupedSfbCnt, 44 const Word16 *groupedSfbOffset, 45 const Word16 maxSfbPerGroup, 46 const Word16 *groupedSfbMinSnr, 47 const Word16 noOfGroups, 48 const Word16 *groupLen, 54 Word16 *tmpV [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
basicop2.c | 54 | 16 bit short signed integer (Word16) whose value falls in the | 60 Word16 saturate(Word32 L_var1) 62 Word16 var_out; 96 | 16 bit short signed integer (Word16) whose value falls in the | 100 | 16 bit short signed integer (Word16) whose value falls in the | 110 | 16 bit short signed integer (Word16) whose value falls in the | 116 Word16 add (Word16 var1, Word16 var2) 118 Word16 var_out [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
random.c | 27 Word16 Random(Word16 * seed) 29 /* static Word16 seed = 21845; */ 30 *seed = (Word16)(L_add((L_mult(*seed, 31821) >> 1), 13849L));
|
pitch_f4.c | 38 Word16 exc[], /* (i) : excitation buffer */ 39 Word16 xn[], /* (i) : target vector */ 40 Word16 h[], /* (i) Q15 : impulse response of synth/wgt filters */ 41 Word16 L_subfr, 42 Word16 t_min, /* (i) : minimum value of pitch lag. */ 43 Word16 t_max, /* (i) : maximum value of pitch lag. */ 44 Word16 corr_norm[] /* (o) Q15 : normalized correlation */ 48 Word16 exc[], /* (i) : excitation buffer */ 49 Word16 xn[], /* (i) : target vector */ 50 Word16 h[], /* (i) Q15 : impulse response of synth/wgt filters * [all...] |
preemph.c | 29 Word16 x[], /* (i/o) : input signal overwritten by the output */ 30 Word16 mu, /* (i) Q15 : preemphasis coefficient */ 31 Word16 lg, /* (i) : lenght of filtering */ 32 Word16 * mem /* (i/o) : memory (x[-1]) */ 35 Word16 temp; 58 Word16 x[], /* (i/o) : input signal overwritten by the output */ 59 Word16 mu, /* (i) Q15 : preemphasis coefficient */ 60 Word16 lg, /* (i) : lenght of filtering */ 61 Word16 * mem /* (i/o) : memory (x[-1]) */ 64 Word16 temp [all...] |
weight_a.c | 29 Word16 a[], /* (i) Q12 : a[m+1] LPC coefficients */ 30 Word16 ap[], /* (o) Q12 : Spectral expanded LPC coefficients */ 31 Word16 gamma, /* (i) Q15 : Spectral expansion factor. */ 32 Word16 m /* (i) : LPC order. */ 39 *ap++ =(Word16)(((vo_L_mult((*a++), fac)) + 0x8000) >> 16); 43 *ap++ = (Word16)(((vo_L_mult((*a++), fac)) + 0x8000) >> 16);
|
deemph.c | 31 Word16 x[], /* (i/o) : input signal overwritten by the output */ 32 Word16 mu, /* (i) Q15 : deemphasis factor */ 33 Word16 L, /* (i) : vector size */ 34 Word16 * mem /* (i/o) : memory (y[-1]) */ 58 Word16 x[], /* (i/o) : input signal overwritten by the output */ 59 Word16 mu, /* (i) Q15 : deemphasis factor */ 60 Word16 L, /* (i) : vector size */ 61 Word16 * mem /* (i/o) : memory (y[-1]) */ 81 Word16 x_hi[], /* (i) : input signal (bit31..16) */ 82 Word16 x_lo[], /* (i) : input signal (bit15..4) * [all...] |
gpclip.c | 38 Word16 mem[] /* (o) : memory of gain of pitch clipping algorithm */ 46 Word16 Gp_clip( 47 Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */ 50 Word16 clip = 0; 59 Word16 isf[], /* (i) : isf values (in frequency domain) */ 60 Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */ 63 Word16 dist, dist_min; 90 Word16 gain_pit, /* (i) Q14 : gain of quantized pitch */ 91 Word16 mem[] /* (i/o) : memory of gain of pitch clipping algorithm */ 94 Word16 gain [all...] |
qpisf_2s.c | 39 Word16 * x, /* input : ISF residual vector */ 40 Word16 * dico, /* input : quantization codebook */ 41 Word16 dim, /* input : dimention of vector */ 42 Word16 dico_size, /* input : size of quantization codebook */ 43 Word16 * index, /* output: indices of survivors */ 44 Word16 surv /* input : number of survivor */ 57 Word16 * isf1, /* (i) Q15 : ISF in the frequency domain (0..0.5) */ 58 Word16 * isf_q, /* (o) Q15 : quantized ISF (0..0.5) */ 59 Word16 * past_isfq, /* (io)Q15 : past ISF quantizer */ 60 Word16 * indice, /* (o) : quantization indices * [all...] |