• Home
  • Raw
  • Download

Lines Matching refs:frame

143     mm_camera_super_buf_t* frame =  in zsl_channel_cb()  local
145 if (frame == NULL) { in zsl_channel_cb()
150 *frame = *recvd_frame; in zsl_channel_cb()
189 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
190 QCameraStream *pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
193 pMetaFrame = frame->bufs[i]; //find the metadata in zsl_channel_cb()
230 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
231 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
234 pMetaFrame = frame->bufs[i]; in zsl_channel_cb()
250 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
251 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
254 frame->bufs[i]->buf_idx, in zsl_channel_cb()
255 frame->bufs[i]->frame_idx, in zsl_channel_cb()
257 frame->bufs[i]->ts.tv_sec, in zsl_channel_cb()
258 frame->bufs[i]->ts.tv_nsec); in zsl_channel_cb()
266 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in zsl_channel_cb()
269 free(frame); in zsl_channel_cb()
270 frame = NULL; in zsl_channel_cb()
291 mm_camera_super_buf_t *frame) in selectScene() argument
297 if ((NULL == frame) || (NULL == pChannel)) { in selectScene()
308 for (uint32_t i = 0; i < frame->num_bufs; i++) { in selectScene()
309 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in selectScene()
312 pMetaFrame = frame->bufs[i]; in selectScene()
330 for (uint32_t i = 0; i < frame->num_bufs; i++) { in selectScene()
331 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in selectScene()
334 preview_frame = frame->bufs[i]; in selectScene()
399 mm_camera_super_buf_t* frame = in capture_channel_cb_routine() local
401 if (frame == NULL) { in capture_channel_cb_routine()
406 *frame = *recvd_frame; in capture_channel_cb_routine()
429 for (uint32_t i = 0; i < frame->num_bufs; i++) { in capture_channel_cb_routine()
430 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in capture_channel_cb_routine()
433 pMetaFrame = frame->bufs[i]; //find the metadata in capture_channel_cb_routine()
447 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in capture_channel_cb_routine()
450 free(frame); in capture_channel_cb_routine()
451 frame = NULL; in capture_channel_cb_routine()
649 mm_camera_super_buf_t* frame = in postproc_channel_cb_routine() local
651 if (frame == NULL) { in postproc_channel_cb_routine()
655 *frame = *recvd_frame; in postproc_channel_cb_routine()
664 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
705 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in synchronous_stream_cb_routine() local
706 if (NULL == frame) { in synchronous_stream_cb_routine()
721 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in synchronous_stream_cb_routine()
723 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
729 frameTime = nsecs_t(frame->ts.tv_sec) * 1000000000LL + frame->ts.tv_nsec; in synchronous_stream_cb_routine()
736 pme->TsMakeupProcess_Preview(frame,stream); in synchronous_stream_cb_routine()
740 uint32_t idx = frame->buf_idx; in synchronous_stream_cb_routine()
747 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
799 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in preview_stream_cb_routine() local
800 if (NULL == frame) { in preview_stream_cb_routine()
815 pme->mLastPreviewFrameID = frame->frame_idx; in preview_stream_cb_routine()
818 (!pme->needProcessPreviewFrame(frame->frame_idx))) || in preview_stream_cb_routine()
820 (memory->isBufOwnedByCamera(frame->buf_idx)))) { in preview_stream_cb_routine()
825 stream->bufDone(frame->buf_idx); in preview_stream_cb_routine()
836 uint32_t idx = frame->buf_idx; in preview_stream_cb_routine()
838 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
848 pme->TsMakeupProcess_Preview(frame,stream); in preview_stream_cb_routine()
1134 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in nodisplay_preview_stream_cb_routine() local
1135 if (NULL == frame) { in nodisplay_preview_stream_cb_routine()
1141 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in nodisplay_preview_stream_cb_routine()
1143 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1152 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in nodisplay_preview_stream_cb_routine()
1155 preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in nodisplay_preview_stream_cb_routine()
1158 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
1160 if ((pme->needProcessPreviewFrame(frame->frame_idx)) && in nodisplay_preview_stream_cb_routine()
1168 cbArg.user_data = (void *) &frame->buf_idx; in nodisplay_preview_stream_cb_routine()
1174 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1177 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1215 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in rdi_mode_stream_cb_routine() local
1216 if (NULL == frame) { in rdi_mode_stream_cb_routine()
1220 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in rdi_mode_stream_cb_routine()
1222 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1230 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
1233 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1237 camera_memory_t *preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in rdi_mode_stream_cb_routine()
1239 previewMemObj->cleanCache(frame->buf_idx); in rdi_mode_stream_cb_routine()
1241 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
1243 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1251 cbArg.user_data = (void *) &frame->buf_idx; in rdi_mode_stream_cb_routine()
1257 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1262 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1267 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
1270 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1274 int fd = previewMemObj->getFd(frame->buf_idx); in rdi_mode_stream_cb_routine()
1275 LOGD("Preview frame fd =%d for index = %d ", fd, frame->buf_idx); in rdi_mode_stream_cb_routine()
1276 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1288 cbArg.user_data = (void *) &frame->buf_idx; in rdi_mode_stream_cb_routine()
1294 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1340 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in postview_stream_cb_routine() local
1341 if (NULL == frame) { in postview_stream_cb_routine()
1347 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in postview_stream_cb_routine()
1349 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
1353 err = stream->bufDone(frame->buf_idx); in postview_stream_cb_routine()
1402 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in video_stream_cb_routine() local
1412 frame->stream_id, in video_stream_cb_routine()
1413 frame->ts.tv_sec, in video_stream_cb_routine()
1414 frame->ts.tv_nsec); in video_stream_cb_routine()
1416 if (frame->buf_type == CAM_STREAM_BUF_TYPE_MPLANE) { in video_stream_cb_routine()
1418 timeStamp = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1419 + frame->ts.tv_nsec; in video_stream_cb_routine()
1422 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1423 videoMemObj = (QCameraVideoMemory *)frame->mem_info; in video_stream_cb_routine()
1426 video_mem = videoMemObj->getMemory(frame->buf_idx, in video_stream_cb_routine()
1428 videoMemObj->updateNativeHandle(frame->buf_idx); in video_stream_cb_routine()
1434 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1435 QCameraVideoMemory *videoMemObj = (QCameraVideoMemory *)frame->mem_info; in video_stream_cb_routine()
1454 stream->bufDone(frame->buf_idx); in video_stream_cb_routine()
1461 nsecs_t frame_ts = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1462 + frame->ts.tv_nsec; in video_stream_cb_routine()
1468 = (uint8_t)frame->buf_idx; in video_stream_cb_routine()
1480 nh->data[index] = videoMemObj->getFd(frame->buf_idx); in video_stream_cb_routine()
1482 nh->data[index + (fd_cnt * 2)] = (int)videoMemObj->getSize(frame->buf_idx); in video_stream_cb_routine()
1498 videoMemObj = (QCameraVideoMemory *)frame->mem_info; in video_stream_cb_routine()
1501 int fd_cnt = frame->user_buf.bufs_used; in video_stream_cb_routine()
1503 video_mem = videoMemObj->getMemory(frame->buf_idx, true); in video_stream_cb_routine()
1504 nh = videoMemObj->updateNativeHandle(frame->buf_idx); in video_stream_cb_routine()
1510 timeStamp = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1511 + frame->ts.tv_nsec; in video_stream_cb_routine()
1513 timeStamp, frame->fd, frame->buf_idx, fd_cnt); in video_stream_cb_routine()
1516 if (frame->user_buf.buf_idx[i] >= 0) { in video_stream_cb_routine()
1518 &frame->user_buf.plane_buf[frame->user_buf.buf_idx[i]]; in video_stream_cb_routine()
1562 stream->bufDone(frame->buf_idx); in video_stream_cb_routine()
1641 mm_camera_super_buf_t* frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in snapshot_channel_cb_routine() local
1642 if (frame == NULL) { in snapshot_channel_cb_routine()
1647 *frame = *super_frame; in snapshot_channel_cb_routine()
1649 if (frame->num_bufs > 0) { in snapshot_channel_cb_routine()
1651 frame->bufs[0]->frame_idx); in snapshot_channel_cb_routine()
1655 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in snapshot_channel_cb_routine()
1658 free(frame); in snapshot_channel_cb_routine()
1659 frame = NULL; in snapshot_channel_cb_routine()
1772 mm_camera_super_buf_t* frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in raw_channel_cb_routine() local
1773 if (frame == NULL) { in raw_channel_cb_routine()
1778 *frame = *super_frame; in raw_channel_cb_routine()
1780 if (frame->num_bufs > 0) { in raw_channel_cb_routine()
1782 frame->bufs[0]->frame_idx); in raw_channel_cb_routine()
1788 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in raw_channel_cb_routine()
1791 free(frame); in raw_channel_cb_routine()
1792 frame = NULL; in raw_channel_cb_routine()
2032 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in metadata_stream_cb_routine() local
2033 metadata_buffer_t *pMetaData = (metadata_buffer_t *)frame->buffer; in metadata_stream_cb_routine()
2042 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
2132 payload->focus_data.flush_info.focused_frame_idx = frame->frame_idx; in metadata_stream_cb_routine()
2438 stream->bufDone(frame->buf_idx); in metadata_stream_cb_routine()
2513 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in callback_stream_cb_routine() local
2514 if (NULL == frame) { in callback_stream_cb_routine()
2520 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in callback_stream_cb_routine()
2522 stream->bufDone(frame->buf_idx); in callback_stream_cb_routine()
2527 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in callback_stream_cb_routine()
2532 int32_t rc = pme->sendPreviewCallback(stream, previewMemObj, frame->buf_idx); in callback_stream_cb_routine()
2537 stream->bufDone(frame->buf_idx); in callback_stream_cb_routine()
2616 mm_camera_buf_def_t *frame,char *type) in dumpMetadataToFile() argument
2620 metadata_buffer_t *metadata = (metadata_buffer_t *)frame->buffer; in dumpMetadataToFile()
2656 snprintf(buf, sizeof(buf), "%um_%s_%d.bin", dumpFrmCnt, type, frame->frame_idx); in dumpMetadataToFile()
2716 mm_camera_buf_def_t *frame, uint32_t dump_type, const char *misc) in dumpFrameToFile() argument
2736 if((enabled & dump_type) && stream && frame) { in dumpFrameToFile()
2785 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2791 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2803 dumpFrmCnt, dim.width, dim.height, frame->frame_idx, misc); in dumpFrameToFile()
2806 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2815 dumpFrmCnt, dim.width, dim.height, frame->frame_idx, misc); in dumpFrameToFile()
2818 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2825 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2832 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2839 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2862 data = (void *)((uint8_t *)frame->buffer + index); in dumpFrameToFile()
2869 data = (void *)((uint8_t *)frame->buffer + index); in dumpFrameToFile()