Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 176) sorted by relevance

12345678

/device/huawei/angler/camera/QCamera2/HAL3/
DQCamera3StreamMem.cpp127 int QCamera3StreamMem::getFd(uint32_t index) in getFd() argument
131 if (index < mMaxHeapBuffers) in getFd()
132 return mHeapMem.getFd(index); in getFd()
134 return mGrallocMem.getFd(index); in getFd()
147 ssize_t QCamera3StreamMem::getSize(uint32_t index) in getSize() argument
151 if (index < mMaxHeapBuffers) in getSize()
152 return mHeapMem.getSize(index); in getSize()
154 return mGrallocMem.getSize(index); in getSize()
169 int QCamera3StreamMem::invalidateCache(uint32_t index) in invalidateCache() argument
173 if (index < mMaxHeapBuffers) in invalidateCache()
[all …]
DQCamera3Mem.cpp100 int QCamera3Memory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
108 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in cacheOpsInternal()
110 __func__, index, MM_CAMERA_MAX_NUM_FRAMES); in cacheOpsInternal()
114 if (0 == mMemInfo[index].handle) { in cacheOpsInternal()
115 ALOGE("%s: Buffer at %d not registered", __func__, index); in cacheOpsInternal()
122 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
123 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
124 cache_inv_data.length = (unsigned int)mMemInfo[index].size; in cacheOpsInternal()
131 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
132 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
[all …]
DQCamera3Mem.h49 int cleanCache(uint32_t index) in cleanCache() argument
51 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache()
53 int invalidateCache(uint32_t index) in invalidateCache() argument
55 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache()
57 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument
59 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache()
61 int getFd(uint32_t index);
62 ssize_t getSize(uint32_t index);
65 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0;
67 virtual void *getPtr(uint32_t index) = 0;
[all …]
DQCamera3StreamMem.h56 int getFd(uint32_t index);
57 ssize_t getSize(uint32_t index);
58 int invalidateCache(uint32_t index);
59 int cleanInvalidateCache(uint32_t index);
61 mm_camera_buf_def_t &bufDef, uint32_t index);
62 void *getPtr(uint32_t index);
64 bool valid(uint32_t index);
68 int unregisterBuffer(uint32_t index);
70 void *getBufferHandle(uint32_t index);
82 int32_t markFrameNumber(uint32_t index, uint32_t frameNumber);
[all …]
DQCamera3Stream.cpp137 int32_t QCamera3Stream::invalidate_buf(uint32_t index, void *user_data) in invalidate_buf() argument
149 i < stream->mBatchBufDefs[index].user_buf.bufs_used; i++) { in invalidate_buf()
150 uint32_t buf_idx = stream->mBatchBufDefs[index].user_buf.buf_idx[i]; in invalidate_buf()
159 rc = stream->invalidateBuf(index); in invalidate_buf()
177 int32_t QCamera3Stream::clean_invalidate_buf(uint32_t index, void *user_data) in clean_invalidate_buf() argument
189 i < stream->mBatchBufDefs[index].user_buf.bufs_used; i++) { in clean_invalidate_buf()
190 uint32_t buf_idx = stream->mBatchBufDefs[index].user_buf.buf_idx[i]; in clean_invalidate_buf()
199 rc = stream->cleanInvalidateBuf(index); in clean_invalidate_buf()
616 int32_t QCamera3Stream::bufDone(uint32_t index) in bufDone() argument
621 if ((index >= mNumBufs) || (mBufDefs == NULL)) { in bufDone()
[all …]
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3StreamMem.cpp127 int QCamera3StreamMem::getFd(uint32_t index) in getFd() argument
131 if (index < mMaxHeapBuffers) in getFd()
132 return mHeapMem.getFd(index); in getFd()
134 return mGrallocMem.getFd(index); in getFd()
147 ssize_t QCamera3StreamMem::getSize(uint32_t index) in getSize() argument
151 if (index < mMaxHeapBuffers) in getSize()
152 return mHeapMem.getSize(index); in getSize()
154 return mGrallocMem.getSize(index); in getSize()
169 int QCamera3StreamMem::invalidateCache(uint32_t index) in invalidateCache() argument
173 if (index < mMaxHeapBuffers) in invalidateCache()
[all …]
DQCamera3Mem.cpp100 int QCamera3Memory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
108 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in cacheOpsInternal()
110 __func__, index, MM_CAMERA_MAX_NUM_FRAMES); in cacheOpsInternal()
114 if (0 == mMemInfo[index].handle) { in cacheOpsInternal()
115 ALOGE("%s: Buffer at %d not registered", __func__, index); in cacheOpsInternal()
122 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
123 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
124 cache_inv_data.length = (unsigned int)mMemInfo[index].size; in cacheOpsInternal()
131 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
132 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
[all …]
DQCamera3Mem.h49 int cleanCache(uint32_t index) in cleanCache() argument
51 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache()
53 int invalidateCache(uint32_t index) in invalidateCache() argument
55 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache()
57 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument
59 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache()
61 int getFd(uint32_t index);
62 ssize_t getSize(uint32_t index);
65 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0;
67 virtual void *getPtr(uint32_t index) = 0;
[all …]
DQCamera3StreamMem.h56 int getFd(uint32_t index);
57 ssize_t getSize(uint32_t index);
58 int invalidateCache(uint32_t index);
59 int cleanInvalidateCache(uint32_t index);
61 mm_camera_buf_def_t &bufDef, uint32_t index);
62 void *getPtr(uint32_t index);
64 bool valid(uint32_t index);
68 int unregisterBuffer(uint32_t index);
70 void *getBufferHandle(uint32_t index);
82 int32_t markFrameNumber(uint32_t index, uint32_t frameNumber);
[all …]
DQCamera3Stream.cpp137 int32_t QCamera3Stream::invalidate_buf(uint32_t index, void *user_data) in invalidate_buf() argument
149 i < stream->mBatchBufDefs[index].user_buf.bufs_used; i++) { in invalidate_buf()
150 uint32_t buf_idx = stream->mBatchBufDefs[index].user_buf.buf_idx[i]; in invalidate_buf()
159 rc = stream->invalidateBuf(index); in invalidate_buf()
177 int32_t QCamera3Stream::clean_invalidate_buf(uint32_t index, void *user_data) in clean_invalidate_buf() argument
189 i < stream->mBatchBufDefs[index].user_buf.bufs_used; i++) { in clean_invalidate_buf()
190 uint32_t buf_idx = stream->mBatchBufDefs[index].user_buf.buf_idx[i]; in clean_invalidate_buf()
199 rc = stream->cleanInvalidateBuf(index); in clean_invalidate_buf()
616 int32_t QCamera3Stream::bufDone(uint32_t index) in bufDone() argument
621 if ((index >= mNumBufs) || (mBufDefs == NULL)) { in bufDone()
[all …]
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Mem.h49 int cleanCache(int index) {return cacheOps(index, ION_IOC_CLEAN_CACHES);} in cleanCache() argument
50 int invalidateCache(int index) {return cacheOps(index, ION_IOC_INV_CACHES);} in invalidateCache() argument
51 int cleanInvalidateCache(int index) {return cacheOps(index, ION_IOC_CLEAN_INV_CACHES);} in cleanInvalidateCache() argument
52 int getFd(int index);
53 int getSize(int index);
56 virtual int cacheOps(int index, unsigned int cmd) = 0;
59 virtual void *getPtr(int index) = 0;
65 mm_camera_buf_def_t &bufDef, int index);
75 int cacheOpsInternal(int index, unsigned int cmd, void *vaddr);
76 virtual void *getPtrLocked(int index) = 0;
[all …]
DQCamera3Mem.cpp99 int QCamera3Memory::cacheOpsInternal(int index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
107 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in cacheOpsInternal()
109 __func__, index, MM_CAMERA_MAX_NUM_FRAMES); in cacheOpsInternal()
113 if (0 == mMemInfo[index].handle) { in cacheOpsInternal()
114 ALOGE("%s: Buffer at %d not registered", __func__, index); in cacheOpsInternal()
121 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
122 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
123 cache_inv_data.length = mMemInfo[index].size; in cacheOpsInternal()
130 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
131 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
[all …]
DQCamera3Stream.cpp115 int32_t QCamera3Stream::invalidate_buf(int index, void *user_data) in invalidate_buf() argument
122 return stream->invalidateBuf(index); in invalidate_buf()
138 int32_t QCamera3Stream::clean_invalidate_buf(int index, void *user_data) in clean_invalidate_buf() argument
145 return stream->cleanInvalidateBuf(index); in clean_invalidate_buf()
512 int32_t QCamera3Stream::bufDone(int index) in bufDone() argument
517 if ((index >= mNumBufs) || (mBufDefs == NULL)) { in bufDone()
521 if( NULL == mBufDefs[index].mem_info) { in bufDone()
527 rc = mMemOps->map_ops(index, -1, mStreamBufs->getFd(index), in bufDone()
528 mStreamBufs->getSize(index), mMemOps->userdata); in bufDone()
530 ALOGE("%s: Failed to map camera buffer %d", __func__, index); in bufDone()
[all …]
DQCamera3Stream.h70 virtual int32_t bufDone(int index);
71 virtual int32_t bufRelease(int32_t index);
126 static int32_t invalidate_buf(int index, void *user_data);
127 static int32_t clean_invalidate_buf(int index, void *user_data);
135 int32_t invalidateBuf(int index);
136 int32_t cleanInvalidateBuf(int index);
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraMem.h52 int cleanCache(int index) {return cacheOps(index, ION_IOC_CLEAN_CACHES);} in cleanCache() argument
53 int invalidateCache(int index) {return cacheOps(index, ION_IOC_INV_CACHES);} in invalidateCache() argument
54 int cleanInvalidateCache(int index) {return cacheOps(index, ION_IOC_CLEAN_INV_CACHES);} in cleanInvalidateCache() argument
55 int getFd(int index) const;
56 int getSize(int index) const;
62 virtual int cacheOps(int index, unsigned int cmd) = 0;
64 virtual camera_memory_t *getMemory(int index, bool metadata) const = 0;
66 virtual void *getPtr(int index) const= 0;
74 mm_camera_buf_def_t &bufDef, int index) const;
97 int cacheOpsInternal(int index, unsigned int cmd, void *vaddr);
[all …]
DQCameraMem.cpp99 int QCameraMemory::cacheOpsInternal(int index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
111 if (index >= mBufferCount) { in cacheOpsInternal()
112 ALOGE("%s: index %d out of bound [0, %d)", __func__, index, mBufferCount); in cacheOpsInternal()
119 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
120 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
121 cache_inv_data.length = mMemInfo[index].size; in cacheOpsInternal()
128 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
129 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
146 int QCameraMemory::getFd(int index) const in getFd()
148 if (index >= mBufferCount) in getFd()
[all …]
/device/lge/bullhead/camera/QCamera2/HAL/
DQCameraMem.h52 int cleanCache(uint32_t index) in cleanCache() argument
54 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache()
56 int invalidateCache(uint32_t index) in invalidateCache() argument
58 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache()
60 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument
62 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache()
64 int getFd(uint32_t index) const;
65 ssize_t getSize(uint32_t index) const;
71 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0;
73 virtual camera_memory_t *getMemory(uint32_t index,
[all …]
DQCameraMem.cpp104 int QCameraMemory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
116 if (index >= mBufferCount) { in cacheOpsInternal()
117 ALOGE("%s: index %d out of bound [0, %d)", __func__, index, mBufferCount); in cacheOpsInternal()
124 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
125 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
128 mMemInfo[index].size; in cacheOpsInternal()
135 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
136 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
153 int QCameraMemory::getFd(uint32_t index) const in getFd()
155 if (index >= mBufferCount) in getFd()
[all …]
/device/huawei/angler/camera/QCamera2/HAL/
DQCameraMem.h52 int cleanCache(uint32_t index) in cleanCache() argument
54 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache()
56 int invalidateCache(uint32_t index) in invalidateCache() argument
58 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache()
60 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument
62 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache()
64 int getFd(uint32_t index) const;
65 ssize_t getSize(uint32_t index) const;
71 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0;
73 virtual camera_memory_t *getMemory(uint32_t index,
[all …]
DQCameraMem.cpp104 int QCameraMemory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
116 if (index >= mBufferCount) { in cacheOpsInternal()
117 ALOGE("%s: index %d out of bound [0, %d)", __func__, index, mBufferCount); in cacheOpsInternal()
124 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
125 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
128 mMemInfo[index].size; in cacheOpsInternal()
135 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
136 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
153 int QCameraMemory::getFd(uint32_t index) const in getFd()
155 if (index >= mBufferCount) in getFd()
[all …]
/device/google/contexthub/util/nanotool/
Dsensorevent.cpp132 uint64_t TimestampedSensorEvent::GetSampleTime(uint8_t index) const { in GetSampleTime()
138 for (uint8_t i = 1; i <= index; i++) { in GetSampleTime()
139 sample = GetSampleAtIndex(index); in GetSampleTime()
146 std::string TimestampedSensorEvent::GetSampleTimeStr(uint8_t index) const { in GetSampleTimeStr()
147 uint64_t sample_time = GetSampleTime(index); in GetSampleTimeStr()
157 uint8_t index) const { in GetSampleAtIndex()
158 if (index >= GetNumSamples()) { in GetSampleAtIndex()
159 LOGW("Requested sample at invalid index %u", index); in GetSampleAtIndex()
164 index * GetSampleDataSize()); in GetSampleAtIndex()
203 std::string SingleAxisSensorEvent::StringForSample(uint8_t index) const { in StringForSample()
[all …]
Dsensorevent.h117 uint64_t GetSampleTime(uint8_t index) const;
118 std::string GetSampleTimeStr(uint8_t index) const;
119 const SensorSampleHeader *GetSampleAtIndex(uint8_t index) const;
123 virtual std::string StringForSample(uint8_t index) const = 0;
138 virtual std::string StringForSample(uint8_t index) const override;
148 std::string StringForSample(uint8_t index) const override;
153 std::string StringForSample(uint8_t index) const override;
161 std::string StringForSample(uint8_t index) const override;
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/
DGLSharedGroup.cpp66 void ProgramData::setIndexInfo(GLuint index, GLint base, GLint size, GLenum type) in setIndexInfo() argument
68 if (index>=m_numIndexes) in setIndexInfo()
70 m_Indexes[index].base = base; in setIndexInfo()
71 m_Indexes[index].size = size; in setIndexInfo()
72 m_Indexes[index].type = type; in setIndexInfo()
73 if (index > 0) { in setIndexInfo()
74 m_Indexes[index].appBase = m_Indexes[index-1].appBase + in setIndexInfo()
75 m_Indexes[index-1].size; in setIndexInfo()
78 m_Indexes[index].appBase = 0; in setIndexInfo()
80 m_Indexes[index].hostLocsPerElement = 1; in setIndexInfo()
[all …]
/device/google/contexthub/firmware/external/arm/
Darm_sin_f32.c98 uint16_t index; /* Index variable */ in arm_sin_f32() local
121 index = ((uint16_t)findex) & 0x1ff; in arm_sin_f32()
124 fract = findex - (float32_t) index; in arm_sin_f32()
127 a = sinTable_f32[index]; in arm_sin_f32()
128 b = sinTable_f32[index+1]; in arm_sin_f32()
Darm_cos_f32.c97 uint16_t index; /* Index variable */ in arm_cos_f32() local
120 index = ((uint16_t)findex) & 0x1ff; in arm_cos_f32()
123 fract = findex - (float32_t) index; in arm_cos_f32()
126 a = sinTable_f32[index]; in arm_cos_f32()
127 b = sinTable_f32[index+1]; in arm_cos_f32()

12345678