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.