/device/generic/goldfish/camera/ |
D | PreviewWindow.cpp | 99 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()
|
D | EmulatedCamera.cpp | 237 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 …]
|
D | CallbackNotifier.cpp | 221 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()
|
D | PreviewWindow.h | 101 EmulatedCameraDevice* camera_dev); 125 bool adjustPreviewDimensions(EmulatedCameraDevice* camera_dev);
|
D | WorkerThread.h | 30 EmulatedCameraDevice* camera_dev,
|
D | CallbackNotifier.h | 168 EmulatedCameraDevice* camera_dev);
|
D | EmulatedCamera.h | 95 EmulatedCameraDevice* camera_dev);
|
/device/google/cuttlefish/guest/hals/camera/ |
D | PreviewWindow.cpp | 99 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()
|
D | EmulatedCamera.cpp | 192 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 …]
|
D | CallbackNotifier.cpp | 195 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()
|
D | PreviewWindow.h | 104 EmulatedCameraDevice* camera_dev); 128 bool adjustPreviewDimensions(EmulatedCameraDevice* camera_dev);
|
D | EmulatedCameraDevice.h | 376 inline explicit WorkerThread(EmulatedCameraDevice* camera_dev) in WorkerThread() argument 378 mCameraDevice(camera_dev), in WorkerThread()
|
D | CallbackNotifier.h | 159 EmulatedCameraDevice* camera_dev);
|
D | EmulatedCamera.h | 95 EmulatedCameraDevice* camera_dev);
|