Currently, to create, say a NV12 image, one needs to do these 2 steps:
opencv_core.CvMat nv21Image = opencv_core.CvMat.create((int)(1.5 * height),
width, opencv_core.CV_8UC2);
nv21Image.getByteBuffer().put(image_data); // byte[] image_data
Most of the time though, the image is placed into the same buffer by the
caller. So, if we wrapped opencv_core.CvMat over an existing buffer, this would
save some time on not having to copy the bytes over.
Original issue reported on code.google.com by
eug...@parsable.comon 10 Feb 2014 at 9:52