forked from len0rd/rockbox
Exclude some unneeded LSP code. Add some #endif clarification comments here and there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15497 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3eed6fc025
commit
f5903789fb
7 changed files with 18 additions and 14 deletions
|
|
@ -512,7 +512,7 @@ int update_target
|
|||
target[j]=SUB16(target[j],PSHR16(r2[j],2));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER*/
|
||||
|
||||
|
||||
void split_cb_shape_sign_unquant(
|
||||
|
|
@ -600,7 +600,7 @@ int update_target
|
|||
for (i=0;i<nsf;i++)
|
||||
target[i]=0;
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
|
||||
void noise_codebook_unquant(
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ void signal_div(const spx_word16_t *x, spx_word16_t *y, spx_word32_t scale, int
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
#else
|
||||
|
||||
|
|
@ -342,7 +342,7 @@ void filter_mem16(const spx_word16_t *x, const spx_coef_t *num, const spx_coef_t
|
|||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
#ifndef OVERRIDE_IIR_MEM16
|
||||
void iir_mem16(const spx_word16_t *x, const spx_coef_t *den, spx_word16_t *y, int N, int ord, spx_mem_t *mem, char *stack)
|
||||
|
|
@ -482,7 +482,7 @@ void qmf_decomp(const spx_word16_t *xx, const spx_word16_t *aa, spx_word16_t *y1
|
|||
y2[k] = EXTRACT16(SATURATE(PSHR32(y2k,15),32767));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
#ifndef OVERRIDE_QMF_SYNTH
|
||||
/* Re-synthesised a signal from the QMF low-band and high-band signals */
|
||||
|
|
|
|||
|
|
@ -134,6 +134,8 @@ Heavily modified by Jean-Marc Valin (c) 2002-2006 (fixed-point,
|
|||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef SPEEX_DISABLE_ENCODER
|
||||
|
||||
#ifdef FIXED_POINT
|
||||
|
||||
#ifndef OVERRIDE_CHEB_POLY_EVA
|
||||
|
|
@ -387,6 +389,8 @@ int lpc_to_lsp (spx_coef_t *a,int lpcrdr,spx_lsp_t *freq,int nb,spx_word16_t del
|
|||
return(roots);
|
||||
}
|
||||
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
|
||||
FUNCTION....: lsp_to_lpc()
|
||||
|
|
|
|||
|
|
@ -660,7 +660,7 @@ spx_word32_t *cumul_gain
|
|||
#endif
|
||||
return pitch;
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
void pitch_unquant_3tap(
|
||||
spx_word16_t exc[], /* Input excitation */
|
||||
|
|
@ -812,7 +812,7 @@ spx_word32_t *cumul_gain
|
|||
target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700));
|
||||
return start;
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
/** Unquantize forced pitch delay and gain */
|
||||
void forced_pitch_unquant(
|
||||
|
|
|
|||
|
|
@ -1024,7 +1024,7 @@ int nb_encode(void *state, void *vin, SpeexBits *bits)
|
|||
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
static DecState global_decstate IBSS_ATTR;
|
||||
|
||||
|
|
@ -1947,7 +1947,7 @@ int nb_encoder_ctl(void *state, int request, void *ptr)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
int nb_decoder_ctl(void *state, int request, void *ptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ void lsp_quant_nb(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
|
|||
for (i=0;i<order;i++)
|
||||
qlsp[i]=lsp[i]-qlsp[i];
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
void lsp_unquant_nb(spx_lsp_t *lsp, int order, SpeexBits *bits)
|
||||
{
|
||||
|
|
@ -282,7 +282,7 @@ void lsp_quant_lbr(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
|
|||
for (i=0;i<order;i++)
|
||||
qlsp[i]=lsp[i]-qlsp[i];
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
void lsp_unquant_lbr(spx_lsp_t *lsp, int order, SpeexBits *bits)
|
||||
{
|
||||
|
|
@ -367,7 +367,7 @@ void lsp_quant_high(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
|
|||
for (i=0;i<order;i++)
|
||||
qlsp[i]=lsp[i]-qlsp[i];
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
void lsp_unquant_high(spx_lsp_t *lsp, int order, SpeexBits *bits)
|
||||
{
|
||||
|
|
@ -434,7 +434,7 @@ void lsp_quant_48k(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits)
|
|||
for (i=0;i<order;i++)
|
||||
qlsp[i]=lsp[i]-qlsp[i];
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
void lsp_unquant_48k(spx_lsp_t *lsp, int order, SpeexBits *bits)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ char *speex_header_to_packet(SpeexHeader *header, int *size)
|
|||
*size = sizeof(SpeexHeader);
|
||||
return (char *)le_header;
|
||||
}
|
||||
#endif
|
||||
#endif /* SPEEX_DISABLE_ENCODER */
|
||||
|
||||
static SpeexHeader global_le_header; /* Avoid malloc */
|
||||
SpeexHeader *speex_packet_to_header(char *packet, int size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue