Home
last modified time | relevance | path

Searched refs:camera_dev (Results 1 – 14 of 14) sorted by relevance

/device/generic/goldfish/camera/
DPreviewWindow.cpp99 EmulatedCameraDevice* camera_dev) in onNextFrameAvailable() argument
109 if (adjustPreviewDimensions(camera_dev)) { in onNextFrameAvailable()
168 res = camera_dev->getCurrentPreviewFrame(img, &frame_timestamp); in onNextFrameAvailable()
185 bool PreviewWindow::adjustPreviewDimensions(EmulatedCameraDevice* camera_dev) in adjustPreviewDimensions() argument
188 if (mPreviewFrameWidth == camera_dev->getFrameWidth() && in adjustPreviewDimensions()
189 mPreviewFrameHeight == camera_dev->getFrameHeight()) { in adjustPreviewDimensions()
195 mPreviewFrameWidth = camera_dev->getFrameWidth(); in adjustPreviewDimensions()
196 mPreviewFrameHeight = camera_dev->getFrameHeight(); in adjustPreviewDimensions()
DEmulatedCamera.cpp237 EmulatedCameraDevice* camera_dev) in onNextFrameAvailable() argument
240 mPreviewWindow.onNextFrameAvailable(timestamp, camera_dev); in onNextFrameAvailable()
243 mCallbackNotifier.onNextFrameAvailable(timestamp, camera_dev); in onNextFrameAvailable()
264 EmulatedCameraDevice* const camera_dev = getCameraDevice(); in connectCamera() local
265 ALOGE_IF(camera_dev == NULL, "%s: No camera device instance.", __FUNCTION__); in connectCamera()
267 if (camera_dev != NULL) { in connectCamera()
398 EmulatedCameraDevice* const camera_dev = getCameraDevice(); in startRecording() local
399 if (camera_dev == nullptr || !camera_dev->isStarted()) { in startRecording()
412 uint32_t cur_fmt = camera_dev->getOriginalPixelFormat(); in startRecording()
419 int cur_width = camera_dev->getFrameWidth(); in startRecording()
[all …]
DCallbackNotifier.cpp221 EmulatedCameraDevice* camera_dev) in onNextFrameAvailable() argument
241 const size_t frameSize = camera_dev->getVideoFrameBufferSize(); in onNextFrameAvailable()
245 camera_dev->getCurrentFrame(cam_buff->data, V4L2_PIX_FMT_YUV420, in onNextFrameAvailable()
257 mGetMemoryCB(-1, camera_dev->getFrameBufferSize(), 1, mCBOpaque); in onNextFrameAvailable()
260 camera_dev->getCurrentFrame(cam_buff->data, in onNextFrameAvailable()
261 camera_dev->getOriginalPixelFormat(), in onNextFrameAvailable()
291 EmulatedCameraDevice::FrameLock lock(*camera_dev); in onNextFrameAvailable()
292 const void* frame = camera_dev->getCurrentFrame(); in onNextFrameAvailable()
297 int width = camera_dev->getFrameWidth(); in onNextFrameAvailable()
298 int height = camera_dev->getFrameHeight(); in onNextFrameAvailable()
DPreviewWindow.h101 EmulatedCameraDevice* camera_dev);
125 bool adjustPreviewDimensions(EmulatedCameraDevice* camera_dev);
DWorkerThread.h30 EmulatedCameraDevice* camera_dev,
DCallbackNotifier.h168 EmulatedCameraDevice* camera_dev);
DEmulatedCamera.h95 EmulatedCameraDevice* camera_dev);
/device/google/cuttlefish/guest/hals/camera/
DPreviewWindow.cpp99 EmulatedCameraDevice* camera_dev) { in onNextFrameAvailable() argument
108 if (adjustPreviewDimensions(camera_dev)) { in onNextFrameAvailable()
172 res = camera_dev->getCurrentPreviewFrame(img); in onNextFrameAvailable()
189 bool PreviewWindow::adjustPreviewDimensions(EmulatedCameraDevice* camera_dev) { in adjustPreviewDimensions() argument
191 if (mPreviewFrameWidth == camera_dev->getFrameWidth() && in adjustPreviewDimensions()
192 mPreviewFrameHeight == camera_dev->getFrameHeight()) { in adjustPreviewDimensions()
198 mPreviewFrameWidth = camera_dev->getFrameWidth(); in adjustPreviewDimensions()
199 mPreviewFrameHeight = camera_dev->getFrameHeight(); in adjustPreviewDimensions()
DEmulatedCamera.cpp192 EmulatedCameraDevice* camera_dev) { in onNextFrameAvailable() argument
194 mPreviewWindow.onNextFrameAvailable(frame, timestamp, camera_dev); in onNextFrameAvailable()
197 mCallbackNotifier.onNextFrameAvailable(frame, timestamp, camera_dev); in onNextFrameAvailable()
217 EmulatedCameraDevice* const camera_dev = getCameraDevice(); in connectCamera() local
218 ALOGE_IF(camera_dev == NULL, "%s: No camera device instance.", __FUNCTION__); in connectCamera()
220 if (camera_dev != NULL) { in connectCamera()
389 EmulatedCameraDevice* const camera_dev = getCameraDevice(); in takePicture() local
390 if (camera_dev->isStarted()) { in takePicture()
392 camera_dev->stopDeliveringFrames(); in takePicture()
393 camera_dev->stopDevice(); in takePicture()
[all …]
DCallbackNotifier.cpp195 EmulatedCameraDevice* camera_dev) { in onNextFrameAvailable() argument
199 mGetMemoryCB(-1, camera_dev->getFrameBufferSize(), 1, mCBOpaque); in onNextFrameAvailable()
201 memcpy(cam_buff->data, frame, camera_dev->getFrameBufferSize()); in onNextFrameAvailable()
213 mGetMemoryCB(-1, camera_dev->getFrameBufferSize(), 1, mCBOpaque); in onNextFrameAvailable()
215 memcpy(cam_buff->data, frame, camera_dev->getFrameBufferSize()); in onNextFrameAvailable()
241 const CameraParameters* cameraParameters = camera_dev->getCameraParameters(); in onNextFrameAvailable()
252 int width = camera_dev->getFrameWidth(); in onNextFrameAvailable()
253 int height = camera_dev->getFrameHeight(); in onNextFrameAvailable()
DPreviewWindow.h104 EmulatedCameraDevice* camera_dev);
128 bool adjustPreviewDimensions(EmulatedCameraDevice* camera_dev);
DEmulatedCameraDevice.h376 inline explicit WorkerThread(EmulatedCameraDevice* camera_dev) in WorkerThread() argument
378 mCameraDevice(camera_dev), in WorkerThread()
DCallbackNotifier.h159 EmulatedCameraDevice* camera_dev);
DEmulatedCamera.h95 EmulatedCameraDevice* camera_dev);