FreeCalypso > hg > gsm-codec-lib
view libgsmefr/Makefile @ 477:4c9222d95647
libtwamr encoder: always emit frame->mode = mode;
In the original implementation of amr_encode_frame(), the 'mode' member
of the output struct was set to 0xFF if the output frame type is TX_NO_DATA.
This design was made to mimic the mode field (16-bit word) being set to
0xFFFF (or -1) in 3GPP test sequence format - but nothing actually depends
on this struct member being set in any way, and amr_frame_to_tseq()
generates the needed 0xFFFF on its own, based on frame->type being equal
to TX_NO_DATA.
It is simpler and more efficient to always set frame->mode to the actual
encoding mode in amr_encode_frame(), and this new behavior has already
been documented in doc/AMR-library-API description in anticipation of
the present change.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 18 May 2024 22:30:42 +0000 |
parents | ea89eb8291bf |
children | f2d0f2f15d5f |
line wrap: on
line source
OBJS= agc.o autocorr.o az_lsp.o basicops.o bfi_nodata.o c1035pf.o cod_12k2.o \ convolve.o d1035pf.o d_gains.o d_homing.o d_plsf_5.o dec_12k2.o \ dec_create.o dec_lag6.o dec_main.o dec_wrap.o dhf.o dtx_common.o \ dtx_dec.o dtx_enc.o e_homing.o enc_create.o enc_lag6.o enc_main.o \ enc_wrap.o frame2params.o g_code.o g_pitch.o int_lpc.o inter_6.o \ inv_sqrt.o lag_wind.o levinson.o log2.o lsp_az.o lsp_lsf.o oper_32b.o \ params2frame.o pitch_f6.o pitch_ol.o pow2.o pre_proc.o pred_lt6.o \ preemph.o pstfilt2.o q_gains.o q_plsf5_tab.o q_plsf_5.o reorder.o \ residu.o sid_class.o sid_insert.o syn_filt.o tls_flags.o vad.o \ weight_a.o HDRS= basic_op.h cnst.h codec.h d_homing.h dec_state.h dtx.h dtx_defs.h \ e_homing.h enc_state.h gains_tb.h gsm_efr.h memops.h namespace.h \ no_count.h oper_32b.h q_plsf5_tab.h sig_proc.h typedef.h vad.h LIB= libgsmefr.a include ../config.defs all: ${LIB} ${OBJS}: ${HDRS} ${LIB}: ${OBJS} ar rcu $@ ${OBJS} ranlib $@ install: mkdir -p ${DESTDIR}${includedir} install -c -m 444 gsm_efr.h ${DESTDIR}${includedir} mkdir -p ${DESTDIR}${libdir} install -c -m 444 ${LIB} ${DESTDIR}${libdir} clean: rm -f *.[oa] errs