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.

DM8168: How to use VLIB_Canny_Edge_Detection funciton ?

Tool/software: WEBENCH® Design Tools

I want to use VLIB_Canny_Edge_Detection function will be collected each needle are extracted from the edge of the video data.

But in the use of the error encountered when malloc, because the demo will be six parameters are assigned in front of the space, and processing of data is large, I generally is 1080 p, lead to the failure malloc.

void VLIB_Canny_Edge_Detection(const uint8_t *pInput,
int16_t *pBufGradX,
int16_t *pBufGradY,
int16_t *pBufMag,
uint8_t *pBufOut,
uint8_t *pScratch,
int32_t *numItems,
uint16_t width,
uint16_t height);

demo:

uint8_t *pInput = (uint8_t *) VLIB_malloc(bufferSize * sizeof(uint8_t));
int16_t *pBufGradX = (int16_t *) VLIB_malloc(bufferSize * sizeof(int16_t));
int16_t *pBufGradY = (int16_t *) VLIB_malloc(bufferSize * sizeof(int16_t));
int16_t *pBufMag = (int16_t *) VLIB_malloc(bufferSize * sizeof(int16_t));
uint8_t *pScratch = (uint8_t *) VLIB_malloc(bufferSize * sizeof(uint8_t));
uint8_t *pBufOut = (uint8_t *) VLIB_malloc(bufferSize * sizeof(uint8_t));
uint8_t *pBufOut_cn = (uint8_t *) malloc(bufferSize * sizeof(uint8_t));

Can not take the initiative to go to change the DSP memory size on the premise of solution to use this function?

For certain parameter is set to NULL.

Thanks.

  • Which TI device are you using this software on?

    Do you use a TI EVM/DSK or do you have your own custom board?

    What is the relation to WEBENCH which is entered for this post?

    The linker .cmd file assigns the memory area to which all of the heap may reside. You can edit the .cmd file to change which memory area is used if you want to take the initiative to change the DSP memory locations. Depending on how you build the program, you may have to instead edit a support or .cfg file to make those changes.

    Have you found that the demo is intended to support 1080p video?

    Regards,
    RandyP
  • I use DM8168, DSP is C674, software development environment using the DVR_RDK4. 0, now wants to invoke the API in VLIB processing in RDK 1080p video data, if malloc memory allocations will lead to DSP memory use,

    if without changing what you said .cmd file under the condition of DSP memory address, there is no other method can be used normally in VLIB APIS?


    Regards,
    Jarman
  • Jarman,

    We will have a Moderator move your thread to the DM816x forum. They may be able to remove the WEBENCH name from the thread title since that will mislead users and support people alike. I am not sure they can do that, but will ask.

    That is the forum where the right people may be available to help with DM8168 and RDK issues or to recommend a support path for you.

    On the DM8168 Product Folder page, there is a note about support for software and hardware for the product. Please review the note so you will know what to expect in support and who to go to. In part, it says

    - For any detailed software support, bug fixes, or enhancements to this software, please contact any of the select partners recommended below. They have extensive DM816x software expertise (including both RDK and EZSDK) and systems experience.
    - Customers starting new designs are also recommended to contact these ecosystem partners for prepackaged hardware and software solutions, as well as for full design consultation and support.

    The list of support partners are listed on the DM8168 Product Folder page. They are not duplicated here, in case that list changes over time.

    Regards,
    RandyP

  • Hi Jarman,

    Please check if the below e2e threads will be in help:

    e2e.ti.com/.../544971
    e2e.ti.com/.../571580
    e2e.ti.com/.../510729
    e2e.ti.com/.../517946
    e2e.ti.com/.../435117

    Regards,
    Pavel