This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm6446 h264编码算法集成问题



在server中,我集成了两个算法codec,一个是OwnAlgo,一个是h264,两个算法单独创建和运行时,均没有问题,但是我想同时创建两个算法,通过算法对应的process和control对算法进行处理控制,但是当我同时创建OwnAlgo算法后接着想h264算法时,出现了以下错误:

[DSP] @0x00022b46:[T:0x87b00344] ti.sdo.ce.osal.AlgMem - AlgMem_create> Granting DMA channels to algorithm through DMAN3 FAILED (0xfffffffb).
我的server.cfg文件中,关于DMAN3部分配置如下:
var DMAN3 = xdc.useModule('ti.sdo.fc.dman3.DMAN3');
DMAN3.heapInternal = "L1DHEAP";
DMAN3.heapExternal = "DDR";

DMAN3.paRamBaseIndex = 78;
DMAN3.numQdmaChannels = 8;
DMAN3.qdmaChannels = [0,1,2,3,4,5,6,7];
DMAN3.numPaRamEntries = 48;
DMAN3.numPaRamGroup[0] = 48;
DMAN3.numTccGroup[0] = 8;
DMAN3.tccAllocationMaskL = 0;
DMAN3.tccAllocationMaskH = 0xffffffff;

在OwnAlgo创建时,我需要创建3个dma通道的内容,在h264中,创建时需要多少个dma通道我不大清楚(使用的是ti提供的h264编码库,具体实现不可见),以上server.cfg中关于DMAN3的配置内容和h264算法提供的demo中的配置内容一样的。

我觉得是不是我的dma资源分少了,导致了算法创建失败的错误?