Home | History | Annotate | Download | only in camera

Lines Matching defs:Camera

19 #define LOG_TAG "Camera"
27 #include <Camera.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<::android::hardware::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 IInterface::asBinder(camera)->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);
99 camera = c;
128 ALOGW("An error occurred while connecting to camera %d: %s", cameraId,
137 status_t Camera::reconnect()
145 status_t Camera::lock()
152 status_t Camera::unlock()
159 // pass the buffered IGraphicBufferProducer to the camera service
160 status_t Camera::setPreviewTarget(const sp<IGraphicBufferProducer>& bufferProducer)
169 status_t Camera::setVideoTarget(const sp<IGraphicBufferProducer>& bufferProducer)
179 status_t Camera::startPreview()
187 status_t Camera::setVideoBufferMode(int32_t videoBufferMode)
196 status_t Camera::startRecording()
205 void Camera::stopPreview()
214 void Camera::stopRecording()
227 void Camera::releaseRecordingFrame(const sp<IMemory>& mem)
235 void Camera::releaseRecordingFrameHandle(native_handle_t* handle)
243 void Camera::releaseRecordingFrameHandleBatch(
252 bool Camera::previewEnabled()
261 bool Camera::recordingEnabled()
269 status_t Camera::autoFocus()
277 status_t Camera::cancelAutoFocus()
286 status_t Camera::takePicture(int msgType)
295 status_t Camera::setParameters(const String8& params)
304 String8 Camera::getParameters() const
313 // send command to camera driver
314 status_t Camera::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2)
322 void Camera::setListener(const sp<CameraListener>& listener)
328 void Camera::setRecordingProxyListener(const sp<ICameraRecordingProxyListener>& listener)
334 void Camera::setPreviewCallbackFlags(int flag)
342 status_t Camera::setPreviewCallbackTarget(
350 // callback from camera service
351 void Camera::notifyCallback(int32_t msgType, int32_t ext1, int32_t ext2)
356 // callback from camera service when frame or image is ready
357 void Camera::dataCallback(int32_t msgType, const sp<IMemory>& dataPtr,
370 // callback from camera service when timestamped frame is ready
371 void Camera::dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr)
400 void Camera::recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle)
429 void Camera::recordingFrameHandleCallbackTimestampBatch(
460 sp<ICameraRecordingProxy> Camera::getRecordingProxy() {
465 status_t Camera::RecordingProxy::startRecording(const sp<ICameraRecordingProxyListener>& listener)
473 void Camera::RecordingProxy::stopRecording()
479 void Camera::RecordingProxy::releaseRecordingFrame(const sp<IMemory>& mem)
485 void Camera::RecordingProxy::releaseRecordingFrameHandle(native_handle_t* handle) {
490 void Camera::RecordingProxy::releaseRecordingFrameHandleBatch(
496 Camera::RecordingProxy::RecordingProxy(const sp<Camera>& camera)
498 mCamera = camera;