Lines Matching refs:frame
118 mm_camera_super_buf_t* frame = in zsl_channel_cb() local
120 if (frame == NULL) { in zsl_channel_cb()
125 *frame = *recvd_frame; in zsl_channel_cb()
169 for(int i = 0; i < frame->num_bufs; i++){ in zsl_channel_cb()
170 QCameraStream *pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
173 pMetaFrame = frame->bufs[i]; //find the metadata in zsl_channel_cb()
219 for(int i = 0; i < frame->num_bufs; i++){ in zsl_channel_cb()
220 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
223 pMetaFrame = frame->bufs[i]; in zsl_channel_cb()
239 for (int i = 0; i < frame->num_bufs; i++) { in zsl_channel_cb()
240 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in zsl_channel_cb()
244 frame->bufs[i]->buf_idx, in zsl_channel_cb()
245 frame->bufs[i]->frame_idx, in zsl_channel_cb()
247 frame->bufs[i]->ts.tv_sec, in zsl_channel_cb()
248 frame->bufs[i]->ts.tv_nsec); in zsl_channel_cb()
254 pme->m_postprocessor.processData(frame); in zsl_channel_cb()
273 mm_camera_super_buf_t *frame) in selectScene() argument
281 if ((NULL == frame) || (NULL == pChannel)) { in selectScene()
292 for(int i = 0; i < frame->num_bufs; i++){ in selectScene()
293 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in selectScene()
296 pMetaFrame = frame->bufs[i]; in selectScene()
322 for(int i = 0; i < frame->num_bufs; i++){ in selectScene()
323 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in selectScene()
326 preview_frame = frame->bufs[i]; in selectScene()
386 mm_camera_super_buf_t* frame = in capture_channel_cb_routine() local
388 if (frame == NULL) { in capture_channel_cb_routine()
393 *frame = *recvd_frame; in capture_channel_cb_routine()
400 for(int i = 0; i < frame->num_bufs; i++){ in capture_channel_cb_routine()
401 pStream = pChannel->getStreamByHandle(frame->bufs[i]->stream_id); in capture_channel_cb_routine()
404 pMetaFrame = frame->bufs[i]; //find the metadata in capture_channel_cb_routine()
419 pme->m_postprocessor.processData(frame); in capture_channel_cb_routine()
490 mm_camera_super_buf_t* frame = in postproc_channel_cb_routine() local
492 if (frame == NULL) { in postproc_channel_cb_routine()
496 *frame = *recvd_frame; in postproc_channel_cb_routine()
499 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
543 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in preview_stream_cb_routine() local
544 if (NULL == frame) { in preview_stream_cb_routine()
552 stream->bufDone(frame->buf_idx); in preview_stream_cb_routine()
561 int idx = frame->buf_idx; in preview_stream_cb_routine()
562 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
711 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in nodisplay_preview_stream_cb_routine() local
712 if (NULL == frame) { in nodisplay_preview_stream_cb_routine()
720 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
729 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in nodisplay_preview_stream_cb_routine()
732 preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in nodisplay_preview_stream_cb_routine()
735 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
745 int user_data = frame->buf_idx; in nodisplay_preview_stream_cb_routine()
752 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
755 stream->bufDone(frame->buf_idx); in nodisplay_preview_stream_cb_routine()
792 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in rdi_mode_stream_cb_routine() local
793 if (NULL == frame) { in rdi_mode_stream_cb_routine()
799 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
807 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
810 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
814 camera_memory_t *preview_mem = previewMemObj->getMemory(frame->buf_idx, false); in rdi_mode_stream_cb_routine()
816 previewMemObj->cleanCache(frame->buf_idx); in rdi_mode_stream_cb_routine()
818 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
828 int user_data = frame->buf_idx; in rdi_mode_stream_cb_routine()
835 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
840 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
845 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
848 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
852 int fd = previewMemObj->getFd(frame->buf_idx); in rdi_mode_stream_cb_routine()
853 ALOGD("%s: Preview frame fd =%d for index = %d ", __func__, fd, frame->buf_idx); in rdi_mode_stream_cb_routine()
866 int user_data = frame->buf_idx; in rdi_mode_stream_cb_routine()
873 stream->bufDone(frame->buf_idx); in rdi_mode_stream_cb_routine()
918 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in postview_stream_cb_routine() local
919 if (NULL == frame) { in postview_stream_cb_routine()
925 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in postview_stream_cb_routine()
927 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
931 err = stream->bufDone(frame->buf_idx); in postview_stream_cb_routine()
973 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in video_stream_cb_routine() local
984 frame->stream_id, in video_stream_cb_routine()
985 frame->ts.tv_sec, in video_stream_cb_routine()
986 frame->ts.tv_nsec); in video_stream_cb_routine()
989 timeStamp = (nsecs_t)((frame->ts.tv_sec * 1000000LL) + frame->ts.tv_nsec) * 1000; in video_stream_cb_routine()
991 timeStamp = nsecs_t(frame->ts.tv_sec) * 1000000000LL + frame->ts.tv_nsec; in video_stream_cb_routine()
995 QCameraMemory *videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
998 …video_mem = videoMemObj->getMemory(frame->buf_idx, (pme->mStoreMetaDataInFrame > 0)? true : false); in video_stream_cb_routine()
1001 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1013 stream->bufDone(frame->buf_idx); in video_stream_cb_routine()
1263 mm_camera_buf_def_t *frame = super_frame->bufs[0]; in metadata_stream_cb_routine() local
1264 metadata_buffer_t *pMetaData = (metadata_buffer_t *)frame->buffer; in metadata_stream_cb_routine()
1273 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
1453 stream->bufDone(frame->buf_idx); in metadata_stream_cb_routine()
1564 mm_camera_buf_def_t *frame,char *type) in dumpMetadataToFile() argument
1568 metadata_buffer_t *metadata = (metadata_buffer_t *)frame->buffer; in dumpMetadataToFile()
1602 mDumpFrmCnt,type,frame->frame_idx); in dumpMetadataToFile()
1659 mm_camera_buf_def_t *frame, in dumpFrameToFile() argument
1670 if((enabled & dump_type) && stream && frame) { in dumpFrameToFile()
1715 mDumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
1721 mDumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
1731 frame->frame_idx); in dumpFrameToFile()
1737 mDumpFrmCnt, dim.width, dim.height, frame->frame_idx); in dumpFrameToFile()
1747 frame->frame_idx); in dumpFrameToFile()
1757 frame->frame_idx); in dumpFrameToFile()
1778 data = (void *)((uint8_t *)frame->buffer + index); in dumpFrameToFile()