/device/lge/mako/camera/ |
D | QCameraHWI_Record.cpp | 206 for(int cnt = 0; cnt < mHalCamCtrl->mRecordingMemory.buffer_count; cnt++) { in releaseEncodeBuffer() local 208 mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_VIDEO, cnt, in releaseEncodeBuffer() 215 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->data; in releaseEncodeBuffer() 217 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->release( in releaseEncodeBuffer() 218 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]); in releaseEncodeBuffer() 221 mHalCamCtrl->mRecordingMemory.camera_memory[cnt]->release( in releaseEncodeBuffer() 222 mHalCamCtrl->mRecordingMemory.camera_memory[cnt]); in releaseEncodeBuffer() 223 close(mHalCamCtrl->mRecordingMemory.fd[cnt]); in releaseEncodeBuffer() 224 mHalCamCtrl->mRecordingMemory.fd[cnt] = -1; in releaseEncodeBuffer() 227 mHalCamCtrl->deallocate_ion_memory(&mHalCamCtrl->mRecordingMemory, cnt); in releaseEncodeBuffer() [all …]
|
D | QCameraHWI_Record_7x27A.cpp | 167 for(int cnt = 0; cnt < mHalCamCtrl->mPreviewMemory.buffer_count; cnt++) { in stop() local 171 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->data; in stop() 173 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->release( in stop() 174 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]); in stop() 202 for (int cnt = 0; cnt < mHalCamCtrl->mPreviewMemory.buffer_count; cnt++) { in initEncodeBuffers() local 204 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt] = in initEncodeBuffers() 209 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->data; in initEncodeBuffers() 213 nh->data[0] = mHalCamCtrl->mPreviewMemory.private_buffer_handle[cnt]->fd; in initEncodeBuffers() 215 nh->data[2] = mHalCamCtrl->mPreviewMemory.private_buffer_handle[cnt]->size; in initEncodeBuffers() 216 nh->data[3] = (uint32_t)mHalCamCtrl->mPreviewMemory.camera_memory[cnt]->data; in initEncodeBuffers() [all …]
|
D | QCameraHWI_Mem.cpp | 199 for (int cnt = 0; cnt < VIDEO_BUFFER_COUNT; ++cnt) { 202 pmemBuf.offset = mRecordHeap->mAlignedBufferSize * cnt; 204 … pmemBuf.vaddr = (uint8_t *)mRecordHeap->mHeap->base() + mRecordHeap->mAlignedBufferSize * cnt; 208 pmemBuf.active = (cnt<ACTIVE_VIDEO_BUFFERS); 209 if( (mVpeEnabled) && (cnt == kRecordBufferCount-1)) { 293 for (int cnt = 0; cnt < num_buf; ++cnt) { 296 active = (cnt<ACTIVE_VIDEO_BUFFERS); 306 if( (mVpeEnabled) && (cnt == kRecordBufferCount-1)) { 313 active = (cnt < ACTIVE_PREVIEW_BUFFERS); 317 active = (cnt < ACTIVE_ZSL_BUFFERS); [all …]
|
D | QualcommCameraHardware.cpp | 2852 for (int cnt = 0; cnt < mTotalPreviewBufferCount; ++cnt) { in runFrameThread() local 2857 frames[cnt].fd, in runFrameThread() 2859 (uint8_t *)frames[cnt].buffer, in runFrameThread() 2881 for (int cnt = 0; cnt < kRecordBufferCount; cnt++) { in runFrameThread() local 2883 if (mRecordfd[cnt] > 0) { in runFrameThread() 2884 ALOGE("Unregistering buffer %d with kernel",cnt); in runFrameThread() 2887 mRecordfd[cnt], in runFrameThread() 2889 (uint8_t *)recordframes[cnt].buffer, in runFrameThread() 2896 ALOGI("%s: unregister record buffers[%d] with camera driver", __FUNCTION__, cnt); in runFrameThread() 2900 recordframes[cnt].fd, in runFrameThread() [all …]
|
D | QCameraHWI_Preview.cpp | 156 for (int cnt = 0; cnt < mHalCamCtrl->mPreviewMemory.buffer_count; cnt++) { in getBufferFromSurface() local 159 &mHalCamCtrl->mPreviewMemory.buffer_handle[cnt], in getBufferFromSurface() 160 &mHalCamCtrl->mPreviewMemory.stride[cnt]); in getBufferFromSurface() 162 … ALOGV("%s: dequeue buf hdl =%p", __func__, *mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 164 mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 166 …amera call genlock_lock, hdl=%p", __FUNCTION__, (*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt])); in getBufferFromSurface() 167 …_ERROR != genlock_lock_buffer((native_handle_t *)(*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]), in getBufferFromSurface() 170 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_UNLOCKED; in getBufferFromSurface() 174 …("%s: genlock_lock_buffer hdl =%p", __FUNCTION__, *mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 175 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_LOCKED; in getBufferFromSurface() [all …]
|
D | QCameraHWI_Preview_7x27A.cpp | 134 for (int cnt = 0; cnt < mHalCamCtrl->mPreviewMemory.buffer_count; cnt++) { in getBufferFromSurface() local 137 &mHalCamCtrl->mPreviewMemory.buffer_handle[cnt], in getBufferFromSurface() 138 &mHalCamCtrl->mPreviewMemory.stride[cnt]); in getBufferFromSurface() 141 mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 145 …_ERROR != genlock_lock_buffer((native_handle_t *)(*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]), in getBufferFromSurface() 148 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_UNLOCKED; in getBufferFromSurface() 152 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_LOCKED; in getBufferFromSurface() 154 ALOGE("%s: dequeue_buffer idx = %d err = %d", __func__, cnt, err); in getBufferFromSurface() 156 …E("%s: dequeue buf: %u\n", __func__, (unsigned int)mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 162 for(int i = 0; i < cnt; i++) { in getBufferFromSurface() [all …]
|
D | QCameraHWI.cpp | 2336 int QCameraHardwareInterface::allocate_ion_memory(QCameraHalHeap_t *p_camera_memory, int cnt, int i… in allocate_ion_memory() argument 2341 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory() 2342 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory() 2347 p_camera_memory->alloc[cnt].len = p_camera_memory->size; in allocate_ion_memory() 2349 p_camera_memory->alloc[cnt].len = (p_camera_memory->alloc[cnt].len + 4095) & (~4095); in allocate_ion_memory() 2350 p_camera_memory->alloc[cnt].align = 4096; in allocate_ion_memory() 2351 p_camera_memory->alloc[cnt].flags = ION_FLAG_CACHED; in allocate_ion_memory() 2352 p_camera_memory->alloc[cnt].heap_id_mask = ion_type; in allocate_ion_memory() 2354 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory() 2360 p_camera_memory->ion_info_fd[cnt].handle = p_camera_memory->alloc[cnt].handle; in allocate_ion_memory() [all …]
|
/device/lge/mako/camera/QCamera/HAL/core/src/ |
D | QCameraHWI_Record.cpp | 207 for(int cnt = 0; cnt < mHalCamCtrl->mRecordingMemory.buffer_count; cnt++) { in releaseEncodeBuffer() local 209 mHalCamCtrl->sendUnMappingBuf(MSM_V4L2_EXT_CAPTURE_MODE_VIDEO, cnt, in releaseEncodeBuffer() 216 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->data; in releaseEncodeBuffer() 218 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->release( in releaseEncodeBuffer() 219 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]); in releaseEncodeBuffer() 222 mHalCamCtrl->mRecordingMemory.camera_memory[cnt]->release( in releaseEncodeBuffer() 223 mHalCamCtrl->mRecordingMemory.camera_memory[cnt]); in releaseEncodeBuffer() 224 close(mHalCamCtrl->mRecordingMemory.fd[cnt]); in releaseEncodeBuffer() 225 mHalCamCtrl->mRecordingMemory.fd[cnt] = -1; in releaseEncodeBuffer() 228 mHalCamCtrl->deallocate_ion_memory(&mHalCamCtrl->mRecordingMemory, cnt); in releaseEncodeBuffer() [all …]
|
D | QCameraHWI_Mem.cpp | 198 for (int cnt = 0; cnt < VIDEO_BUFFER_COUNT; ++cnt) { 201 pmemBuf.offset = mRecordHeap->mAlignedBufferSize * cnt; 203 … pmemBuf.vaddr = (uint8_t *)mRecordHeap->mHeap->base() + mRecordHeap->mAlignedBufferSize * cnt; 207 pmemBuf.active = (cnt<ACTIVE_VIDEO_BUFFERS); 208 if( (mVpeEnabled) && (cnt == kRecordBufferCount-1)) { 291 for (int cnt = 0; cnt < num_buf; ++cnt) { in PmemPool() 294 active = (cnt<ACTIVE_VIDEO_BUFFERS); in PmemPool() 304 if( (mVpeEnabled) && (cnt == kRecordBufferCount-1)) { in PmemPool() 311 active = (cnt < ACTIVE_PREVIEW_BUFFERS); in PmemPool() 315 active = (cnt < ACTIVE_ZSL_BUFFERS); in PmemPool() [all …]
|
D | QCameraHWI_Preview.cpp | 155 for (int cnt = 0; cnt < mHalCamCtrl->mPreviewMemory.buffer_count; cnt++) { in getBufferFromSurface() local 158 &mHalCamCtrl->mPreviewMemory.buffer_handle[cnt], in getBufferFromSurface() 159 &mHalCamCtrl->mPreviewMemory.stride[cnt]); in getBufferFromSurface() 161 … LOGE("%s: dequeue buf hdl =%p", __func__, *mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 163 mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 165 …amera call genlock_lock, hdl=%p", __FUNCTION__, (*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt])); in getBufferFromSurface() 166 …_ERROR != genlock_lock_buffer((native_handle_t *)(*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]), in getBufferFromSurface() 169 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_UNLOCKED; in getBufferFromSurface() 173 …("%s: genlock_lock_buffer hdl =%p", __FUNCTION__, *mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 174 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_LOCKED; in getBufferFromSurface() [all …]
|
D | QCameraHWI.cpp | 2159 int QCameraHardwareInterface::allocate_ion_memory(QCameraHalHeap_t *p_camera_memory, int cnt, int i… in allocate_ion_memory() argument 2164 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory() 2165 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory() 2170 p_camera_memory->alloc[cnt].len = p_camera_memory->size; in allocate_ion_memory() 2172 p_camera_memory->alloc[cnt].len = (p_camera_memory->alloc[cnt].len + 4095) & (~4095); in allocate_ion_memory() 2173 p_camera_memory->alloc[cnt].align = 4096; in allocate_ion_memory() 2174 p_camera_memory->alloc[cnt].flags = ION_FLAG_CACHED; in allocate_ion_memory() 2175 p_camera_memory->alloc[cnt].heap_id_mask = ion_type; in allocate_ion_memory() 2178 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory() 2184 p_camera_memory->ion_info_fd[cnt].handle = p_camera_memory->alloc[cnt].handle; in allocate_ion_memory() [all …]
|
D | QCameraHWI_Parm.cpp | 3664 for(int cnt = 0; cnt<3; cnt++) { in setHistogram() local 3665 mStatsMapped[cnt]=mGetMemory(-1, mStatSize, 1, mCallbackCookie); in setHistogram() 3666 if(mStatsMapped[cnt] == NULL) { in setHistogram() 3667 LOGE("Failed to get camera memory for stats heap index: %d", cnt); in setHistogram() 3671 …mStatsMapped[cnt]->data ,mStatsMapped[cnt]->handle, mStatsMapped[cnt]->size, mStatsMapped[cnt]->re… in setHistogram() 3675 if(allocate_ion_memory(&mHistServer, cnt, ION_CP_MM_HEAP_ID) < 0) { in setHistogram() 3680 mHistServer.fd[cnt] = open("/dev/pmem_adsp", O_RDWR|O_SYNC); in setHistogram() 3681 if(mHistServer.fd[cnt] <= 0) { in setHistogram() 3682 LOGE("%s: no pmem for frame %d", __func__, cnt); in setHistogram() 3686 …mHistServer.camera_memory[cnt]=mGetMemory(mHistServer.fd[cnt],mHistServer.size, 1, mCallbackCookie… in setHistogram() [all …]
|
/device/moto/shamu/camera/QCamera/HAL/core/src/ |
D | QCameraHWI_Record.cpp | 91 for(int cnt = 0; cnt < mHalCamCtrl->mRecordingMemory.buffer_count; cnt++) { in putBuf() local 94 … (struct encoder_media_buffer_type *)mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->data; in putBuf() 96 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->release( in putBuf() 97 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]); in putBuf() 99 mHalCamCtrl->mRecordingMemory.camera_memory[cnt]->release( in putBuf() 100 mHalCamCtrl->mRecordingMemory.camera_memory[cnt]); in putBuf() 103 mHalCamCtrl->deallocate_ion_memory(&mHalCamCtrl->mRecordingMemory.mem_info[cnt]); in putBuf() 215 for (int cnt = 0; cnt < mNumBuffers; cnt++) { in getBuf() local 216 mHalCamCtrl->mRecordingMemory.metadata_memory[cnt] = in getBuf() 222 … (struct encoder_media_buffer_type *)mHalCamCtrl->mRecordingMemory.metadata_memory[cnt]->data; in getBuf() [all …]
|
D | QCameraHWI_Preview.cpp | 99 for (int cnt = 0; cnt < mHalCamCtrl->mPreviewMemory.buffer_count; cnt++) { in getBufferFromSurface() local 102 &mHalCamCtrl->mPreviewMemory.buffer_handle[cnt], in getBufferFromSurface() 103 &mHalCamCtrl->mPreviewMemory.stride[cnt]); in getBufferFromSurface() 105 … ALOGV("%s: dequeue buf hdl =%p", __func__, *mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 107 mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 110 __FUNCTION__, (*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt])); in getBufferFromSurface() 111 …_ERROR != genlock_lock_buffer((native_handle_t *)(*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]), in getBufferFromSurface() 114 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_UNLOCKED; in getBufferFromSurface() 116 …LOGV("%s: genlock_lock_buffer hdl =%p", __func__, *mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface() 117 mHalCamCtrl->mPreviewMemory.local_flag[cnt] = BUFFER_LOCKED; in getBufferFromSurface() [all …]
|
D | QCameraHWI.cpp | 3148 for(int cnt = 0; cnt < NUM_HISTOGRAM_BUFFERS; cnt++) { in initHistogramBuffers() local 3149 mStatsMapped[cnt] = mGetMemory(-1, mStatSize, 1, mCallbackCookie); in initHistogramBuffers() 3150 if(mStatsMapped[cnt] == NULL) { in initHistogramBuffers() 3151 ALOGE("Failed to get camera memory for stats heap index: %d", cnt); in initHistogramBuffers() 3155 " size:%d,release:%p", mStatsMapped[cnt]->data, in initHistogramBuffers() 3156 mStatsMapped[cnt]->handle, mStatsMapped[cnt]->size, in initHistogramBuffers() 3157 mStatsMapped[cnt]->release); in initHistogramBuffers() 3159 mHistServer.mem_info[cnt].size = sizeof(camera_preview_histogram_info); in initHistogramBuffers() 3162 if(allocate_ion_memory(&mHistServer.mem_info[cnt], flag) < 0) { in initHistogramBuffers() 3163 ALOGE("%s ION alloc failed for %d\n", __func__, cnt); in initHistogramBuffers() [all …]
|
/device/asus/flo/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 614 for (size_t cnt = 0; cnt < num_buffers; cnt++) { in registerBuffers() local 615 if (buffers[cnt] == NULL) { in registerBuffers() 616 ALOGE("%s: Invalid buffers[%d].", __func__, cnt); in registerBuffers() 619 mBufferHandle[cnt] = buffers[cnt]; in registerBuffers() 620 mPrivateHandle[cnt] = in registerBuffers() 621 (struct private_handle_t *)(*mBufferHandle[cnt]); in registerBuffers() 622 mMemInfo[cnt].main_ion_fd = open("/dev/ion", O_RDONLY); in registerBuffers() 623 if (mMemInfo[cnt].main_ion_fd < 0) { in registerBuffers() 625 for(size_t i = 0; i < cnt; i++) { in registerBuffers() 640 ion_info_fd.fd = mPrivateHandle[cnt]->fd; in registerBuffers() [all …]
|
/device/lge/mako/camera/mm-camera-interface/ |
D | mm_camera_notify.c | 54 int cnt = 0; in mm_camera_read_raw_frame() local 68 data[cnt].type = MM_CAMERA_CH_RAW; in mm_camera_read_raw_frame() 69 data[cnt].def.idx = idx; in mm_camera_read_raw_frame() 70 data[cnt].def.frame = &my_obj->ch[MM_CAMERA_CH_RAW].raw.stream.frame.frame[idx].frame; in mm_camera_read_raw_frame() 75 … memcpy(&buf_cb[cnt], &my_obj->ch[MM_CAMERA_CH_RAW].buf_cb[i], sizeof(mm_camera_buf_cb_t)); in mm_camera_read_raw_frame() 76 cnt++; in mm_camera_read_raw_frame() 81 for( i=0;i<cnt;i++) { in mm_camera_read_raw_frame() 193 peerq->cnt--; in mm_camera_zsl_frame_cmp_and_enq() 240 myq->cnt, myq->match_cnt); in mm_camera_zsl_frame_cmp_and_enq() 241 if(myq->cnt > myq->match_cnt + 1) { in mm_camera_zsl_frame_cmp_and_enq() [all …]
|
D | mm_camera_stream.c | 59 int cnt; in mm_camera_stream_frame_get_q_cnt() local 61 cnt = q->cnt; in mm_camera_stream_frame_get_q_cnt() 63 return cnt; in mm_camera_stream_frame_get_q_cnt() 80 q->cnt--; in mm_camera_stream_frame_deq_no_lock() 95 q->cnt++; in mm_camera_stream_frame_enq_no_lock() 113 q->cnt--; in mm_camera_stream_frame_deq() 130 q->cnt++; in mm_camera_stream_frame_enq() 137 q->cnt = 0; in mm_stream_frame_flash_q()
|
/device/asus/flo/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 1078 for (int cnt = 0; cnt < count; cnt++) { in allocate() local 1080 err = mWindow->dequeue_buffer(mWindow, &mBufferHandle[cnt], &stride); in allocate() 1082 ALOGV("dequeue buf hdl =%p", mBufferHandle[cnt]); in allocate() 1083 mLocalFlag[cnt] = BUFFER_OWNED; in allocate() 1085 mLocalFlag[cnt] = BUFFER_NOT_OWNED; in allocate() 1086 ALOGE("%s: dequeue_buffer idx = %d err = %d", __func__, cnt, err); in allocate() 1089 ALOGV("%s: dequeue buf: %p\n", __func__, mBufferHandle[cnt]); in allocate() 1095 for(int i = 0; i < cnt; i++) { in allocate() 1107 mPrivateHandle[cnt] = in allocate() 1108 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate() [all …]
|
/device/lge/hammerhead/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 1078 for (int cnt = 0; cnt < count; cnt++) { in allocate() local 1080 err = mWindow->dequeue_buffer(mWindow, &mBufferHandle[cnt], &stride); in allocate() 1082 ALOGV("dequeue buf hdl =%p", mBufferHandle[cnt]); in allocate() 1083 mLocalFlag[cnt] = BUFFER_OWNED; in allocate() 1085 mLocalFlag[cnt] = BUFFER_NOT_OWNED; in allocate() 1086 ALOGE("%s: dequeue_buffer idx = %d err = %d", __func__, cnt, err); in allocate() 1089 ALOGV("%s: dequeue buf: %p\n", __func__, mBufferHandle[cnt]); in allocate() 1095 for(int i = 0; i < cnt; i++) { in allocate() 1107 mPrivateHandle[cnt] = in allocate() 1108 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 1450 for (int cnt = 0; cnt < count; cnt++) { in allocate() local 1452 err = mWindow->dequeue_buffer(mWindow, &mBufferHandle[cnt], &stride); in allocate() 1454 CDBG("dequeue buf hdl =%p", mBufferHandle[cnt]); in allocate() 1455 mLocalFlag[cnt] = BUFFER_OWNED; in allocate() 1457 mLocalFlag[cnt] = BUFFER_NOT_OWNED; in allocate() 1458 ALOGE("%s: dequeue_buffer idx = %d err = %d", __func__, cnt, err); in allocate() 1461 CDBG("%s: dequeue buf: %p\n", __func__, mBufferHandle[cnt]); in allocate() 1467 for(int i = 0; i < cnt; i++) { in allocate() 1479 mPrivateHandle[cnt] = in allocate() 1480 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate() [all …]
|
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
D | QualcommUsbCamera.cpp | 855 for (int cnt = 0; cnt < camHal->previewMem.buffer_count; cnt++) { in initDisplayBuffers() local 859 &camHal->previewMem.buffer_handle[cnt], in initDisplayBuffers() 860 &camHal->previewMem.stride[cnt]); in initDisplayBuffers() 863 __func__, camHal->previewMem.buffer_handle[cnt]); in initDisplayBuffers() 868 camHal->previewMem.buffer_handle[cnt]); in initDisplayBuffers() 875 __func__, (*camHal->previewMem.buffer_handle[cnt])); in initDisplayBuffers() 879 (native_handle_t *) (*camHal->previewMem.buffer_handle[cnt]), in initDisplayBuffers() 884 camHal->previewMem.local_flag[cnt] = BUFFER_UNLOCKED; in initDisplayBuffers() 887 __func__, *camHal->previewMem.buffer_handle[cnt]); in initDisplayBuffers() 888 camHal->previewMem.local_flag[cnt] = BUFFER_LOCKED; in initDisplayBuffers() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 686 for (int cnt = 0; cnt < mBufferCount; cnt++) { in unregisterBuffers() local 687 munmap(mPtr[cnt], mMemInfo[cnt].size); in unregisterBuffers() 688 mPtr[cnt] = NULL; in unregisterBuffers() 692 ion_handle.handle = mMemInfo[cnt].handle; in unregisterBuffers() 693 if (ioctl(mMemInfo[cnt].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in unregisterBuffers() 696 close(mMemInfo[cnt].main_ion_fd); in unregisterBuffers() 697 CDBG_HIGH("put buffer %d successfully", cnt); in unregisterBuffers()
|
/device/lge/hammerhead/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 681 for (int cnt = 0; cnt < mBufferCount; cnt++) { in unregisterBuffers() local 682 munmap(mPtr[cnt], mMemInfo[cnt].size); in unregisterBuffers() 683 mPtr[cnt] = NULL; in unregisterBuffers() 687 ion_handle.handle = mMemInfo[cnt].handle; in unregisterBuffers() 688 if (ioctl(mMemInfo[cnt].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in unregisterBuffers() 691 close(mMemInfo[cnt].main_ion_fd); in unregisterBuffers() 692 ALOGV("put buffer %d successfully", cnt); in unregisterBuffers()
|
/device/lge/mako/camera/QCamera/HAL/core/inc/ |
D | QCameraHWI.h | 475 int allocate_ion_memory(QCameraHalHeap_t *p_camera_memory, int cnt, 477 int deallocate_ion_memory(QCameraHalHeap_t *p_camera_memory, int cnt); 479 int allocate_ion_memory(QCameraStatHeap_t *p_camera_memory, int cnt, 481 int deallocate_ion_memory(QCameraStatHeap_t *p_camera_memory, int cnt);
|