Home
last modified time | relevance | path

Searched refs:cam_buff (Results 1 – 2 of 2) sorted by relevance

/device/generic/goldfish/camera/
DCallbackNotifier.cpp242 camera_memory_t* cam_buff = mGetMemoryCB(-1, frameSize, 1, mCBOpaque); in onNextFrameAvailable() local
243 if (NULL != cam_buff && NULL != cam_buff->data) { in onNextFrameAvailable()
245 camera_dev->getCurrentFrame(cam_buff->data, V4L2_PIX_FMT_YUV420, in onNextFrameAvailable()
248 CAMERA_MSG_VIDEO_FRAME, cam_buff, 0, mCBOpaque); in onNextFrameAvailable()
249 mCameraMemoryTs.push_back( cam_buff ); in onNextFrameAvailable()
256 camera_memory_t* cam_buff = in onNextFrameAvailable() local
258 if (NULL != cam_buff && NULL != cam_buff->data) { in onNextFrameAvailable()
260 camera_dev->getCurrentFrame(cam_buff->data, in onNextFrameAvailable()
263 mDataCB(CAMERA_MSG_PREVIEW_FRAME, cam_buff, 0, NULL, mCBOpaque); in onNextFrameAvailable()
264 cam_buff->release(cam_buff); in onNextFrameAvailable()
/device/google/cuttlefish/guest/hals/camera/
DCallbackNotifier.cpp198 camera_memory_t* cam_buff = in onNextFrameAvailable() local
200 if (NULL != cam_buff && NULL != cam_buff->data) { in onNextFrameAvailable()
201 memcpy(cam_buff->data, frame, camera_dev->getFrameBufferSize()); in onNextFrameAvailable()
202 mDataCBTimestamp(timestamp, CAMERA_MSG_VIDEO_FRAME, cam_buff, 0, in onNextFrameAvailable()
205 mCameraMemoryTs.push_back(cam_buff); in onNextFrameAvailable()
212 camera_memory_t* cam_buff = in onNextFrameAvailable() local
214 if (NULL != cam_buff && NULL != cam_buff->data) { in onNextFrameAvailable()
215 memcpy(cam_buff->data, frame, camera_dev->getFrameBufferSize()); in onNextFrameAvailable()
216 mDataCB(CAMERA_MSG_PREVIEW_FRAME, cam_buff, 0, NULL, mCBOpaque); in onNextFrameAvailable()
217 cam_buff->release(cam_buff); in onNextFrameAvailable()