本讲是android camera专题系列的第35讲,我们介绍android camera2 api专题的ae手动曝光实战。
更多资源:
资源 | 描述 |
---|---|
在线课程 | |
知识星球 | 星球名称:深入浅出android camera 星球id: 17296815 |
极客笔记圈 |
geekcamera2 手动调整iso
ui setup
mainactivity#camerasetup
|--> final seekbar iso_seek_bar = findviewbyid(r.id.iso_seekbar);
|--> iso_seek_bar.setonseekbarchangelistener(null);
|--> iso_seek_bar.setonseekbarchangelistener(new onseekbarchangelistener()
ui调整iso流程
mainactivity#iso_seek_bar#onprogresschanged
|--> preview#setiso
|--> cameracontroller2#setiso
|--> camerasetting#setaemode
|--> capturerequest.control_ae_mode to off
|--> capturerequest.sensor_sensitivity to iso
|--> capturerequest.sensor_exposure_time to exp_time
|--> capturerequest.sensor_frame_duration to sensor_frame_duration
geekcamera2 手动调整曝光时间
ui setup
mainactivity#camerasetup
|--> final seekbar exposure_time_seek_bar = findviewbyid(r.id.exposure_time_seekbar);
|--> exposure_time_seek_bar.setonseekbarchangelistener(null);
|--> exposure_time_seek_bar.setonseekbarchangelistener(new onseekbarchangelistener
ui 调整曝光时间
mainactivity#exposure_time_seek_bar#onprogresschanged
|--> preview#setexposuretime
|--> cameracontroller2#setexposuretime
|--> camerasetting#setaemode
|--> capturerequest.control_ae_mode to off
|--> capturerequest.sensor_sensitivity to iso
|--> capturerequest.sensor_exposure_time to exp_time
|--> capturerequest.sensor_frame_duration to sensor_frame_duration