Home | History | Annotate | Download | only in camera

Lines Matching refs:Camera

19 #define LOG_TAG "Camera"
27 #include <camera/Camera.h>
28 #include <camera/ICameraRecordingProxyListener.h>
29 #include <camera/ICameraService.h>
30 #include <camera/ICamera.h>
37 Camera::Camera(int cameraId)
42 CameraTraits<Camera>::TCamConnectService CameraTraits<Camera>::fnConnectService =
45 // construct a camera client from an existing camera remote
46 sp<Camera> Camera::create(const sp<ICamera>& camera)
49 if (camera == 0) {
50 ALOGE("camera remote is a NULL pointer");
54 sp<Camera> c = new Camera(-1);
55 if (camera->connect(c) == NO_ERROR) {
57 c->mCamera = camera;
58 camera->asBinder()->linkToDeath(c);
64 Camera::~Camera()
74 sp<Camera> Camera::connect(int cameraId, const String16& clientPackageName,
80 status_t Camera::connectLegacy(int cameraId, int halVersion,
83 sp<Camera>& camera)
85 ALOGV("%s: connect legacy camera device", __FUNCTION__);
86 sp<Camera> c = new Camera(cameraId);
98 camera = c;
100 ALOGW("An error occurred while connecting to camera: %d", cameraId);
106 status_t Camera::reconnect()
114 status_t Camera::lock()
121 status_t Camera::unlock()
128 // pass the buffered IGraphicBufferProducer to the camera service
129 status_t Camera::setPreviewTarget(const sp<IGraphicBufferProducer>& bufferProducer)
139 status_t Camera::startPreview()
147 status_t Camera::storeMetaDataInBuffers(bool enabled)
157 status_t Camera::startRecording()
166 void Camera::stopPreview()
175 void Camera::stopRecording()
188 void Camera::releaseRecordingFrame(const sp<IMemory>& mem)
197 bool Camera::previewEnabled()
206 bool Camera::recordingEnabled()
214 status_t Camera::autoFocus()
222 status_t Camera::cancelAutoFocus()
231 status_t Camera::takePicture(int msgType)
240 status_t Camera::setParameters(const String8& params)
249 String8 Camera::getParameters() const
258 // send command to camera driver
259 status_t Camera::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2)
267 void Camera::setListener(const sp<CameraListener>& listener)
273 void Camera::setRecordingProxyListener(const sp<ICameraRecordingProxyListener>& listener)
279 void Camera::setPreviewCallbackFlags(int flag)
287 status_t Camera::setPreviewCallbackTarget(
295 // callback from camera service
296 void Camera::notifyCallback(int32_t msgType, int32_t ext1, int32_t ext2)
301 // callback from camera service when frame or image is ready
302 void Camera::dataCallback(int32_t msgType, const sp<IMemory>& dataPtr,
315 // callback from camera service when timestamped frame is ready
316 void Camera::dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr)
345 sp<ICameraRecordingProxy> Camera::getRecordingProxy() {
350 status_t Camera::RecordingProxy::startRecording(const sp<ICameraRecordingProxyListener>& listener)
358 void Camera::RecordingProxy::stopRecording()
364 void Camera::RecordingProxy::releaseRecordingFrame(const sp<IMemory>& mem)
370 Camera::RecordingProxy::RecordingProxy(const sp<Camera>& camera)
372 mCamera = camera;