TI中文支持网
TI专业的中文技术问题搜集分享网站

dm365 jpgenc 出错

最近再调jpgenc ,用dvsdk2的demo可以用,但是我自己往codec server加的时候出现下面问题。

我的部分代码:

   hEngine = Engine_open(envp->engineName, NULL, NULL);

    printf("codec engine is %s\n", envp->engineName);

 

    if (hEngine == NULL) {

        ERR("Failed to open codec engine %s\n", envp->engineName);

        cleanup(THREAD_FAILURE);

    }

 

params.maxWidth          = envp->imageWidth;

    params.maxHeight         = envp->imageHeight;

     if (colorSpace ==  ColorSpace_YUV420PSEMI) {

        params.forceChromaFormat = XDM_YUV_420SP;

    } else {

        params.forceChromaFormat = XDM_YUV_422ILE;

    }

dynParams.inputChromaFormat=XDM_YUV_420SP;

    dynParams.inputWidth      = params.maxWidth;

    dynParams.inputHeight     = params.maxHeight;

hIe = Ienc1_create(hEngine, envp->videoEncoder, &params, &dynParams);

调试信息如下:

Algorithm creation FAILED; make sure that 1) alg params are correct/appropriate,

2) there is enough internal and external algorithm memory available — check DSKT2 settings for heap assignments and scratch allocation  @1,055,065us: [+0 T:0x49d8d490] ti.sdo.ce.alg.Algorithm – Algorithm_delete> Enter(alg=0x138fe98)
                                                                                                                                                                            @1,055,264us: [+0 T:0x49d8d490] ti.sdo.ce.alg.Algorithm – Algorithm_delete> Exit
                                                                         @1,055,410us: [+0 T:0x49d8d490] ti.sdo.ce.alg.Algorithm – Algorithm_create> return (0x0)
                                                                                                                                                                 @1,055,548us: [+2 T:0x49d8d490] CV – VISA_create2> FAILED to create local codec.
                                                              @1,055,864us: [+0 T:0x49d8d490] CV – VISA_delete(0x11a43d8)
                                                                                                                         @1,056,280us: [+5 T:0x49d8d490] CV – VISA_delete> deleting codec (localQueue=0xffff, remoteQueue=0xffff)
                                              @1,056,504us: [+0 T:0x49d8d490] ti.sdo.ce.image1.IMGENC1 – IMGENC_create> return (0x0)
                                                                                                                                    @1,058,105us: [+7 T:0x49d8d490] ti.sdo.dmai – [Ienc1] Can't open imaging encode algorithm
                                          Error: Failed to create video encoder: jpegenc

急求ti的大师怎么解决?谢了。

Feng Dong:

首先检查一下你的codec的参数对照user guide看看是否有冲突

赞(0)
未经允许不得转载:TI中文支持网 » dm365 jpgenc 出错
分享到: 更多 (0)