Passing camera frame from java to C