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.

HEVC encoder algAlloc failed

Hi,

I have using the same code as H.264 for HEVC. H.264 HP is OK but HEVC will fail at algAlloc().


algNumAlloc() gives me 70, and then using it to call algAlloc() always return -1!


Will this be some kind of static parameter setting problem? Without any error code, it is almost impossible to see what's going on inside. Please help on this.

FYI: You can have a look at attachment to see if anything unusual.

  • Hi Hank Lee,

    Can you please give more details on "Using same code as H264 for HEVC".
    Only in 2 cases we get fail in fxns->algAlloc(params, &fxnsPtr, memTab).
         1) memTab or params or fxnsPtr is Null.
         2) params->size is incorrect, What is value of first 4 byte in params?
     
    Regards
    Kuladeepak

  • Hi Kuladeepak,


    Thanks for your hint, I think I figure out the problem.


    The problem is that "size". In typedef of IH265VENC_Params, it has a

    #ifdef _DEBUGLOG
      IH265VENC_DebugParams             debugLogParams;
    #endif /*_DEBUGLOG*/

    DEBUGLOG will be un-defined when C6600 is defined. Then the size should be correct.

    In my original code, I do not know I need to define it to make this struct definition correct.


    After #define C6600, it returns me "5".


    thanks,

    Hank