My Android camera is passing through an entire image into onPreviewFrame, but I only want the bytes that correspond to a pixel range. For instance an image that is 480x640 in pixels is passed through. I want a new byte[] Array with the pixels in the the range of Rect(100,100,200,200)
public void onPreviewFrame(byte[] arg0, Camera arg1) {
// arg0 = 460,800 BYTES
// the camera's resolution is at 640 x 480
// arg0 format is NV21
}