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()
405 mm_camera_super_buf_t* frame = in capture_channel_cb_routine() local
407 if (frame == NULL) { in capture_channel_cb_routine()
412 *frame = *recvd_frame; in capture_channel_cb_routine()
435 for (uint32_t i = 0; i < frame->num_bufs; i++) { in capture_channel_cb_routine()
436 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in capture_channel_cb_routine()
439 pMetaFrame = frame->bufs[i]; //find the metadata in capture_channel_cb_routine()
453 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in capture_channel_cb_routine()
456 free(frame); in capture_channel_cb_routine()
457 frame = NULL; in capture_channel_cb_routine()
657 mm_camera_super_buf_t* frame = in postproc_channel_cb_routine() local
659 if (frame == NULL) { in postproc_channel_cb_routine()
663 *frame = *recvd_frame; in postproc_channel_cb_routine()
672 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
712 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in synchronous_stream_cb_routine() local
713 if (NULL == frame) { in synchronous_stream_cb_routine()
734 QCameraGrallocMemory *memory = (QCameraGrallocMemory *) frame->mem_info; in synchronous_stream_cb_routine()
735 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in synchronous_stream_cb_routine()
737 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
738 memory->setBufferStatus(frame->buf_idx, STATUS_SKIPPED); in synchronous_stream_cb_routine()
748 frameTime = nsecs_t(frame->ts.tv_sec) * 1000000000LL + frame->ts.tv_nsec; in synchronous_stream_cb_routine()
761 uint32_t idx = frame->buf_idx; in synchronous_stream_cb_routine()
768 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
821 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in preview_stream_cb_routine() local
822 if (NULL == frame) { in preview_stream_cb_routine()
837 pme->mLastPreviewFrameID = frame->frame_idx; in preview_stream_cb_routine()
841 !pme->needProcessPreviewFrame(frame->frame_idx)) in preview_stream_cb_routine()
845 memory->isBufSkipped(frame->buf_idx)) { in preview_stream_cb_routine()
847 memory->setBufferStatus(frame->buf_idx, STATUS_IDLE); in preview_stream_cb_routine()
853 stream->bufDone(frame->buf_idx); in preview_stream_cb_routine()
856 uint32_t idx = frame->buf_idx; in preview_stream_cb_routine()
859 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
881 pme->TsMakeupProcess_Preview(frame,stream); in preview_stream_cb_routine()
946 frame->cache_flags |= CPU_HAS_READ; in preview_stream_cb_routine()
1172 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in nodisplay_preview_stream_cb_routine() local
1173 if (NULL == frame) { in nodisplay_preview_stream_cb_routine()
1179 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in nodisplay_preview_stream_cb_routine()
1181 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1190 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in nodisplay_preview_stream_cb_routine()
1193 preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in nodisplay_preview_stream_cb_routine()
1196 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
1198 if ((pme->needProcessPreviewFrame(frame->frame_idx)) && in nodisplay_preview_stream_cb_routine()
1206 cbArg.user_data = (void *) &frame->buf_idx; in nodisplay_preview_stream_cb_routine()
1210 frame->cache_flags |= CPU_HAS_READ; in nodisplay_preview_stream_cb_routine()
1214 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1217 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
1253 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in secure_stream_cb_routine() local
1254 if (NULL == frame) { in secure_stream_cb_routine()
1262 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in secure_stream_cb_routine()
1265 stream->bufDone(frame->buf_idx); in secure_stream_cb_routine()
1269 int fd = memObj->getFd(frame->buf_idx); in secure_stream_cb_routine()
1272 LOGD("Secure frame fd =%d for index = %d ", fd, frame->buf_idx); in secure_stream_cb_routine()
1282 cbArg.user_data = (void *) &frame->buf_idx; in secure_stream_cb_routine()
1288 stream->bufDone(frame->buf_idx); in secure_stream_cb_routine()
1292 stream->bufDone(frame->buf_idx); in secure_stream_cb_routine()
1335 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in rdi_mode_stream_cb_routine() local
1336 if (NULL == frame) { in rdi_mode_stream_cb_routine()
1340 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in rdi_mode_stream_cb_routine()
1342 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1349 previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
1352 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1356 preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in rdi_mode_stream_cb_routine()
1358 previewMemObj->cleanCache(frame->buf_idx); in rdi_mode_stream_cb_routine()
1360 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
1362 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1370 cbArg.user_data = (void *) &frame->buf_idx; in rdi_mode_stream_cb_routine()
1374 frame->cache_flags |= CPU_HAS_READ; in rdi_mode_stream_cb_routine()
1378 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1382 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
1427 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in postview_stream_cb_routine() local
1428 if (NULL == frame) { in postview_stream_cb_routine()
1434 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in postview_stream_cb_routine()
1436 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
1440 err = stream->bufDone(frame->buf_idx); in postview_stream_cb_routine()
1489 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in video_stream_cb_routine() local
1499 frame->stream_id, in video_stream_cb_routine()
1500 frame->ts.tv_sec, in video_stream_cb_routine()
1501 frame->ts.tv_nsec); in video_stream_cb_routine()
1503 if (frame->buf_type == CAM_STREAM_BUF_TYPE_MPLANE) { in video_stream_cb_routine()
1505 timeStamp = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1506 + frame->ts.tv_nsec; in video_stream_cb_routine()
1507 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1508 videoMemObj = (QCameraVideoMemory *)frame->mem_info; in video_stream_cb_routine()
1511 video_mem = videoMemObj->getMemory(frame->buf_idx, in video_stream_cb_routine()
1515 timeStamp, frame->buf_idx); in video_stream_cb_routine()
1520 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1521 QCameraVideoMemory *videoMemObj = (QCameraVideoMemory *)frame->mem_info; in video_stream_cb_routine()
1540 stream->bufDone(frame->buf_idx); in video_stream_cb_routine()
1547 nsecs_t frame_ts = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1548 + frame->ts.tv_nsec; in video_stream_cb_routine()
1554 = (uint8_t)frame->buf_idx; in video_stream_cb_routine()
1561 (int)videoMemObj->getFd(frame->buf_idx), //FD in video_stream_cb_routine()
1562 (int)videoMemObj->getSize(frame->buf_idx),//Size in video_stream_cb_routine()
1578 videoMemObj = (QCameraVideoMemory *)frame->mem_info; in video_stream_cb_routine()
1581 int fd_cnt = frame->user_buf.bufs_used; in video_stream_cb_routine()
1583 video_mem = videoMemObj->getMemory(frame->buf_idx, true); in video_stream_cb_routine()
1584 nh = videoMemObj->getNativeHandle(frame->buf_idx); in video_stream_cb_routine()
1590 timeStamp = nsecs_t(frame->ts.tv_sec) * 1000000000LL in video_stream_cb_routine()
1591 + frame->ts.tv_nsec; in video_stream_cb_routine()
1594 if (frame->user_buf.buf_idx[i] >= 0) { in video_stream_cb_routine()
1596 &frame->user_buf.plane_buf[frame->user_buf.buf_idx[i]]; in video_stream_cb_routine()
1614 timeStamp, frame->fd, frame->buf_idx, fd_cnt); in video_stream_cb_routine()
1642 stream->bufDone(frame->buf_idx); in video_stream_cb_routine()
1719 mm_camera_super_buf_t* frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in snapshot_channel_cb_routine() local
1720 if (frame == NULL) { in snapshot_channel_cb_routine()
1725 *frame = *super_frame; in snapshot_channel_cb_routine()
1727 if (frame->num_bufs > 0) { in snapshot_channel_cb_routine()
1729 frame->bufs[0]->frame_idx); in snapshot_channel_cb_routine()
1733 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in snapshot_channel_cb_routine()
1736 free(frame); in snapshot_channel_cb_routine()
1737 frame = NULL; in snapshot_channel_cb_routine()
1852 mm_camera_super_buf_t* frame = (mm_camera_super_buf_t *)malloc(sizeof(mm_camera_super_buf_t)); in raw_channel_cb_routine() local
1853 if (frame == NULL) { in raw_channel_cb_routine()
1858 *frame = *super_frame; in raw_channel_cb_routine()
1860 if (frame->num_bufs > 0) { in raw_channel_cb_routine()
1862 frame->bufs[0]->frame_idx); in raw_channel_cb_routine()
1868 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in raw_channel_cb_routine()
1871 free(frame); in raw_channel_cb_routine()
1872 frame = NULL; in raw_channel_cb_routine()
2130 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in metadata_stream_cb_routine() local
2131 metadata_buffer_t *pMetaData = (metadata_buffer_t *)frame->buffer; in metadata_stream_cb_routine()
2180 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
2270 payload->focus_data.flush_info.focused_frame_idx = frame->frame_idx; in metadata_stream_cb_routine()
2679 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in callback_stream_cb_routine() local
2680 if (NULL == frame) { in callback_stream_cb_routine()
2686 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in callback_stream_cb_routine()
2688 stream->bufDone(frame->buf_idx); in callback_stream_cb_routine()
2693 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in callback_stream_cb_routine()
2699 frame->cache_flags |= CPU_HAS_READ; in callback_stream_cb_routine()
2700 int32_t rc = pme->sendPreviewCallback(stream, previewMemObj, frame->buf_idx); in callback_stream_cb_routine()
2705 stream->bufDone(frame->buf_idx); in callback_stream_cb_routine()
2784 mm_camera_buf_def_t *frame,char *type) in dumpMetadataToFile() argument
2788 metadata_buffer_t *metadata = (metadata_buffer_t *)frame->buffer; in dumpMetadataToFile()
2824 snprintf(buf, sizeof(buf), "%um_%s_%d.bin", dumpFrmCnt, type, frame->frame_idx); in dumpMetadataToFile()
2895 mm_camera_buf_def_t *frame, uint32_t dump_type, const char *misc) in dumpFrameToFile() argument
2915 if((enabled & dump_type) && stream && frame) { in dumpFrameToFile()
2964 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2970 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2982 dumpFrmCnt, dim.width, dim.height, frame->frame_idx, misc); in dumpFrameToFile()
2985 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
2994 dumpFrmCnt, dim.width, dim.height, frame->frame_idx, misc); in dumpFrameToFile()
2997 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
3004 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
3011 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
3018 dumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
3041 data = (void *)((uint8_t *)frame->buffer + index); in dumpFrameToFile()
3048 data = (void *)((uint8_t *)frame->buffer + index); in dumpFrameToFile()
3058 frame->cache_flags |= CPU_HAS_READ; in dumpFrameToFile()