使用Android L中的新的Camera API的一个照相应用:L Camera

jopen 9年前

使用Android L中的新的Camera API的一个照相应用:L Camera

L Camera 是一个开源实验相机应用,用于Android L设备。使用了新的android.hardware.camera2 API。当前,只支持运行Android Lollipop preview (LPX13D)的Nexus 5设备。

请注意,这个程序是用来测试和研究照相机API的新功能,它不能实现使用,因为它缺乏许多基本的相机功能(位置标注,白平衡,照片回顾,闪光灯控制等)。

See what you can achieve on the Nexus 5 with the new API.

特性:

  • True manual focus (adjustable focus distance)
  • Manual exposure time (0.8", 1/2, 1/4, 1/6, 1/8, 1/15, 1/30, 1/60, 1/100, 1/125, 1/250, 1/500, 1/1000, 1/2000, 1/4000, 1/8000, 1/16000)
  • Manual ISO (100, 200, 400, 800, 1600, 3200, 6400, 10000)
  • DNG output support
  • 30-fps full-resolution burst capture with focus stacking & exposure bracketing in DNG
  • 30-fps full-resolution video recording
  • Material design

使用

Just use it like any camera! Tap the floating button on the left-bottom corner to bring up settings:

  • Focus
    • Auto Focus: Whether the auto focus mechanism is enabled (tap on the preview to focus on a specific point).
    • Focus Distance: Manually control focus distance if auto focus is turned off.
  • Exposure
    • Auto Exposure: Whether auto exposure and auto white balance routines are enabled (tap on the preview to start a metering sequence).
    • Shutter Speed: Control the exposure time. (Setting a slow shutter speed will affect preview frame rate)
    • ISO: Control the sensitivity of the sensor.
  • Burst
    • Burst: Control whether burst capturing is enabled. If enabled, the camera will capture 7 DNG images at maximum resolution at 30 fps. (Note that JPEG output is disabled during burst capturing.)
    • Focus Stacking: If enabled, the camera will capture a series of images ranging from infinity focus and to the nearest focus distance possible.
    • Exposure Bracketing: If enabled, the camera will capture a series of 7 images ranging from -3 to +3 EV of the standard expousre. (Only the shutter speed is varied, the ISO stays the same)
  • Photo/Video: Switch between photo capturing and video recording mode. The video is recorded at maximum resolution (3264x2448) at 30 fps (may be lower if you choose a slow shutter speed), encoded with H.264 at 65mbps for video and 44.1khz 320kbps AAC-LC for audio in MP4 container. Focus distance and exposure are adjustable during recording.

项目主页:http://www.open-open.com/lib/view/home/1413947552934