summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2008-09-16 14:11:09 +0000
committerNanang Izzuddin <nanang@teluu.com>2008-09-16 14:11:09 +0000
commite8ff3a8dd7d1afb0dc49020f4b7aad8891e58953 (patch)
tree5af13a0e280921246ccfeb22c5341e4fddede6eb /pjmedia
parent2741dd7ca77de25f4e3d99aed11dd2b6c5a2ab15 (diff)
Ticket #628: Updated IPP codec module to use fixed point version of G.729 on architectures that don't have FPU (thanks David Parker for the patch).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2279 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia-codec/ipp_codecs.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-codec/ipp_codecs.c b/pjmedia/src/pjmedia-codec/ipp_codecs.c
index 302811b2..83711802 100644
--- a/pjmedia/src/pjmedia-codec/ipp_codecs.c
+++ b/pjmedia/src/pjmedia-codec/ipp_codecs.c
@@ -132,6 +132,7 @@ typedef struct ipp_private {
/* USC codec implementations. */
extern USC_Fxns USC_G729AFP_Fxns;
+extern USC_Fxns USC_G729I_Fxns;
extern USC_Fxns USC_G723_Fxns;
extern USC_Fxns USC_G726_Fxns;
extern USC_Fxns USC_G728_Fxns;
@@ -140,6 +141,7 @@ extern USC_Fxns USC_GSMAMR_Fxns;
extern USC_Fxns USC_AMRWB_Fxns;
extern USC_Fxns USC_AMRWBE_Fxns;
+
/* CUSTOM CALLBACKS */
/* This callback is useful for translating RTP frame into USC frame, e.g:
@@ -235,10 +237,17 @@ ipp_codec[] =
# endif
# if PJMEDIA_HAS_INTEL_IPP_CODEC_G729
- {1, "G729", PJMEDIA_RTP_PT_G729, &USC_G729AFP_Fxns, 8000, 1, 80,
+# if defined(PJ_HAS_FLOATING_POINT) && (PJ_HAS_FLOATING_POINT != 0)
+ {1, "G729", PJMEDIA_RTP_PT_G729, &USC_G729AFP_Fxns, 8000, 1, 80,
+ 8000, 11800, 2, 1, 1,
+ &predecode_g729, NULL, NULL
+ },
+# else
+ {1, "G729", PJMEDIA_RTP_PT_G729, &USC_G729I_Fxns, 8000, 1, 80,
8000, 11800, 2, 1, 1,
&predecode_g729, NULL, NULL
},
+# endif
# endif
# if PJMEDIA_HAS_INTEL_IPP_CODEC_G723_1