Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 35) sorted by relevance

12

/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI_Record.cpp91 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 …]
DQCameraHWI_Preview.cpp99 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 …]
DQCameraHWI.cpp3148 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/moto/shamu/camera/QCamera2/HAL/
DQCameraMem.cpp1450 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 …]
DQCamera2HWI.cpp98 uint32_t cnt = 0; in getEffectValue() local
99 while(NULL != QCameraParameters::EFFECT_MODES_MAP[cnt].desc) { in getEffectValue()
100 if(!strcmp(QCameraParameters::EFFECT_MODES_MAP[cnt].desc, effect)) { in getEffectValue()
101 return QCameraParameters::EFFECT_MODES_MAP[cnt].val; in getEffectValue()
103 cnt++; in getEffectValue()
/device/huawei/angler/camera/QCamera2/HAL/
DQCameraMem.cpp1665 for (int cnt = 0; cnt < count; cnt++) { in allocate() local
1667 err = mWindow->dequeue_buffer(mWindow, &mBufferHandle[cnt], &stride); in allocate()
1669 CDBG("dequeue buf hdl =%p", mBufferHandle[cnt]); in allocate()
1670 mLocalFlag[cnt] = BUFFER_OWNED; in allocate()
1672 mLocalFlag[cnt] = BUFFER_NOT_OWNED; in allocate()
1673 ALOGE("%s: dequeue_buffer idx = %d err = %d", __func__, cnt, err); in allocate()
1676 CDBG("%s: dequeue buf: %p\n", __func__, mBufferHandle[cnt]); in allocate()
1682 for(int i = 0; i < cnt; i++) { in allocate()
1694 mPrivateHandle[cnt] = in allocate()
1695 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate()
[all …]
DQCameraStream.cpp474 uint8_t cnt; in unMapBuf() local
478 cnt = Buf->getCnt(); in unMapBuf()
479 for (i = 0; i < cnt; i++) { in unMapBuf()
520 uint8_t cnt; in mapBuf() local
524 cnt = Buf->getCnt(); in mapBuf()
525 for (i = 0; i < cnt; i++) { in mapBuf()
/device/lge/bullhead/camera/QCamera2/HAL/
DQCameraMem.cpp1665 for (int cnt = 0; cnt < count; cnt++) { in allocate() local
1667 err = mWindow->dequeue_buffer(mWindow, &mBufferHandle[cnt], &stride); in allocate()
1669 CDBG("dequeue buf hdl =%p", mBufferHandle[cnt]); in allocate()
1670 mLocalFlag[cnt] = BUFFER_OWNED; in allocate()
1672 mLocalFlag[cnt] = BUFFER_NOT_OWNED; in allocate()
1673 ALOGE("%s: dequeue_buffer idx = %d err = %d", __func__, cnt, err); in allocate()
1676 CDBG("%s: dequeue buf: %p\n", __func__, mBufferHandle[cnt]); in allocate()
1682 for(int i = 0; i < cnt; i++) { in allocate()
1694 mPrivateHandle[cnt] = in allocate()
1695 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate()
[all …]
DQCameraStream.cpp474 uint8_t cnt; in unMapBuf() local
478 cnt = Buf->getCnt(); in unMapBuf()
479 for (i = 0; i < cnt; i++) { in unMapBuf()
520 uint8_t cnt; in mapBuf() local
524 cnt = Buf->getCnt(); in mapBuf()
525 for (i = 0; i < cnt; i++) { in mapBuf()
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQualcommUsbCamera.cpp855 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/google/contexthub/firmware/app/test0.app/
Dtest_app0.c25 static int cnt; variable
37 cnt = 100; in start_task()
55 timerId = eOsTimTimerSet(1000000000ULL, 50, 50, mMyTid, (void *)&cnt, false); in handle_event()
67 if (cnt-- <= 0) in handle_event()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp335 int cnt = 0; in processSample() local
346 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata; in processSample()
349 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample()
352 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata; in processSample()
355 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata; in processSample()
361 initEv(&nev[cnt++], timestamp, type, sensor)->u64.step_counter = mLastStepCount; in processSample()
367 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = 1.0f; in processSample()
371 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
379 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
385 if (cnt > 0) in processSample()
[all …]
/device/google/contexthub/lib/nanohub/
Dsoftcrc.c30 static uint32_t crcOneWord(uint32_t crc, uint32_t data, int cnt) in crcOneWord() argument
35 for (i = 0; i < cnt; i++) in crcOneWord()
/device/google/contexthub/firmware/src/platform/stm32f4xx/
Dcrc.c40 static uint32_t revCrc32Word(uint32_t crc, uint32_t data, uint32_t cnt) in revCrc32Word() argument
44 for (i = 0; i < cnt; i++) in revCrc32Word()
Dplatform.c465 uint32_t cnt; in sleepClockTmrWake() local
481 cnt = tim->CNT; in sleepClockTmrWake()
482 } while (sr != tim->SR || cnt != tim->CNT); in sleepClockTmrWake()
484 …leftTicks = cnt; //if we wake NOT from timer, only count the ticks that actually ticked as "time p… in sleepClockTmrWake()
/device/google/contexthub/util/stm32_flash/
Dstm32_bl.c52 static uint8_t write_cnt(handle_t *handle, uint16_t cnt) in write_cnt() argument
56 buffer[0] = (cnt >> 8) & 0xFF; in write_cnt()
57 buffer[1] = (cnt ) & 0xFF; in write_cnt()
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Mem.cpp813 for (size_t cnt = 0; cnt < MM_CAMERA_MAX_NUM_FRAMES; cnt++) { in unregisterBuffers() local
814 if (0 == mMemInfo[cnt].handle) { in unregisterBuffers()
817 err = unregisterBufferLocked(cnt); in unregisterBuffers()
820 __func__, cnt, err); in unregisterBuffers()
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c498 size_t i = 0, cnt = 0; in mm_camera_poll_thread_launch() local
502 cnt = sizeof(poll_cb->poll_fds) / sizeof(poll_cb->poll_fds[0]); in mm_camera_poll_thread_launch()
503 for (i = 0; i < cnt; i++) { in mm_camera_poll_thread_launch()
507 cnt = sizeof(poll_cb->poll_entries) / sizeof(poll_cb->poll_entries[0]); in mm_camera_poll_thread_launch()
508 for (i = 0; i < cnt; i++) { in mm_camera_poll_thread_launch()
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c498 size_t i = 0, cnt = 0; in mm_camera_poll_thread_launch() local
502 cnt = sizeof(poll_cb->poll_fds) / sizeof(poll_cb->poll_fds[0]); in mm_camera_poll_thread_launch()
503 for (i = 0; i < cnt; i++) { in mm_camera_poll_thread_launch()
507 cnt = sizeof(poll_cb->poll_entries) / sizeof(poll_cb->poll_entries[0]); in mm_camera_poll_thread_launch()
508 for (i = 0; i < cnt; i++) { in mm_camera_poll_thread_launch()
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3Mem.cpp910 for (uint32_t cnt = mStartIdx; cnt < MM_CAMERA_MAX_NUM_FRAMES; cnt++) { in unregisterBuffers() local
911 if (0 == mMemInfo[cnt].handle) { in unregisterBuffers()
914 err = unregisterBufferLocked(cnt); in unregisterBuffers()
917 __func__, cnt, err); in unregisterBuffers()
/device/huawei/angler/camera/QCamera2/HAL3/
DQCamera3Mem.cpp910 for (uint32_t cnt = mStartIdx; cnt < MM_CAMERA_MAX_NUM_FRAMES; cnt++) { in unregisterBuffers() local
911 if (0 == mMemInfo[cnt].handle) { in unregisterBuffers()
914 err = unregisterBufferLocked(cnt); in unregisterBuffers()
917 __func__, cnt, err); in unregisterBuffers()
/device/google/contexthub/util/nanotool/
Dnanopacket.cpp33 uint32_t Crc32Word(uint32_t crc, uint32_t data, int cnt) { in Crc32Word() argument
36 for (int i = 0; i < cnt; i++) { in Crc32Word()
/device/google/contexthub/firmware/src/
DnanohubCommand.c90 uint8_t cnt; member
656 sync->cnt = 0; in addDelta()
666 if (sync->cnt < SYNC_DATAPOINTS) in addDelta()
667 sync->cnt ++; in addDelta()
677 if (!sync->cnt) in getAvgDelta()
680 for (i=1, avg=0; i<sync->cnt; i++) in getAvgDelta()
682 sync->avgDelta = (avg / sync->cnt) + sync->delta[0]; in getAvgDelta()
DhostIntf.c1047 uint32_t i, cnt; in hostIntfHandleEvent() local
1107 for (i = 0, cnt = 0; i < mNumSensors && cnt < mLatencyCnt; i++) { in hostIntfHandleEvent()
1109 cnt++; in hostIntfHandleEvent()
/device/moto/shamu/camera/QCamera/HAL2/core/inc/
DQCameraHWI.h489 int allocate_ion_memory(QCameraHalHeap_t *p_camera_memory, int cnt,
491 int deallocate_ion_memory(QCameraHalHeap_t *p_camera_memory, int cnt);
493 int allocate_ion_memory(QCameraStatHeap_t *p_camera_memory, int cnt,
495 int deallocate_ion_memory(QCameraStatHeap_t *p_camera_memory, int cnt);

12