title: Access Android camera with NDK
body: <p>I have been trying to figure out how to use NDK to access camera on android using its HAL interface. 
  I have downloaded all the related files from here : 
  <a href="https://github.com/android/platform_hardware_libhardware/blob/master/include/hardware/camera.h" rel="noreferrer">https://github.com/android/platform_hardware_libhardware/blob/master/include/hardware/camera.h</a></p>
  
  <p>and here : </p>
  
  <p><a href="https://github.com/android/platform_system_core" rel="noreferrer">https://github.com/android/platform_system_core</a></p>
  
  <p>it does seem like I managed to get all the relevant files but yet the project will not compile due to numerous errors, starting from problematic makefiles and ending with missing functions like this one : </p>
  
  <pre><code>C:/android-ndk-r10d/samples/hello-jni/jni/camera/Camera.cpp:409:55: error: 'clone_camera_metadata' was not declared in this scope
           mSettings = clone_camera_metadata(new_settings);
  </code></pre>
  
  <p>could somebody who managed to use camera HAL shed some light on this issue </p>
  
  <p>thank you</p>