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.

Problems when using Rszcopy on DM355EVM

Working procedure of my code IPIPE capture image data , memcpy to inBuf, and JPEG encode inBuf. Memcpy costs about 23ms for 1280x720 pixels, I refer to encode demo, now rewrite my code using Rszcopy.
#include "rszcopy.h"

int capbuf;
static struct buffer ipipebuffer;

// rszcopy init
Rszcopy_Handler hRszcopy = RSZCOPY_FAILURE;
hRszcopy = Rszcopy_create(RSZCOPY_DEFAULTRSZRATE);
Rszcopy_config(hRszcopy, 1280, 720, 1280*2, 720*2);

// capture
CaptureFrame(&capbuf); // capture from MT9T001
DOIPIPING(RAW2YUV, 1280, 720, 1280, 720, capbuf);

// memcpy(inBuf, ipipebuffer.start, inBufSize);
// Rszcopy_execute(hRszcopy, ipipebuffer.start, inBuf);

// ... encoding procedure..
If I use memcpy, all is ok. But if using Rszcopy_execute, nothing was copied but return 1. Anyone could help me to solve this?