-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdcodecdspbundle.cfg
55 lines (46 loc) · 2.07 KB
/
sdcodecdspbundle.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* ============================================================================
* Copyright (c) Texas Instruments Incorporated 2009
*
* Use of this software is controlled by the terms and conditions found in the
* license agreement under which this software has been supplied or provided.
* ============================================================================
*/
/* Load support for the Codec Engine OSAL */
var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
var os = xdc.useModule('ti.sdo.ce.osal.linux.Settings');
osalGlobal.os = os;
/* Configure CE to use it's DSP Link Linux version */
var ipc = xdc.useModule('ti.sdo.ce.ipc.Settings');
ipc.commType = ipc.COMM_DSPLINK;
/* Enable SoCrates tracing in the demo */
var TraceUtil = xdc.useModule('ti.sdo.ce.utils.trace.TraceUtil');
TraceUtil.attrs = TraceUtil.SOCRATES_TRACING;
/* Load support for encode and decode */
var H264DEC = xdc.useModule('h264dec.ce.H264DEC');
var H264ENC = xdc.useModule('h264enc.ce.H264ENC');
var G729DEC = xdc.useModule('g729.G729DEC');
var G729ENC = xdc.useModule('g729.G729ENC');
var AMRNBDEC = xdc.useModule('amrnb.AMRNBDEC');
var AMRNBENC = xdc.useModule('amrnb.AMRNBENC');
/*
* ======== Engine Configuration ========
*/
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var demoEngine = Engine.create("encodedecode", [
{name: "h264enc", mod: H264ENC, local: false, groupId: 0},
{name: "h264dec", mod: H264DEC, local: false, groupId: 0},
{name: "g729enc", mod: G729ENC, local: false, groupId: 1},
{name: "g729dec", mod: G729DEC, local: false, groupId: 1},
{name: "amrnbenc", mod: AMRNBENC, local: false, groupId: 1},
{name: "amrnbdec", mod: AMRNBDEC, local: false, groupId: 1},
]);
if (xdc.om['xdc.cfg'].Program.build.profile == "debug" ){
demoEngine.server = "/opt/dsp/av_codec_server_debug.x64P";
}
else{
demoEngine.server = "/opt/dsp/av_codec_server_debug.x64P";
}
/* Load support for the 'Davinci Multimedia Application Interface' module */
var DMAI = xdc.loadPackage('ti.sdo.dmai');
/* Load support for SimpleWidget */
//var SW = xdc.loadPackage('ti.sdo.simplewidget');