Lines Matching refs:frame
146 mm_camera_super_buf_t* frame = in zsl_channel_cb() local
148 if (frame == NULL) { in zsl_channel_cb()
153 *frame = *recvd_frame; in zsl_channel_cb()
192 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
193 QCameraStream *pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
196 pMetaFrame = frame->bufs[i]; //find the metadata in zsl_channel_cb()
233 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
234 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
237 pMetaFrame = frame->bufs[i]; in zsl_channel_cb()
253 for (uint32_t i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
254 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
257 frame->bufs[i]->buf_idx, in zsl_channel_cb()
258 frame->bufs[i]->frame_idx, in zsl_channel_cb()
260 frame->bufs[i]->ts.tv_sec, in zsl_channel_cb()
261 frame->bufs[i]->ts.tv_nsec); in zsl_channel_cb()
269 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in zsl_channel_cb()
272 free(frame); in zsl_channel_cb()
273 frame = NULL; in zsl_channel_cb()
294 mm_camera_super_buf_t *frame) in selectScene() argument
300 if ((NULL == frame) || (NULL == pChannel)) { in selectScene()
311 for (uint32_t i = 0; i < frame->num_bufs; i++) { in selectScene()
312 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in selectScene()
315 pMetaFrame = frame->bufs[i]; in selectScene()
333 for (uint32_t i = 0; i < frame->num_bufs; i++) { in selectScene()
334 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in selectScene()
337 preview_frame = frame->bufs[i]; in selectScene()
402 mm_camera_super_buf_t* frame = in capture_channel_cb_routine() local
404 if (frame == NULL) { in capture_channel_cb_routine()
409 *frame = *recvd_frame; in capture_channel_cb_routine()
432 for (uint32_t i = 0; i < frame->num_bufs; i++) { in capture_channel_cb_routine()
433 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in capture_channel_cb_routine()
436 pMetaFrame = frame->bufs[i]; //find the metadata in capture_channel_cb_routine()
450 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in capture_channel_cb_routine()
453 free(frame); in capture_channel_cb_routine()
454 frame = NULL; in capture_channel_cb_routine()
652 mm_camera_super_buf_t* frame = in postproc_channel_cb_routine() local
654 if (frame == NULL) { in postproc_channel_cb_routine()
658 *frame = *recvd_frame; in postproc_channel_cb_routine()
667 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
708 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in synchronous_stream_cb_routine() local
709 if (NULL == frame) { in synchronous_stream_cb_routine()
724 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in synchronous_stream_cb_routine()
726 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
732 frameTime = nsecs_t(frame->ts.tv_sec) * 1000000000LL + frame->ts.tv_nsec; in synchronous_stream_cb_routine()
739 pme->TsMakeupProcess_Preview(frame,stream); in synchronous_stream_cb_routine()
743 uint32_t idx = frame->buf_idx; in synchronous_stream_cb_routine()
750 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
802 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in preview_stream_cb_routine() local
803 if (NULL == frame) { in preview_stream_cb_routine()
818 pme->mLastPreviewFrameID = frame->frame_idx; in preview_stream_cb_routine()
821 (!pme->needProcessPreviewFrame(frame->frame_idx))) || in preview_stream_cb_routine()
823 (memory->isBufOwnedByCamera(frame->buf_idx)))) { in preview_stream_cb_routine()
828 stream->bufDone(frame->buf_idx); in preview_stream_cb_routine()
839 uint32_t idx = frame->buf_idx; in preview_stream_cb_routine()
841 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
851 pme->TsMakeupProcess_Preview(frame,stream); in preview_stream_cb_routine()
1137 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in nodisplay_preview_stream_cb_routine() local
1138 if (NULL == frame) { in nodisplay_preview_stream_cb_routine()
1144 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in nodisplay_preview_stream_cb_routine()
1146 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1155 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in nodisplay_preview_stream_cb_routine()
1158 preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in nodisplay_preview_stream_cb_routine()
1161 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
1163 if ((pme->needProcessPreviewFrame(frame->frame_idx)) && in nodisplay_preview_stream_cb_routine()
1171 cbArg.user_data = (void *) &frame->buf_idx; in nodisplay_preview_stream_cb_routine()
1177 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1180 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1218 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in rdi_mode_stream_cb_routine() local
1219 if (NULL == frame) { in rdi_mode_stream_cb_routine()
1223 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in rdi_mode_stream_cb_routine()
1225 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1233 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
1236 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1240 camera_memory_t *preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in rdi_mode_stream_cb_routine()
1242 previewMemObj->cleanCache(frame->buf_idx); in rdi_mode_stream_cb_routine()
1244 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
1246 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1254 cbArg.user_data = (void *) &frame->buf_idx; in rdi_mode_stream_cb_routine()
1260 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1265 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1270 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
1273 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1277 int fd = previewMemObj->getFd(frame->buf_idx); in rdi_mode_stream_cb_routine()
1278 LOGD("Preview frame fd =%d for index = %d ", fd, frame->buf_idx); in rdi_mode_stream_cb_routine()
1279 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1291 cbArg.user_data = (void *) &frame->buf_idx; in rdi_mode_stream_cb_routine()
1297 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1343 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in postview_stream_cb_routine() local
1344 if (NULL == frame) { in postview_stream_cb_routine()
1350 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in postview_stream_cb_routine()
1352 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
1356 err = stream->bufDone(frame->buf_idx); in postview_stream_cb_routine()
1405 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in video_stream_cb_routine() local
1415 frame->stream_id, in video_stream_cb_routine()
1416 frame->ts.tv_sec, in video_stream_cb_routine()
1417 frame->ts.tv_nsec); in video_stream_cb_routine()
1419 if (frame->buf_type == CAM_STREAM_BUF_TYPE_MPLANE) { in video_stream_cb_routine()
1421 timeStamp = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1422 + frame->ts.tv_nsec; in video_stream_cb_routine()
1425 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1426 videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
1429 video_mem = videoMemObj->getMemory(frame->buf_idx, in video_stream_cb_routine()
1436 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1437 QCameraVideoMemory *videoMemObj = (QCameraVideoMemory *)frame->mem_info; in video_stream_cb_routine()
1455 stream->bufDone(frame->buf_idx); in video_stream_cb_routine()
1465 nsecs_t frame_ts = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1466 + frame->ts.tv_nsec; in video_stream_cb_routine()
1472 = (uint8_t)frame->buf_idx; in video_stream_cb_routine()
1484 nh->data[index] = videoMemObj->getFd(frame->buf_idx); in video_stream_cb_routine()
1486 nh->data[index + (fd_cnt * 2)] = (int)videoMemObj->getSize(frame->buf_idx); in video_stream_cb_routine()
1502 videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
1505 int fd_cnt = frame->user_buf.bufs_used; in video_stream_cb_routine()
1507 video_mem = videoMemObj->getMemory(frame->buf_idx, true); in video_stream_cb_routine()
1520 timeStamp = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1521 + frame->ts.tv_nsec; in video_stream_cb_routine()
1523 timeStamp, frame->fd, frame->buf_idx, fd_cnt); in video_stream_cb_routine()
1526 if (frame->user_buf.buf_idx[i] >= 0) { in video_stream_cb_routine()
1528 &frame->user_buf.plane_buf[frame->user_buf.buf_idx[i]]; in video_stream_cb_routine()
1572 stream->bufDone(frame->buf_idx); in video_stream_cb_routine()
1651 mm_camera_super_buf_t* frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in snapshot_channel_cb_routine() local
1652 if (frame == NULL) { in snapshot_channel_cb_routine()
1657 *frame = *super_frame; in snapshot_channel_cb_routine()
1659 if (frame->num_bufs > 0) { in snapshot_channel_cb_routine()
1661 frame->bufs[0]->frame_idx); in snapshot_channel_cb_routine()
1665 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in snapshot_channel_cb_routine()
1668 free(frame); in snapshot_channel_cb_routine()
1669 frame = NULL; in snapshot_channel_cb_routine()
1782 mm_camera_super_buf_t* frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in raw_channel_cb_routine() local
1783 if (frame == NULL) { in raw_channel_cb_routine()
1788 *frame = *super_frame; in raw_channel_cb_routine()
1790 if (frame->num_bufs > 0) { in raw_channel_cb_routine()
1792 frame->bufs[0]->frame_idx); in raw_channel_cb_routine()
1798 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in raw_channel_cb_routine()
1801 free(frame); in raw_channel_cb_routine()
1802 frame = NULL; in raw_channel_cb_routine()
2042 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in metadata_stream_cb_routine() local
2043 metadata_buffer_t *pMetaData = (metadata_buffer_t *)frame->buffer; in metadata_stream_cb_routine()
2052 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
2142 payload->focus_data.flush_info.focused_frame_idx = frame->frame_idx; in metadata_stream_cb_routine()
2424 stream->bufDone(frame->buf_idx); in metadata_stream_cb_routine()
2499 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in callback_stream_cb_routine() local
2500 if (NULL == frame) { in callback_stream_cb_routine()
2506 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in callback_stream_cb_routine()
2508 stream->bufDone(frame->buf_idx); in callback_stream_cb_routine()
2513 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in callback_stream_cb_routine()
2518 int32_t rc = pme->sendPreviewCallback(stream, previewMemObj, frame->buf_idx); in callback_stream_cb_routine()
2523 stream->bufDone(frame->buf_idx); in callback_stream_cb_routine()
2602 mm_camera_buf_def_t *frame,char *type) in dumpMetadataToFile() argument
2606 metadata_buffer_t *metadata = (metadata_buffer_t *)frame->buffer; in dumpMetadataToFile()
2642 snprintf(buf, sizeof(buf), "%um_%s_%d.bin", dumpFrmCnt, type, frame->frame_idx); in dumpMetadataToFile()
2702 mm_camera_buf_def_t *frame, uint32_t dump_type, const char *misc) in dumpFrameToFile() argument
2722 if((enabled & dump_type) && stream && frame) { in dumpFrameToFile()
2771 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2777 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2789 dumpFrmCnt, dim.width, dim.height, frame->frame_idx, misc); in dumpFrameToFile()
2792 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2801 dumpFrmCnt, dim.width, dim.height, frame->frame_idx, misc); in dumpFrameToFile()
2804 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2811 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2818 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2825 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2848 data = (void *)((uint8_t *)frame->buffer + index); in dumpFrameToFile()
2855 data = (void *)((uint8_t *)frame->buffer + index); in dumpFrameToFile()