Recently engaged in the work related to the development of Android camera, found that this piece is still more complex, from the network also get a lot of relevant information, but are relatively dispersed, for the problems arise difficult to have a comprehensive understanding and positioning.
According to my own habits, I prefer the whole framework to understand first, and then for a part of a serious analysis, so in the case of problems can be targeted.
found that the system could not upload my picture, may be the reason for my local encryption, can only do it
Camera Java application Packages/apps/camera/src/com/android/camera/camera.java |
Camera Java API Frameworks/base/core/java/android/hardware/camera.java |
Camera Native API frameworks/base/core/jni/android_hardware_camera.cpp |
Camera Base API frameworks/base/libs/ui/Camera.cpp Camera Base API frameworks/base/libs/ui/Icamera.cpp Camera Base API frameworks/base/libs/ui/ICameraService.cpp |
Camera Service frameworks/base/camera/libcameraservice/cameraservice.cpp |
Camera HAL (camerahardwareinterface) Camerahal.cpp |
Linux system Call |
V4L2 for Camera Driver |
Camera Sensor Driver |