使用Android L中的新的Camera API的一個照相應用:L Camera

jopen 10年前發布 | 58K 次閱讀 L Camera Android開發 移動開發

使用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.baiduhome.net/lib/view/home/1413947552934

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!