/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_helper.c | 54 uint8_t *mm_camera_do_mmap(uint32_t size, int *pmemFd) in mm_camera_do_mmap() argument 64 size = (size + 4095) & (~4095); in mm_camera_do_mmap() 66 size, in mm_camera_do_mmap() 76 CDBG("do_mmap: pmem mmap fd %d ptr %p len %u\n", pmem_fd, ret, size); in mm_camera_do_mmap() 86 int mm_camera_do_munmap(int pmem_fd, void *addr, size_t size) in mm_camera_do_munmap() argument 94 size = (size + 4095) & (~4095); in mm_camera_do_munmap() 96 size, addr); in mm_camera_do_munmap() 97 rc = (munmap(addr, size)); in mm_camera_do_munmap() 100 size, rc); in mm_camera_do_munmap() 150 void *addr, size_t size) in mm_camera_do_munmap_ion() argument [all …]
|
/device/lge/mako/camera/mm-camera-interface/ |
D | mm_camera_helper.c | 54 uint8_t *mm_camera_do_mmap(uint32_t size, int *pmemFd) in mm_camera_do_mmap() argument 64 size = (size + 4095) & (~4095); in mm_camera_do_mmap() 66 size, in mm_camera_do_mmap() 76 CDBG("do_mmap: pmem mmap fd %d ptr %p len %u\n", pmem_fd, ret, size); in mm_camera_do_mmap() 86 int mm_camera_do_munmap(int pmem_fd, void *addr, size_t size) in mm_camera_do_munmap() argument 94 size = (size + 4095) & (~4095); in mm_camera_do_munmap() 96 size, addr); in mm_camera_do_munmap() 97 rc = (munmap(addr, size)); in mm_camera_do_munmap() 100 size, rc); in mm_camera_do_munmap() 150 void *addr, size_t size) in mm_camera_do_munmap_ion() argument [all …]
|
/device/moto/shamu/camera/QCamera2/HAL/ |
D | QCameraMem.h | 58 virtual int allocate(int count, int size, uint32_t is_secure) = 0; 60 virtual int allocateMore(int count, int size) = 0; 83 uint32_t size; member 88 int alloc(int count, int size, int heap_id, uint32_t is_secure); 92 int size, 114 int size, 126 uint32_t size, 141 virtual int allocate(int count, int size, uint32_t is_secure); 142 virtual int allocateMore(int count, int size); 164 virtual int allocate(int count, int size, uint32_t is_secure); [all …]
|
D | QCameraMem.cpp | 121 cache_inv_data.length = mMemInfo[index].size; in cacheOpsInternal() 169 return (int)mMemInfo[index].size; in getSize() 241 int QCameraMemory::alloc(int count, int size, int heap_id, uint32_t secure_mode) in alloc() argument 260 rc = allocOneBuffer(mMemInfo[i], heap_id, size, m_bCached, in alloc() 271 size, in alloc() 325 int size, in allocOneBuffer() argument 342 alloc.len = size; in allocOneBuffer() 375 memInfo.size = alloc.len; in allocOneBuffer() 420 memInfo.size = 0; in deallocOneBuffer() 520 uint32_t size, in findBufferLocked() argument [all …]
|
/device/lge/mako/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 38 queue->size = 0; in mm_jpeg_queue_init() 56 queue->size++; in mm_jpeg_queue_enq() 76 queue->size--; in mm_jpeg_queue_deq() 90 uint32_t size = 0; in mm_jpeg_queue_get_size() local 93 size = queue->size; in mm_jpeg_queue_get_size() 96 return size; in mm_jpeg_queue_get_size() 121 queue->size--; in mm_jpeg_queue_flush() 131 queue->size = 0; in mm_jpeg_queue_flush()
|
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
D | GLSharedGroup.cpp | 23 for (size_t i = 0; i < v.size(); i++) in clearObjectMap() 31 BufferData::BufferData(GLsizeiptr size, void * data) : m_size(size) in BufferData() argument 34 if (size>0) buffer = m_fixedBuffer.alloc(size); in BufferData() 35 if (data) memcpy(buffer, data, size); in BufferData() 66 void ProgramData::setIndexInfo(GLuint index, GLint base, GLint size, GLenum type) in setIndexInfo() argument 71 m_Indexes[index].size = size; in setIndexInfo() 75 m_Indexes[index-1].size; in setIndexInfo() 152 if (elemIndex >= 0 && elemIndex < m_Indexes[i].size) { in locationWARAppToHost() 182 if (elemIndex >= 0 && elemIndex < m_Indexes[i].size) { in setSamplerUniform() 201 size_t n = m_shaders.size(); in attachShader() [all …]
|
D | GLSharedGroup.h | 42 BufferData(GLsizeiptr size, void * data); 51 GLint size; member 75 void setIndexInfo(GLuint index, GLint base, GLint size, GLenum type); 90 size_t getNumShaders() const { return m_shaders.size(); } in getNumShaders() 114 void addBufferData(GLuint bufferId, GLsizeiptr size, void * data); 115 void updateBufferData(GLuint bufferId, GLsizeiptr size, void * data); 116 GLenum subUpdateBufferData(GLuint bufferId, GLintptr offset, GLsizeiptr size, void * data); 126 …void setProgramIndexInfo(GLuint program, GLuint index, GLint base, GLint size, GLenum type, con…
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 38 queue->size = 0; in mm_jpeg_queue_init() 56 queue->size++; in mm_jpeg_queue_enq() 76 queue->size--; in mm_jpeg_queue_deq() 90 uint32_t size = 0; in mm_jpeg_queue_get_size() local 93 size = queue->size; in mm_jpeg_queue_get_size() 96 return size; in mm_jpeg_queue_get_size() 121 queue->size--; in mm_jpeg_queue_flush() 131 queue->size = 0; in mm_jpeg_queue_flush()
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 38 queue->size = 0; in mm_jpeg_queue_init() 56 queue->size++; in mm_jpeg_queue_enq() 98 queue->size--; in mm_jpeg_queue_deq() 112 uint32_t size = 0; in mm_jpeg_queue_get_size() local 115 size = queue->size; in mm_jpeg_queue_get_size() 118 return size; in mm_jpeg_queue_get_size() 143 queue->size--; in mm_jpeg_queue_flush() 153 queue->size = 0; in mm_jpeg_queue_flush()
|
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 38 queue->size = 0; in mm_jpeg_queue_init() 56 queue->size++; in mm_jpeg_queue_enq() 76 queue->size--; in mm_jpeg_queue_deq() 90 uint32_t size = 0; in mm_jpeg_queue_get_size() local 93 size = queue->size; in mm_jpeg_queue_get_size() 96 return size; in mm_jpeg_queue_get_size() 121 queue->size--; in mm_jpeg_queue_flush() 131 queue->size = 0; in mm_jpeg_queue_flush()
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 38 queue->size = 0; in mm_jpeg_queue_init() 56 queue->size++; in mm_jpeg_queue_enq() 82 queue->size++; in mm_jpeg_queue_enq_head() 101 queue->size--; in mm_jpeg_queue_deq() 115 uint32_t size = 0; in mm_jpeg_queue_get_size() local 118 size = queue->size; in mm_jpeg_queue_get_size() 121 return size; in mm_jpeg_queue_get_size() 146 queue->size--; in mm_jpeg_queue_flush() 156 queue->size = 0; in mm_jpeg_queue_flush()
|
/device/asus/fugu/recovery/ |
D | recovery_updater.c | 74 int check_ifwi_file_scu_emmc(void *data, size_t size) in check_ifwi_file_scu_emmc() argument 78 if (get_image_fw_rev(data, size, &img_fw_rev)) { in check_ifwi_file_scu_emmc() 102 static uint32_t xor_compute(char *ptr, uint32_t size) in xor_compute() argument 107 for (i = 0; i < size; i+=4) in xor_compute() 140 static int write_umip_emmc(uint32_t addr_offset, void *data, size_t size) in write_umip_emmc() argument 156 if (size > BOOT_IFWI_SIZE) { in write_umip_emmc() 158 (size - BOOT_IFWI_SIZE)); in write_umip_emmc() 161 size = BOOT_IFWI_SIZE; in write_umip_emmc() 189 if (addr_offset + size <= BOOT_IFWI_SIZE) in write_umip_emmc() 191 memset(ptr + addr_offset, 0, size); in write_umip_emmc() [all …]
|
/device/asus/fugu/libaudio/ |
D | AudioHardwareInput.cpp | 85 size_t size; in calculateInputBufferSize() local 88 size = (kPeriodMsec * outputSampleRate) / 1000; in calculateInputBufferSize() 89 size = ((size + 15) / 16) * 16; in calculateInputBufferSize() 91 return size * channelCount * audio_bytes_per_sample(format); in calculateInputBufferSize() 96 size_t size = calculateInputBufferSize(config->sample_rate, in getInputBufferSize() local 99 return size; in getInputBufferSize() 133 for (size_t i = 0; i < mInputStreams.size(); i++) { in closeInputStream() 145 while (mInputStreams.size() != 0) { in closeAllInputStreams() 155 for (size_t i = 0; i < mInputStreams.size(); i++) { in standbyAllInputStreams() 184 ::write(fd, result.string(), result.size()); in dump() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 67 mMemInfo[i].size = 0; in QCamera3Memory() 114 cache_inv_data.length = mMemInfo[index].size; in cacheOpsInternal() 162 return (int)mMemInfo[index].size; in getSize() 202 bufDef.frame_len = mMemInfo[index].size; in getBufDef() 268 int QCamera3HeapMemory::alloc(int count, int size, int heap_id) in alloc() argument 281 rc = allocOneBuffer(mMemInfo[i], heap_id, size); in alloc() 321 int QCamera3HeapMemory::allocOneBuffer(QCamera3MemInfo &memInfo, int heap_id, int size) in allocOneBuffer() argument 336 alloc.len = size; in allocOneBuffer() 360 memInfo.size = alloc.len; in allocOneBuffer() 400 memInfo.size = 0; in deallocOneBuffer() [all …]
|
/device/lge/hammerhead/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 66 mMemInfo[i].size = 0; in QCamera3Memory() 113 cache_inv_data.length = mMemInfo[index].size; in cacheOpsInternal() 161 return (int)mMemInfo[index].size; in getSize() 201 bufDef.frame_len = mMemInfo[index].size; in getBufDef() 267 int QCamera3HeapMemory::alloc(int count, int size, int heap_id) in alloc() argument 280 rc = allocOneBuffer(mMemInfo[i], heap_id, size); in alloc() 320 int QCamera3HeapMemory::allocOneBuffer(QCamera3MemInfo &memInfo, int heap_id, int size) in allocOneBuffer() argument 335 alloc.len = size; in allocOneBuffer() 359 memInfo.size = alloc.len; in allocOneBuffer() 399 memInfo.size = 0; in deallocOneBuffer() [all …]
|
/device/asus/flo/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 66 mMemInfo[i].size = 0; in QCamera3Memory() 113 cache_inv_data.length = mMemInfo[index].size; in cacheOpsInternal() 161 return (int)mMemInfo[index].size; in getSize() 198 bufDef.frame_len = mMemInfo[index].size; in getBufDef() 262 int QCamera3HeapMemory::alloc(int count, int size, int heap_id) in alloc() argument 275 rc = allocOneBuffer(mMemInfo[i], heap_id, size); in alloc() 315 int QCamera3HeapMemory::allocOneBuffer(QCamera3MemInfo &memInfo, int heap_id, int size) in allocOneBuffer() argument 330 alloc.len = size; in allocOneBuffer() 354 memInfo.size = alloc.len; in allocOneBuffer() 394 memInfo.size = 0; in deallocOneBuffer() [all …]
|
/device/asus/flo/camera/QCamera2/stack/common/ |
D | cam_queue.h | 39 uint32_t size; member 47 queue->size = 0; in cam_queue_init() 64 queue->size++; in cam_queue_enq() 83 queue->size--; in cam_queue_deq() 109 queue->size--; in cam_queue_flush() 120 queue->size = 0; in cam_queue_flush()
|
/device/moto/shamu/camera/QCamera2/stack/common/ |
D | cam_queue.h | 39 uint32_t size; member 47 queue->size = 0; in cam_queue_init() 64 queue->size++; in cam_queue_enq() 83 queue->size--; in cam_queue_deq() 109 queue->size--; in cam_queue_flush() 120 queue->size = 0; in cam_queue_flush()
|
/device/lge/hammerhead/camera/QCamera2/stack/common/ |
D | cam_queue.h | 39 uint32_t size; member 47 queue->size = 0; in cam_queue_init() 64 queue->size++; in cam_queue_enq() 83 queue->size--; in cam_queue_deq() 109 queue->size--; in cam_queue_flush() 120 queue->size = 0; in cam_queue_flush()
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 118 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpeg_test_alloc() 154 __func__, __LINE__, file_size, p_obj->input.size); in mm_jpeg_test_read() 156 if (p_obj->input.size > file_size) { in mm_jpeg_test_read() 161 fread(p_obj->input.addr, 1, p_obj->input.size, fp); in mm_jpeg_test_read() 169 int size = p_input->width * p_input->height; in encode_init() local 183 p_obj->input.size = size * 3/2; in encode_init() 190 p_obj->output.size = size * 3/2; in encode_init() 209 p_params->dest_buf[0].buf_size = p_obj->output.size; in encode_init() 216 p_params->src_main_buf[0].buf_size = p_obj->input.size; in encode_init() 221 p_params->src_main_buf[0].offset.mp[0].len = size; in encode_init() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 118 p_buffer->addr = (uint8_t *)malloc(p_buffer->size); in mm_jpeg_test_alloc() 154 __func__, __LINE__, file_size, p_obj->input.size); in mm_jpeg_test_read() 156 if (p_obj->input.size > file_size) { in mm_jpeg_test_read() 161 fread(p_obj->input.addr, 1, p_obj->input.size, fp); in mm_jpeg_test_read() 169 int size = p_input->width * p_input->height; in encode_init() local 183 p_obj->input.size = size * 3/2; in encode_init() 190 p_obj->output.size = size * 3/2; in encode_init() 209 p_params->dest_buf[0].buf_size = p_obj->output.size; in encode_init() 216 p_params->src_main_buf[0].buf_size = p_obj->input.size; in encode_init() 221 p_params->src_main_buf[0].offset.mp[0].len = size; in encode_init() [all …]
|
/device/asus/flo/camera/QCamera2/HAL/ |
D | QCameraMem.h | 55 virtual int allocate(int count, int size) = 0; 74 uint32_t size; member 77 int alloc(int count, int size, int heap_id); 79 int allocOneBuffer(struct QCameraMemInfo &memInfo, int heap_id, int size); 95 virtual int allocate(int count, int size); 114 virtual int allocate(int count, int size); 134 virtual int allocate(int count, int size); 155 virtual int allocate(int count, int size);
|
D | QCameraMem.cpp | 69 mMemInfo[i].size = 0; in QCameraMemory() 122 cache_inv_data.length = mMemInfo[index].size; in cacheOpsInternal() 170 return (int)mMemInfo[index].size; in getSize() 242 int QCameraMemory::alloc(int count, int size, int heap_id) in alloc() argument 255 rc = allocOneBuffer(mMemInfo[i], heap_id, size); in alloc() 295 int QCameraMemory::allocOneBuffer(QCameraMemInfo &memInfo, int heap_id, int size) in allocOneBuffer() argument 310 alloc.len = size; in allocOneBuffer() 335 memInfo.size = alloc.len; in allocOneBuffer() 375 memInfo.size = 0; in deallocOneBuffer() 440 int QCameraHeapMemory::allocate(int count, int size) in allocate() argument [all …]
|
/device/lge/hammerhead/camera/QCamera2/HAL/ |
D | QCameraMem.h | 55 virtual int allocate(int count, int size) = 0; 74 uint32_t size; member 77 int alloc(int count, int size, int heap_id); 79 int allocOneBuffer(struct QCameraMemInfo &memInfo, int heap_id, int size); 95 virtual int allocate(int count, int size); 114 virtual int allocate(int count, int size); 134 virtual int allocate(int count, int size); 155 virtual int allocate(int count, int size);
|
/device/moto/shamu/camera/QCamera2/HAL/test/ |
D | qcamera_test.cpp | 77 #define VIDEO_BUF_ALLIGN(size, allign) (((size) + (allign-1)) & (~(allign-1))) argument 203 int size; in saveFile() local 216 size = mem->size(); in saveFile() 217 if (size <= 0) { in saveFile() 230 if ( size != write(fd, buff, size) ) { in saveFile() 239 __FUNCTION__, (int)buff, size, path.string()); in saveFile() 323 int size; in decodeJPEG() local 326 size= mem->size(); in decodeJPEG() 367 if (SkImageDecoder::DecodeMemory(buff, size, skBM, prefConfig, in decodeJPEG() 594 int size; in ReadSectionsFromBuffer() local [all …]
|