Home
last modified time | relevance | path

Searched refs:mem_info (Results 1 – 25 of 51) sorted by relevance

123

/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c128 alloc.len = buf->mem_info.size; in mm_app_allocate_ion_memory()
159 buf->mem_info.main_ion_fd = main_ion_fd; in mm_app_allocate_ion_memory()
160 buf->mem_info.fd = ion_info_fd.fd; in mm_app_allocate_ion_memory()
161 buf->mem_info.handle = ion_info_fd.handle; in mm_app_allocate_ion_memory()
162 buf->mem_info.size = alloc.len; in mm_app_allocate_ion_memory()
163 buf->mem_info.data = data; in mm_app_allocate_ion_memory()
181 rc = munmap(buf->mem_info.data, buf->mem_info.size); in mm_app_deallocate_ion_memory()
183 if (buf->mem_info.fd >= 0) { in mm_app_deallocate_ion_memory()
184 close(buf->mem_info.fd); in mm_app_deallocate_ion_memory()
185 buf->mem_info.fd = -1; in mm_app_deallocate_ion_memory()
[all …]
Dmm_qcamera_snapshot.c67 mm_app_cache_ops((mm_camera_app_meminfo_t *) pme->current_job_frames->bufs[i]->mem_info, in jpeg_encode_cb()
259 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_snapshot_metadata_notify_cb()
407 mm_app_cache_ops((mm_camera_app_meminfo_t *)m_frame->mem_info, in mm_app_snapshot_notify_cb()
442 mm_app_cache_ops((mm_camera_app_meminfo_t *)bufs->bufs[i]->mem_info, in mm_app_snapshot_notify_cb()
Dmm_qcamera_reprocess.c91 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_reprocess_notify_cb()
357 mm_app_cache_ops((mm_camera_app_meminfo_t *) recvd_frame->bufs[i]->mem_info, in mm_app_release_ppinput()
Dmm_qcamera_preview.c114 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_metadata_notify_cb()
185 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_preview_notify_cb()
360 mm_app_cache_ops((mm_camera_app_meminfo_t *)m_frame->mem_info, in mm_app_zsl_notify_cb()
371 mm_app_cache_ops((mm_camera_app_meminfo_t *)p_frame->mem_info, in mm_app_zsl_notify_cb()
380 mm_app_cache_ops((mm_camera_app_meminfo_t *)md_frame->mem_info, in mm_app_zsl_notify_cb()
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c128 alloc.len = buf->mem_info.size; in mm_app_allocate_ion_memory()
159 buf->mem_info.main_ion_fd = main_ion_fd; in mm_app_allocate_ion_memory()
160 buf->mem_info.fd = ion_info_fd.fd; in mm_app_allocate_ion_memory()
161 buf->mem_info.handle = ion_info_fd.handle; in mm_app_allocate_ion_memory()
162 buf->mem_info.size = alloc.len; in mm_app_allocate_ion_memory()
163 buf->mem_info.data = data; in mm_app_allocate_ion_memory()
181 rc = munmap(buf->mem_info.data, buf->mem_info.size); in mm_app_deallocate_ion_memory()
183 if (buf->mem_info.fd >= 0) { in mm_app_deallocate_ion_memory()
184 close(buf->mem_info.fd); in mm_app_deallocate_ion_memory()
185 buf->mem_info.fd = -1; in mm_app_deallocate_ion_memory()
[all …]
Dmm_qcamera_snapshot.c67 mm_app_cache_ops((mm_camera_app_meminfo_t *) pme->current_job_frames->bufs[i]->mem_info, in jpeg_encode_cb()
259 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_snapshot_metadata_notify_cb()
407 mm_app_cache_ops((mm_camera_app_meminfo_t *)m_frame->mem_info, in mm_app_snapshot_notify_cb()
442 mm_app_cache_ops((mm_camera_app_meminfo_t *)bufs->bufs[i]->mem_info, in mm_app_snapshot_notify_cb()
Dmm_qcamera_reprocess.c91 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_reprocess_notify_cb()
357 mm_app_cache_ops((mm_camera_app_meminfo_t *) recvd_frame->bufs[i]->mem_info, in mm_app_release_ppinput()
Dmm_qcamera_preview.c114 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_metadata_notify_cb()
185 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_preview_notify_cb()
360 mm_app_cache_ops((mm_camera_app_meminfo_t *)m_frame->mem_info, in mm_app_zsl_notify_cb()
371 mm_app_cache_ops((mm_camera_app_meminfo_t *)p_frame->mem_info, in mm_app_zsl_notify_cb()
380 mm_app_cache_ops((mm_camera_app_meminfo_t *)md_frame->mem_info, in mm_app_zsl_notify_cb()
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQualcommUsbCamera.cpp122 static int allocate_ion_memory(QCameraHalMemInfo_t *mem_info, int ion_type);
123 static int deallocate_ion_memory(QCameraHalMemInfo_t *mem_info);
913 camHal->previewMem.mem_info[cnt].main_ion_fd = in initDisplayBuffers()
915 if (camHal->previewMem.mem_info[cnt].main_ion_fd < 0) { in initDisplayBuffers()
921 if (ioctl(camHal->previewMem.mem_info[cnt].main_ion_fd, in initDisplayBuffers()
926 camHal->previewMem.mem_info[cnt].fd = in initDisplayBuffers()
928 camHal->previewMem.mem_info[cnt].size = in initDisplayBuffers()
930 camHal->previewMem.mem_info[cnt].handle = ion_info_fd.handle; in initDisplayBuffers()
1012 ion_handle.handle = camHal->previewMem.mem_info[cnt].handle; in deInitDisplayBuffers()
1013 if (ioctl(camHal->previewMem.mem_info[cnt].main_ion_fd, in deInitDisplayBuffers()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c128 alloc.len = buf->mem_info.size; in mm_app_allocate_ion_memory()
159 buf->mem_info.main_ion_fd = main_ion_fd; in mm_app_allocate_ion_memory()
160 buf->mem_info.fd = ion_info_fd.fd; in mm_app_allocate_ion_memory()
161 buf->mem_info.handle = ion_info_fd.handle; in mm_app_allocate_ion_memory()
162 buf->mem_info.size = alloc.len; in mm_app_allocate_ion_memory()
163 buf->mem_info.data = data; in mm_app_allocate_ion_memory()
181 rc = munmap(buf->mem_info.data, buf->mem_info.size); in mm_app_deallocate_ion_memory()
183 if (buf->mem_info.fd > 0) { in mm_app_deallocate_ion_memory()
184 close(buf->mem_info.fd); in mm_app_deallocate_ion_memory()
185 buf->mem_info.fd = 0; in mm_app_deallocate_ion_memory()
[all …]
Dmm_qcamera_snapshot.c67 mm_app_cache_ops((mm_camera_app_meminfo_t *) pme->current_job_frames->bufs[i]->mem_info, in jpeg_encode_cb()
247 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_snapshot_metadata_notify_cb()
391 mm_app_cache_ops((mm_camera_app_meminfo_t *)m_frame->mem_info, in mm_app_snapshot_notify_cb()
426 mm_app_cache_ops((mm_camera_app_meminfo_t *)bufs->bufs[i]->mem_info, in mm_app_snapshot_notify_cb()
Dmm_qcamera_reprocess.c91 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_reprocess_notify_cb()
357 mm_app_cache_ops((mm_camera_app_meminfo_t *) recvd_frame->bufs[i]->mem_info, in mm_app_release_ppinput()
Dmm_qcamera_preview.c107 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_metadata_notify_cb()
174 mm_app_cache_ops((mm_camera_app_meminfo_t *)frame->mem_info, in mm_app_preview_notify_cb()
334 mm_app_cache_ops((mm_camera_app_meminfo_t *)m_frame->mem_info, in mm_app_zsl_notify_cb()
345 mm_app_cache_ops((mm_camera_app_meminfo_t *)p_frame->mem_info, in mm_app_zsl_notify_cb()
354 mm_app_cache_ops((mm_camera_app_meminfo_t *)md_frame->mem_info, in mm_app_zsl_notify_cb()
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI.cpp64 pme->cache_ops((QCameraHalMemInfo_t *)(recvd_frame->bufs[i]->mem_info), in superbuf_cb_routine()
138 pme->cache_ops((QCameraHalMemInfo_t *)(cookie->src_frame->bufs[i]->mem_info), in snapshot_jpeg_cb()
188 cache_ops((QCameraHalMemInfo_t *)(super_buf->bufs[i]->mem_info), in releaseSuperBuf()
458 main_mem_info = &mSnapshotMemory.mem_info[main_frame->buf_idx]; in encodeData()
519 thumb_mem_info = &mThumbnailMemory.mem_info[thumb_frame->buf_idx]; in encodeData()
522 thumb_mem_info = &mNoDispPreviewMemory.mem_info[thumb_frame->buf_idx]; in encodeData()
524 thumb_mem_info = &mPreviewMemory.mem_info[thumb_frame->buf_idx]; in encodeData()
2851 int QCameraHardwareInterface::allocate_ion_memory(QCameraHalMemInfo_t *mem_info, int ion_type) in allocate_ion_memory() argument
2866 alloc.len = mem_info->size; in allocate_ion_memory()
2886 mem_info->main_ion_fd = main_ion_fd; in allocate_ion_memory()
[all …]
DQCameraHWI_Record.cpp103 mHalCamCtrl->deallocate_ion_memory(&mHalCamCtrl->mRecordingMemory.mem_info[cnt]); in putBuf()
145 mHalCamCtrl->cache_ops(&mHalCamCtrl->mRecordingMemory.mem_info[video_buf_idx], in processRecordFrame()
226 nh->data[0] = mHalCamCtrl->mRecordingMemory.mem_info[cnt].fd; in getBuf()
228 nh->data[2] = mHalCamCtrl->mRecordingMemory.mem_info[cnt].size; in getBuf()
257 mHalCamCtrl->cache_ops(&mHalCamCtrl->mRecordingMemory.mem_info[cnt], in releaseRecordingFrame()
270 mHalCamCtrl->cache_ops(&mHalCamCtrl->mRecordingMemory.mem_info[cnt], in releaseRecordingFrame()
DQCameraHWI_Preview.cpp155 mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd = open("/dev/ion", O_RDONLY); in getBufferFromSurface()
156 if (mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd < 0) { in getBufferFromSurface()
161 if (ioctl(mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd, in getBufferFromSurface()
177 mHalCamCtrl->mPreviewMemory.mem_info[cnt].fd = in getBufferFromSurface()
179 mHalCamCtrl->mPreviewMemory.mem_info[cnt].size = in getBufferFromSurface()
181 mHalCamCtrl->mPreviewMemory.mem_info[cnt].handle = ion_info_fd.handle; in getBufferFromSurface()
206 ion_handle.handle = mHalCamCtrl->mPreviewMemory.mem_info[cnt].handle; in putBufferToSurface()
207 … if (ioctl(mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in putBufferToSurface()
210 close(mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd); in putBufferToSurface()
504 mDisplayBuf[i].mem_info = (void *)&mHalCamCtrl->mPreviewMemory.mem_info[i]; in initDisplayBuffers()
[all …]
/device/moto/shamu/camera/QCamera/HAL/core/inc/
DQCameraHWI.h160 QCameraHalMemInfo_t mem_info[MM_CAMERA_MAX_NUM_FRAMES]; member
169 QCameraHalMemInfo_t mem_info[MM_CAMERA_MAX_NUM_FRAMES]; member
174 QCameraHalMemInfo_t mem_info[NUM_HISTOGRAM_BUFFERS]; member
550 int allocate_ion_memory(QCameraHalMemInfo_t * mem_info, int ion_type);
551 int deallocate_ion_memory(QCameraHalMemInfo_t *mem_info);
553 int cache_ops(QCameraHalMemInfo_t *mem_info,
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Stream.cpp521 if( NULL == mBufDefs[index].mem_info) { in bufDone()
571 if (NULL != mBufDefs[index].mem_info) { in bufRelease()
583 mBufDefs[index].mem_info = NULL; in bufRelease()
709 if (NULL != mBufDefs[i].mem_info) { in putBufs()
/device/huawei/angler/camera/QCamera2/HAL3/
DQCamera3Stream.cpp626 if( NULL == mBufDefs[index].mem_info) { in bufDone()
688 if (NULL != mBufDefs[index].mem_info) { in bufRelease()
700 mBufDefs[index].mem_info = NULL; in bufRelease()
849 if (mStreamBufs->valid(i) && NULL != mBufDefs[i].mem_info) { in putBufs()
1295 batchBufDef.mem_info = mStreamBatchBufs; in getBatchBufDef()
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3Stream.cpp626 if( NULL == mBufDefs[index].mem_info) { in bufDone()
688 if (NULL != mBufDefs[index].mem_info) { in bufRelease()
700 mBufDefs[index].mem_info = NULL; in bufRelease()
849 if (mStreamBufs->valid(i) && NULL != mBufDefs[i].mem_info) { in putBufs()
1295 batchBufDef.mem_info = mStreamBatchBufs; in getBatchBufDef()
/device/lge/bullhead/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp346 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)preview_frame->mem_info; in selectScene()
552 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)super_frame->bufs[0]->mem_info; in preview_stream_cb_routine()
837 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in nodisplay_preview_stream_cb_routine()
915 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
952 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
1010 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)super_frame->bufs[0]->mem_info; in postview_stream_cb_routine()
1032 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in postview_stream_cb_routine()
1102 QCameraMemory *videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
1126 QCameraMemory *videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
1157 QCameraMemory *frameobj = (QCameraMemory *)plane_frame->mem_info; in video_stream_cb_routine()
/device/huawei/angler/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp346 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)preview_frame->mem_info; in selectScene()
552 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)super_frame->bufs[0]->mem_info; in preview_stream_cb_routine()
837 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in nodisplay_preview_stream_cb_routine()
915 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
952 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
1010 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)super_frame->bufs[0]->mem_info; in postview_stream_cb_routine()
1032 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in postview_stream_cb_routine()
1102 QCameraMemory *videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
1126 QCameraMemory *videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
1157 QCameraMemory *frameobj = (QCameraMemory *)plane_frame->mem_info; in video_stream_cb_routine()
/device/moto/shamu/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp332 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)preview_frame->mem_info; in selectScene()
530 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)super_frame->bufs[0]->mem_info; in preview_stream_cb_routine()
729 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in nodisplay_preview_stream_cb_routine()
807 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
845 QCameraMemory *previewMemObj = (QCameraMemory *)frame->mem_info; in rdi_mode_stream_cb_routine()
903 QCameraGrallocMemory *memory = (QCameraGrallocMemory *)super_frame->bufs[0]->mem_info; in postview_stream_cb_routine()
925 QCameraMemory *memObj = (QCameraMemory *)frame->mem_info; in postview_stream_cb_routine()
995 QCameraMemory *videoMemObj = (QCameraMemory *)frame->mem_info; in video_stream_cb_routine()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/inc/
Dmm_qcamera_app.h170 mm_camera_app_meminfo_t mem_info; member
378 extern int mm_app_cache_ops(mm_camera_app_meminfo_t *mem_info,
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/inc/
Dmm_qcamera_app.h170 mm_camera_app_meminfo_t mem_info; member
378 extern int mm_app_cache_ops(mm_camera_app_meminfo_t *mem_info, int cmd);

123