kbarni / LCCV

LibCamera wrapper library for OpenCV
61 stars 30 forks source link

Memcpy should be avoided. #8

Open kbingham opened 2 years ago

kbingham commented 2 years ago

At : https://github.com/kbarni/LCCV/blob/main/src/lccv.cpp#L190, there is a memcpy of the captured image into a new buffer.

Can OpenCV be given the buffer directly? memcpy on image buffers should be avoided, and libcamera aims to support zero-copy usecases.