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.

How to allocate a big buffer in DSP side for H.264 codec? Urgent help needed

Dear Experts

How can I allocate a 0.8M buffer in DSP side for H.264/AVC decoder, in JM code a buffer called "VideoParameters", which is more than 0.8M size, 

How can i allocate it in DSP side?

 

All bests,

David

  • Are you an XDAIS algorithm who needs this as an 'internal' temp buffer?  If so, add it to your memTabs[] array (in IALG_Fxns->algAlloc())so the framework can allocate it for you.

    Are you a DSP-side application?  If so, use BIOS's MEM_alloc() API call.

    (In both of the above, make sure you configure 'enough' memory for BIOS's allocator to allocate from!)

    Or are you an ARM-side application providing a data buffer coming from an ARM application?  If so, you probably allocate it from CMEM.

    Chris

  • Thank you, Chris

    I have not got your response yet,  I just do not know why you said I can use "MEM_calloc()" instead of "calloc()", I try a lot of times, but failed. like this

    undefined                        first referenced

     symbol                              in file

    ---------                        ----------------

    _MEM_calloc                      /home/dli/turkey/8-ce-jm/1-cejm2/examples/ti/sdo/ce/examples/codecs/viddec_copy/lib/viddec_copy.a64P

    >>   error: relocation overflow occurred at address 0x00000044 in section

                '.text' of input file 'decoder_test.o64P

                (/home/dli/turkey/8-ce-jm/1-cejm2/examples/ti/sdo/ce/examples/codecs/viddec_copy/lib/viddec_copy.a64P)'.  The 29-bit PC-relative displacement 505235552 at this location is too large to fit into the 21-bit PC-Relative field; the destination address is too far away from the instruction. You may need to add a mask to the assembly instruction or use other target specific assembly features if you really only need the lowest 21 bits of this symbol. Please see the section on Relocation in the Assembly User's Guide. 

     

     

    are you talking about CCS? I am not using CCS, but I am using "codec engine framework". 

    can you give any response. thank you.


    All bests,

     

    David