view dev/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 19f1aa01ea10
children
line wrap: on
line source

PROGS=	a2s-regen efr-bit-packing efr-sid-insert efr-tidsp gsm0611-silence-fr \
	gsmfr-dhf mk-256bytes s2a-regen s2u-regen s2u-regen-plus4 u2s-regen \
	xmaxc-tables
DATAOUT=a2s-regen.out efr-bit-packing.out efr-sid-insert.out efr-tidsp.out \
	gsm0611-silence-fr.out gsmfr-dhf.out s2a-regen.out s2u-regen.out \
	s2u-regen-plus4.out u2s-regen.out xmaxc-tables.out

include ../config.defs

all:	${PROGS} ${DATAOUT}

a2s-regen:	a2s-regen.c
	${CC} ${CFLAGS} -o $@ $@.c

a2s-regen.out:	a2s-regen
	./a2s-regen > $@

efr-bit-packing:	efr-bit-packing.c
	${CC} ${CFLAGS} -o $@ $@.c

efr-bit-packing.out:	efr-bit-packing
	./efr-bit-packing > $@

efr-sid-insert:		efr-sid-insert.c
	${CC} ${CFLAGS} -o $@ $@.c

efr-sid-insert.out:	efr-sid-insert
	./efr-sid-insert > $@

efr-tidsp:	efr-tidsp.c
	${CC} ${CFLAGS} -o $@ $@.c

efr-tidsp.out:	efr-tidsp
	./efr-tidsp > $@

gsm0611-silence-fr:	gsm0611-silence-fr.o pack_gsmfr_rtp.o
	${CC} ${CFLAGS} -o $@ $@.o pack_gsmfr_rtp.o

gsm0611-silence-fr.out:	gsm0611-silence-fr
	./gsm0611-silence-fr > $@

gsmfr-dhf:	gsmfr-dhf.o pack_gsmfr_rtp.o
	${CC} ${CFLAGS} -o $@ $@.o pack_gsmfr_rtp.o

gsmfr-dhf.out:	gsmfr-dhf
	./gsmfr-dhf > $@

mk-256bytes:	mk-256bytes.c
	${CC} ${CFLAGS} -o $@ $@.c

s2a-regen:	s2a-regen.c
	${CC} ${CFLAGS} -o $@ $@.c

s2a-regen.out:	s2a-regen
	./s2a-regen > $@

s2u-regen:	s2u-regen.c
	${CC} ${CFLAGS} -o $@ $@.c

s2u-regen.out:	s2u-regen
	./s2u-regen > $@

s2u-regen-plus4:	s2u-regen-plus4.c
	${CC} ${CFLAGS} -o $@ $@.c

s2u-regen-plus4.out:	s2u-regen-plus4
	./s2u-regen-plus4 > $@

u2s-regen:	u2s-regen.c
	${CC} ${CFLAGS} -o $@ $@.c

u2s-regen.out:	u2s-regen
	./u2s-regen > $@

xmaxc-tables:	xmaxc-tables.c
	${CC} ${CFLAGS} -o $@ $@.c

xmaxc-tables.out:	xmaxc-tables
	./xmaxc-tables > $@

clean:
	rm -f *.o *.out ${PROGS}