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::reconnect()
88 status_t Camera::lock()
95 status_t Camera::unlock()
102 // pass the buffered IGraphicBufferProducer to the camera service
103 status_t Camera::setPreviewTarget(const sp<IGraphicBufferProducer>& bufferProducer)
113 status_t Camera::startPreview()
121 status_t Camera::storeMetaDataInBuffers(bool enabled)
131 status_t Camera::startRecording()
140 void Camera::stopPreview()
149 void Camera::stopRecording()
162 void Camera::releaseRecordingFrame(const sp<IMemory>& mem)
171 bool Camera::previewEnabled()
180 bool Camera::recordingEnabled()
188 status_t Camera::autoFocus()
196 status_t Camera::cancelAutoFocus()
205 status_t Camera::takePicture(int msgType)
214 status_t Camera::setParameters(const String8& params)
223 String8 Camera::getParameters() const
232 // send command to camera driver
233 status_t Camera::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2)
241 void Camera::setListener(const sp<CameraListener>& listener)
247 void Camera::setRecordingProxyListener(const sp<ICameraRecordingProxyListener>& listener)
253 void Camera::setPreviewCallbackFlags(int flag)
261 status_t Camera::setPreviewCallbackTarget(
269 // callback from camera service
270 void Camera::notifyCallback(int32_t msgType, int32_t ext1, int32_t ext2)
275 // callback from camera service when frame or image is ready
276 void Camera::dataCallback(int32_t msgType, const sp<IMemory>& dataPtr,
289 // callback from camera service when timestamped frame is ready
290 void Camera::dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr)
319 sp<ICameraRecordingProxy> Camera::getRecordingProxy() {
324 status_t Camera::RecordingProxy::startRecording(const sp<ICameraRecordingProxyListener>& listener)
332 void Camera::RecordingProxy::stopRecording()
338 void Camera::RecordingProxy::releaseRecordingFrame(const sp<IMemory>& mem)
344 Camera::RecordingProxy::RecordingProxy(const sp<Camera>& camera)
346 mCamera = camera;