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.
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?#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..