你好,我尝试着在video_copy例程中进行调用c6accel,查阅关于c6accel的使用文档时见下面说明:
The configuration file .cfg includes the specific unit server that needs to be invoked in the application:
var demoEngine = Engine.createFromServer(
"omap3530",
"./omap3530.x64P",
"ti.c6accel_unitservers.omap3530"
);
注释说明只能包含唯一的server库(unit server),我的理解是我要调用c6accel就必须把相应平台的库包含进来,如./omap3530.x64P,
然而video_copy中本身需要调用video_copy.x64p,见video_cfg下的:
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var myEngine = Engine.createFromServer(
"video_copy", // Engine name (as referred to in the C app)
// path to server exe, relative to its package dir
serverName,
"ti.sdo.ce.examples.servers.video_copy" // server package
);
请问此时我该怎么解决这个矛盾?
例程中为在cfg中未添加c6accel库编译时显示如下:
undefined first referenced symbol in file ——— —————- _C6accel_create package/cfg/bin/ti_platforms_evm3530/app_local/app.o64P
_C6accel_delete package/cfg/bin/ti_platforms_evm3530/app_local/app.o64P
error: unresolved symbols remain
error: errors encountered during linking;
我的理解就是在cfg文件中没加入相应库出现的问题,望答复,谢谢;
Chris Meng:
Xu Bin,
c6accel是基于CE之上的,可以直接调用,为什么你还要在video copy里面调用?
http://processors.wiki.ti.com/index.php/C6EZAccel
C6EZAccel also consists of an ARM side library build on top of Codec Engine which provides APIs that allow ARM side application code to invoke execution of XDAIS algorithms on the DSP.
bin xu7:
回复 Chris Meng:
您好,因为我需要在DM3730上的DSP端处理一些自己的算法,其中自己的算法需要做一些边缘检测,在c6accel库里正好有相应API,所以打算在video_copy里调用,如你所说,c6accel是可以凌驾于CE之上直接调用,但不也可以在CE中使用吗?
TI provides these codecs as part of the SW offering for the SoC and recommends the usage of Codec Engine.