summaryrefslogtreecommitdiff
path: root/gstreamer_ti/ti_build
diff options
context:
space:
mode:
authorbrijesh.singh <brijesh.singh@24075187-2e39-4e88-bbb8-bc8aa768f540>2011-01-18 17:02:31 +0000
committerbrijesh.singh <brijesh.singh@24075187-2e39-4e88-bbb8-bc8aa768f540>2011-01-18 17:02:31 +0000
commitf2ac7e93d52b8edaf30d6113ebaa832d129b2d2f (patch)
tree8575a4ecfb0b0b18ae8f10a8ff7e5d010c3685f6 /gstreamer_ti/ti_build
parent7dc5e20cd6e62fa85f7fa3d26acfb2935c630dc5 (diff)
update omapl138 cfg to use createfromserver
git-svn-id: https://gstreamer.ti.com/svn/gstreamer_ti/trunk@897 24075187-2e39-4e88-bbb8-bc8aa768f540
Diffstat (limited to 'gstreamer_ti/ti_build')
-rw-r--r--gstreamer_ti/ti_build/ticodecplugin/src/gstticodecplugin_omapl138.cfg69
1 files changed, 17 insertions, 52 deletions
diff --git a/gstreamer_ti/ti_build/ticodecplugin/src/gstticodecplugin_omapl138.cfg b/gstreamer_ti/ti_build/ticodecplugin/src/gstticodecplugin_omapl138.cfg
index 7f41250..1330121 100644
--- a/gstreamer_ti/ti_build/ticodecplugin/src/gstticodecplugin_omapl138.cfg
+++ b/gstreamer_ti/ti_build/ticodecplugin/src/gstticodecplugin_omapl138.cfg
@@ -1,7 +1,7 @@
/*
- * Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2008-2010 Texas Instruments Incorporated - http://www.ti.com/
*
- * This program is free software; you can redistribute it and/or modify
+ * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation version 2.1 of the License.
*
@@ -12,42 +12,27 @@
*
*/
-/* Load the Codec Engine 'Operating System Abstraction Layer' */
-var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
-
-var AACDEC = xdc.useModule('ti.sdo.codecs.aachedec.ce.AACHEDEC')
-var H264DEC = xdc.useModule('ti.sdo.codecs.h264dec.ce.H264DEC');
-var MPEG4DEC = xdc.useModule('ti.sdo.codecs.mpeg4dec.ce.MPEG4DEC');
-var MPEG2DEC = xdc.useModule('ti.sdo.codecs.mpeg2dec.ce.MPEG2DEC');
-var JPEGDEC = xdc.useModule('ti.sdo.codecs.jpegdec.ce.JPEGDEC');
-var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC');
-var C6ACCEL = xdc.useModule('ti.c6accel.ce.C6ACCEL');
-var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
-var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');
+prog.build.platform = "ti.platforms.evmOMAPL138";
-var os = xdc.useModule('ti.sdo.ce.osal.linux.Settings');
-osalGlobal.os = os;
+/* Load support for the Codec Engine OSAL */
+var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
/* Configure CE to use it's DSP Link Linux version */
-var ipc = xdc.useModule('ti.sdo.ce.ipc.Settings');
-ipc.commType = ipc.COMM_DSPLINK;
+osalGlobal.runtimeEnv = osalGlobal.DSPLINK_LINUX;
+
+/* Enable SoCrates tracing in the demo */
+/* var TraceUtil = xdc.useModule('ti.sdo.ce.utils.trace.TraceUtil'); */
+/* TraceUtil.attrs = TraceUtil.SOCRATES_TRACING; */
/*
-* ======== Engine Configuration ========
+ * ======== Engine Configuration ========
*/
var Engine = xdc.useModule('ti.sdo.ce.Engine');
-
-var demoEngine = Engine.create("codecServer", [
- {name: "aachedec", mod:AACDEC, local:false},
- {name: "h264dec", mod:H264DEC, local:false},
- {name: "mpeg4dec", mod:MPEG4DEC, local:false},
- {name: "mpeg2dec", mod:MPEG2DEC, local:false},
- {name: "jpegdec", mod:JPEGDEC, local:false},
- {name: "jpegenc", mod:JPEGENC, local:false},
- {name: "c6accel", mod:C6ACCEL, local:false},
- {name: "h264enc", mod:H264ENC, local:false},
- {name: "mpeg4enc", mod:MPEG4ENC, local:false},
-]);
+var demoEngine = Engine.createFromServer(
+ "codecServer",
+ "./bin/cs.x64P",
+ "ti.sdo.server.cs"
+ );
/* Remote server image */
var combopath = "" + java.lang.System.getenv("CODEC_SERVER");
@@ -58,26 +43,6 @@ else {
demoEngine.server = "./cs.x64P";
}
-var dsplinkDspLinkCfg = xdc.useModule('ti.sdo.ce.ipc.dsplink.DspLinkCfg');
-
-/* ======== Server memory map (DSPLINK) configuration ========
- * This table must match exactly the addresses and sizes of segments in the
- * Server BIOS configuration (.tcf) script. There is exactly one "main", one
- * "link", and one "reset" segment type, and zero or more of "other" types.
- */
-
-/* use the default memory map config for this server */
-demoEngine.armDspLinkConfig = dsplinkDspLinkCfg.DEFAULT_ARMDSPLINKCONFIG[Program.cpu.deviceName];
-demoEngine.armDspLinkConfig.memTable["DDR2"].addr = 0xC3C00000;
-demoEngine.armDspLinkConfig.memTable["DDR2"].size = 0x00300000;
-demoEngine.armDspLinkConfig.memTable["DDRALGHEAP"].addr = 0xC3200000;
-demoEngine.armDspLinkConfig.memTable["DDRALGHEAP"].size = 0x00A00000;
-demoEngine.armDspLinkConfig.memTable["DSPLINKMEM"].addr = 0xC3F01000;
-demoEngine.armDspLinkConfig.memTable["DSPLINKMEM"].size = 0x000FF000;
-demoEngine.armDspLinkConfig.memTable["RESETCTRL"].addr = 0xC3F00000;
-demoEngine.armDspLinkConfig.memTable["RESETCTRL"].size = 0x00000080;
-
-/* Load support for the DMAI module */
+/* Load support for the 'Davinci Multimedia Application Interface' modules */
var DMAI = xdc.loadPackage('ti.sdo.dmai');
-