FreeCalypso > hg > gsm-codec-lib
view libgsmfr2/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 | cb1d1ea7f2c5 |
children | c95e89367321 |
line wrap: on
line source
OBJS= add.o comfort_noise.o dec_main.o dec_wrap.o dhf.o ed_state.o \ enc_homing.o enc_main.o enc_wrap.o full_dec.o long_term.o lpc.o \ pack_frame.o pack_frame2.o pp_bad.o pp_good.o pp_state.o preprocess.o \ prng.o rpe.o short_term.o sidclass.o silence_frame.o table.o \ unpack_frame.o unpack_frame2.o xmaxc_mean.o HDRS= ed_internal.h ed_state.h pp_internal.h pp_state.h tw_gsmfr.h typedef.h LIB= libgsmfr2.a include ../config.defs all: ${LIB} ${OBJS}: ${HDRS} ${LIB}: ${OBJS} ar rcu $@ ${OBJS} ranlib $@ install: mkdir -p ${DESTDIR}${includedir} install -c -m 444 tw_gsmfr.h ${DESTDIR}${includedir} mkdir -p ${DESTDIR}${libdir} install -c -m 444 ${LIB} ${DESTDIR}${libdir} clean: rm -f *.[oa] errs