/device/lge/hammerhead/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 65 for (int i = 0; i < MM_CAMERA_MAX_NUM_FRAMES; i++) { in QCameraMemory() local 66 mMemInfo[i].fd = 0; in QCameraMemory() 67 mMemInfo[i].main_ion_fd = 0; in QCameraMemory() 68 mMemInfo[i].handle = NULL; in QCameraMemory() 69 mMemInfo[i].size = 0; in QCameraMemory() 218 for (int i = 1; i < bufDef.num_planes; i++) { in getBufDef() local 219 bufDef.planes[i].length = offset.mp[i].len; in getBufDef() 220 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef() 221 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 222 bufDef.planes[i].reserved[0] = in getBufDef() [all …]
|
D | QCameraChannel.cpp | 99 for (int i = 0; i < m_numStreams; i++) { in ~QCameraChannel() local 100 if (mStreams[i] != NULL) { in ~QCameraChannel() 101 delete mStreams[i]; in ~QCameraChannel() 102 mStreams[i] = 0; in ~QCameraChannel() 215 for (int i = 0; i < bundleInfo.num_of_streams; i++) { in start() local 216 QCameraStream *pStream = getStreamByServerID(bundleInfo.stream_ids[i]); in start() 238 for (int i = 0; i < m_numStreams; i++) { in start() local 239 if (mStreams[i] != NULL) { in start() 240 mStreams[i]->start(); in start() 246 for (int i = 0; i < m_numStreams; i++) { in start() local [all …]
|
/device/asus/flo/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 65 for (int i = 0; i < MM_CAMERA_MAX_NUM_FRAMES; i++) { in QCameraMemory() local 66 mMemInfo[i].fd = 0; in QCameraMemory() 67 mMemInfo[i].main_ion_fd = 0; in QCameraMemory() 68 mMemInfo[i].handle = NULL; in QCameraMemory() 69 mMemInfo[i].size = 0; in QCameraMemory() 218 for (int i = 1; i < bufDef.num_planes; i++) { in getBufDef() local 219 bufDef.planes[i].length = offset.mp[i].len; in getBufDef() 220 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef() 221 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 222 bufDef.planes[i].reserved[0] = in getBufDef() [all …]
|
D | QCameraChannel.cpp | 99 for (int i = 0; i < m_numStreams; i++) { in ~QCameraChannel() local 100 if (mStreams[i] != NULL) { in ~QCameraChannel() 101 delete mStreams[i]; in ~QCameraChannel() 102 mStreams[i] = 0; in ~QCameraChannel() 215 for (int i = 0; i < bundleInfo.num_of_streams; i++) { in start() local 216 QCameraStream *pStream = getStreamByServerID(bundleInfo.stream_ids[i]); in start() 238 for (int i = 0; i < m_numStreams; i++) { in start() local 239 if (mStreams[i] != NULL) { in start() 240 mStreams[i]->start(); in start() 246 for (int i = 0; i < m_numStreams; i++) { in start() local [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_unit_test.c | 43 int i; in mm_app_tc_open_close() local 47 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_open_close() 49 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close() 52 __func__, i, rc); in mm_app_tc_open_close() 59 __func__, i, rc); in mm_app_tc_open_close() 75 int i, j; in mm_app_tc_start_stop_preview() local 79 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_start_stop_preview() 81 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_start_stop_preview() 84 __func__, i, rc); in mm_app_tc_start_stop_preview() 92 __func__, i, rc); in mm_app_tc_start_stop_preview() [all …]
|
D | mm_qcamera_snapshot.c | 40 int i = 0; in jpeg_encode_cb() local 61 for (i = 0; i < pme->current_job_frames->num_bufs; i++) { in jpeg_encode_cb() 64 pme->current_job_frames->bufs[i])) { in jpeg_encode_cb() 67 mm_app_cache_ops((mm_camera_app_meminfo_t *) pme->current_job_frames->bufs[i]->mem_info, in jpeg_encode_cb() 183 int i = 0; in mm_app_snapshot_metadata_notify_cb() local 197 for (i = 0; i < MM_CHANNEL_TYPE_MAX; i++) { in mm_app_snapshot_metadata_notify_cb() 198 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_snapshot_metadata_notify_cb() 199 channel = &pme->channels[i]; in mm_app_snapshot_metadata_notify_cb() 204 for (i = 0; i < channel->num_streams; i++) { in mm_app_snapshot_metadata_notify_cb() 205 if (channel->streams[i].s_config.stream_info->stream_type == CAM_STREAM_TYPE_METADATA) { in mm_app_snapshot_metadata_notify_cb() [all …]
|
D | mm_qcamera_main_menu.c | 634 unsigned int i; in print_menu_preview_video() local 649 for (i = 0; i < sizeof(camera_main_menu_tbl)/sizeof(camera_main_menu_tbl[0]); i++) { in print_menu_preview_video() 650 if (i == BASE_OFFSET) { in print_menu_preview_video() 654 printf("%c. %s\n", menuNum, camera_main_menu_tbl[i].menu_name); in print_menu_preview_video() 664 unsigned int i; in camera_preview_video_wb_change_tbl() local 671 for (i = 0 ; i < sizeof(white_balance_tbl) / in camera_preview_video_wb_change_tbl() 672 sizeof(white_balance_tbl[0]); i++) { in camera_preview_video_wb_change_tbl() 673 printf("%c. %s\n", submenuNum, white_balance_tbl[i].wb_name); in camera_preview_video_wb_change_tbl() 681 unsigned int i; in camera_preview_video_get_ctrl_value_tbl() local 688 for (i = 0 ; i < sizeof(get_ctrl_tbl) / in camera_preview_video_get_ctrl_value_tbl() [all …]
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_unit_test.c | 43 int i; in mm_app_tc_open_close() local 47 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_open_close() 49 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close() 52 __func__, i, rc); in mm_app_tc_open_close() 59 __func__, i, rc); in mm_app_tc_open_close() 75 int i, j; in mm_app_tc_start_stop_preview() local 79 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_start_stop_preview() 81 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_start_stop_preview() 84 __func__, i, rc); in mm_app_tc_start_stop_preview() 92 __func__, i, rc); in mm_app_tc_start_stop_preview() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_unit_test.c | 43 int i; in mm_app_tc_open_close() local 47 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_open_close() 49 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close() 52 __func__, i, rc); in mm_app_tc_open_close() 59 __func__, i, rc); in mm_app_tc_open_close() 75 int i, j; in mm_app_tc_start_stop_preview() local 79 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_start_stop_preview() 81 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_start_stop_preview() 84 __func__, i, rc); in mm_app_tc_start_stop_preview() 92 __func__, i, rc); in mm_app_tc_start_stop_preview() [all …]
|
/device/asus/fugu/libaudio/ |
D | AudioHardwareInput.cpp | 51 for (int i=0; i<kMaxDevices; i++) { in AudioHardwareInput() local 52 mDeviceInfos[i].valid = false; in AudioHardwareInput() 133 for (size_t i = 0; i < mInputStreams.size(); i++) { in closeInputStream() local 134 if (in == mInputStreams[i]) { in closeInputStream() 135 mInputStreams.removeAt(i); in closeInputStream() 155 for (size_t i = 0; i < mInputStreams.size(); i++) { in standbyAllInputStreams() local 156 if (deviceInfo == NULL || deviceInfo == mInputStreams[i]->getDeviceInfo()) { in standbyAllInputStreams() 157 mInputStreams[i]->standby(); in standbyAllInputStreams() 176 for (int i=0; i<kMaxDevices; i++) { in dump() local 177 if (mDeviceInfos[i].valid) { in dump() [all …]
|
D | alsa_utils.cpp | 115 for (size_t i = 0; i < kCtrlCount; ++i) { in loadCaps() local 116 ctrls[i] = mixer_get_ctl_by_name(mixer, kCtrlNames[i]); in loadCaps() 117 if (NULL == ctrls[i]) { in loadCaps() 118 ALOGE("%s: mixer_get_ctrl_by_name(%s) failed", __func__, kCtrlNames[i]); in loadCaps() 152 for (int i = 0; i < mode_cnt; ++i) { in loadCaps() local 156 if (mixer_ctl_set_value(ctrls[kModeSelNdx], 0, i) < 0) in loadCaps() 240 for (uint32_t i = 1; tmp; i <<= 1) { in getRatesForAF() local 241 if (i & tmp) { in getRatesForAF() 242 rates.appendFormat(first ? "%d" : "|%d", srMaskToSR(i)); in getRatesForAF() 244 tmp &= ~i; in getRatesForAF() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 217 for (int i = 1; i < bufDef.num_planes; i++) { in getBufDef() local 218 bufDef.planes[i].length = offset.mp[i].len; in getBufDef() 219 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef() 220 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 221 bufDef.planes[i].reserved[0] = in getBufDef() 222 bufDef.planes[i-1].reserved[0] + in getBufDef() 223 bufDef.planes[i-1].length; in getBufDef() 257 for (int i = mBufferCount; i < new_bufCnt; i ++) { in alloc() local 260 rc = allocOneBuffer(mMemInfo[i], heap_id, size, m_bCached, in alloc() 264 for (int j = i-1; j >= 0; j--) in alloc() [all …]
|
D | QCameraChannel.cpp | 100 for (int i = 0; i < m_numStreams; i++) { in ~QCameraChannel() local 101 if (mStreams[i] != NULL) { in ~QCameraChannel() 102 delete mStreams[i]; in ~QCameraChannel() 103 mStreams[i] = 0; in ~QCameraChannel() 126 for (int i = 0; i < m_numStreams; i++) { in deleteChannel() local 127 if (mStreams[i] != NULL) { in deleteChannel() 128 mStreams[i]->deleteStream(); in deleteChannel() 232 for (int i = 0; i < m_numStreams; ++i) { in config() local 233 if ( mStreams[i]->isDeffered() ) { in config() 234 rc = mStreams[i]->configStream(); in config() [all …]
|
/device/asus/flo/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 62 for (int i = 0; i < MM_CAMERA_MAX_NUM_FRAMES; i++) { in QCamera3Memory() local 63 mMemInfo[i].fd = 0; in QCamera3Memory() 64 mMemInfo[i].main_ion_fd = 0; in QCamera3Memory() 65 mMemInfo[i].handle = NULL; in QCamera3Memory() 66 mMemInfo[i].size = 0; in QCamera3Memory() 209 for (int i = 1; i < bufDef.num_planes; i++) { in getBufDef() local 210 bufDef.planes[i].length = offset.mp[i].len; in getBufDef() 211 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef() 212 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 213 bufDef.planes[i].reserved[0] = in getBufDef() [all …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 155 int i = 0; in mm_jpeg_encode_callback() local 156 for (i = 0; p_obj->job_id[i] && (jobId != p_obj->job_id[i]); i++) in mm_jpeg_encode_callback() 158 if (!p_obj->job_id[i]) { in mm_jpeg_encode_callback() 163 __func__, __LINE__, p_output->buf_vaddr, p_output->buf_filled_len, i); in mm_jpeg_encode_callback() 165 p_obj->buf_filled_len[i] = p_output->buf_filled_len; in mm_jpeg_encode_callback() 168 __func__, __LINE__, p_obj->out_filename[i], in mm_jpeg_encode_callback() 171 DUMP_TO_FILE(p_obj->out_filename[i], p_output->buf_vaddr, in mm_jpeg_encode_callback() 251 int i = 0; in encode_init() local 255 p_obj->filename[i] = p_in->filename; in encode_init() 258 p_obj->out_filename[i] = p_in->out_filename; in encode_init() [all …]
|
/device/lge/hammerhead/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 62 for (int i = 0; i < MM_CAMERA_MAX_NUM_FRAMES; i++) { in QCamera3Memory() local 63 mMemInfo[i].fd = 0; in QCamera3Memory() 64 mMemInfo[i].main_ion_fd = 0; in QCamera3Memory() 65 mMemInfo[i].handle = NULL; in QCamera3Memory() 66 mMemInfo[i].size = 0; in QCamera3Memory() 212 for (int i = 1; i < bufDef.num_planes; i++) { in getBufDef() local 213 bufDef.planes[i].length = offset.mp[i].len; in getBufDef() 214 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef() 215 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 216 bufDef.planes[i].reserved[0] = in getBufDef() [all …]
|
/device/moto/shamu/camera/QCamera/HAL2/core/src/ |
D | QCameraStream_Preview.cpp | 59 for (int i = 0; i < num_buffers; i++) { in registerStreamBuffers() local 60 mPreviewMemory.buffer_handle[i] = buffers[i]; in registerStreamBuffers() 61 mPreviewMemory.private_buffer_handle[i] = (struct private_handle_t *)buffers[i]; in registerStreamBuffers() 62 ALOGD("%s:Buffer Size:%d",__func__, mPreviewMemory.private_buffer_handle[i]->size); in registerStreamBuffers() 91 for(int i=0; i < num_planes; i++) in initBuffers() local 92 planes[i] = mFrameOffsetInfo.mp[i].len; in initBuffers() 99 for(int i = 0; i < mNumBuffers; i++){ in initBuffers() local 100 mDisplayBuf[i].num_planes = num_planes; in initBuffers() 101 mDisplayBuf[i].buf_idx = i; in initBuffers() 105 mDisplayBuf[i].planes[0].length = planes[0]; in initBuffers() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_unit_test.c | 62 int i,j; in mm_app_tc_0() local 71 for (i = 0; i < cam_apps->num_cameras; i++) { in mm_app_tc_0() 72 if ( mm_app_open(i) != MM_CAMERA_OK) { in mm_app_tc_0() 105 printf("%s: Preview Start/Stop Fails for Camera %d in %d iteration", __func__, i,j); in mm_app_tc_0() 125 int i,j; in mm_app_tc_1() local 129 for (i = 0; i < cam_apps->num_cameras; i++) { in mm_app_tc_1() 130 if ( mm_app_open(i) != MM_CAMERA_OK) { in mm_app_tc_1() 167 printf("%s: Snapshot Start/Stop Fails for Camera %d in %d iteration", __func__, i,j); in mm_app_tc_1() 187 int i,j; in mm_app_tc_2() local 191 for (i = 0; i < cam_apps->num_cameras; i++) { in mm_app_tc_2() [all …]
|
D | mm_qcamera_app.c | 226 int i; in mm_app_open() local 258 for (i = 0; i < MM_CAMERA_EVT_TYPE_MAX; i++) { in mm_app_open() 259 evt = (mm_camera_event_type_t) i; in mm_app_open() 451 int i; in mm_stream_invalid_cache() local 458 for (i = 0; i < MM_QCAM_APP_MAX_STREAM_NUM; i++) { in mm_stream_invalid_cache() 459 if (pme->stream[i].id == frame->stream_id) { in mm_stream_invalid_cache() 460 app_bufs = &pme->stream [i].app_bufs; in mm_stream_invalid_cache() 468 for (i = 0; i < MM_CAMERA_MAX_NUM_FRAMES; i++) { in mm_stream_invalid_cache() 469 if (app_bufs->bufs[i].buf_idx == frame->buf_idx) { in mm_stream_invalid_cache() 470 index = i; in mm_stream_invalid_cache() [all …]
|
/device/moto/shamu/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 64 for (int i = 0; i < MM_CAMERA_MAX_NUM_FRAMES; i++) { in QCamera3Memory() local 65 mMemInfo[i].fd = 0; in QCamera3Memory() 66 mMemInfo[i].main_ion_fd = 0; in QCamera3Memory() 67 mMemInfo[i].handle = 0; in QCamera3Memory() 68 mMemInfo[i].size = 0; in QCamera3Memory() 240 for (int i = 1; i < bufDef.num_planes; i++) { in getBufDef() local 241 bufDef.planes[i].length = offset.mp[i].len; in getBufDef() 242 bufDef.planes[i].m.userptr = mMemInfo[i].fd; in getBufDef() 243 bufDef.planes[i].data_offset = offset.mp[i].offset; in getBufDef() 244 bufDef.planes[i].reserved[0] = in getBufDef() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 156 int i; in mm_channel_util_get_stream_by_handler() local 160 for(i = 0; i < MM_CAMEAR_STRAEM_NUM_MAX; i++) { in mm_channel_util_get_stream_by_handler() 161 if (handler == ch_obj->streams[i].my_hdl) { in mm_channel_util_get_stream_by_handler() 162 s_obj = &ch_obj->streams[i]; in mm_channel_util_get_stream_by_handler() 172 int i; in mm_channel_dispatch_super_buf() local 238 uint8_t i; in mm_channel_process_stream_buf() local 250 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf() 251 cb_node->u.superbuf.bufs[i] = node->super_buf[i].buf; in mm_channel_process_stream_buf() 264 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf() 265 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf() [all …]
|
/device/asus/flo/camera/mm-image-codec/qomx_core/ |
D | qomx_core.c | 57 int i = 0; in OMX_Init() local 76 for (i = 0; i < comp_cnt; i++) { in OMX_Init() 77 g_omxcore->component[i].comp_name = g_comp_info[i].comp_name; in OMX_Init() 78 g_omxcore->component[i].lib_name = g_comp_info[i].lib_name; in OMX_Init() 114 int index = -1, i = 0; in get_comp_from_list() local 119 for (i = 0; i < g_omxcore->comp_cnt; i++) { in get_comp_from_list() 120 if (!strcmp(g_omxcore->component[i].comp_name, comp_name)) { in get_comp_from_list() 121 index = i; in get_comp_from_list() 137 int idx = -1, i = 0; in get_free_inst_idx() local 139 for (i = 0; i < OMX_COMP_MAX_INSTANCES; i++) { in get_free_inst_idx() [all …]
|
/device/lge/hammerhead/camera/mm-image-codec/qomx_core/ |
D | qomx_core.c | 57 int i = 0; in OMX_Init() local 76 for (i = 0; i < comp_cnt; i++) { in OMX_Init() 77 g_omxcore->component[i].comp_name = g_comp_info[i].comp_name; in OMX_Init() 78 g_omxcore->component[i].lib_name = g_comp_info[i].lib_name; in OMX_Init() 114 int index = -1, i = 0; in get_comp_from_list() local 119 for (i = 0; i < g_omxcore->comp_cnt; i++) { in get_comp_from_list() 120 if (!strcmp(g_omxcore->component[i].comp_name, comp_name)) { in get_comp_from_list() 121 index = i; in get_comp_from_list() 137 int idx = -1, i = 0; in get_free_inst_idx() local 139 for (i = 0; i < OMX_COMP_MAX_INSTANCES; i++) { in get_free_inst_idx() [all …]
|
/device/moto/shamu/camera/mm-image-codec/qomx_core/ |
D | qomx_core.c | 60 int i = 0; in OMX_Init() local 84 for (i = 0; i < comp_cnt; i++) { in OMX_Init() 85 g_omxcore->component[i].comp_name = g_comp_info[i].comp_name; in OMX_Init() 86 g_omxcore->component[i].lib_name = g_comp_info[i].lib_name; in OMX_Init() 132 int index = -1, i = 0; in get_comp_from_list() local 137 for (i = 0; i < g_omxcore->comp_cnt; i++) { in get_comp_from_list() 138 if (!strcmp(g_omxcore->component[i].comp_name, comp_name)) { in get_comp_from_list() 139 index = i; in get_comp_from_list() 155 int idx = -1, i = 0; in get_free_inst_idx() local 157 for (i = 0; i < OMX_COMP_MAX_INSTANCES; i++) { in get_free_inst_idx() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_exif.c | 198 uint32_t i = 0; in releaseExifEntry() local 199 for (i = 0; i < p_exif_info->numOfEntries; i++) { in releaseExifEntry() 200 switch (p_exif_info->exif_data[i].tag_entry.type) { in releaseExifEntry() 202 if (p_exif_info->exif_data[i].tag_entry.count > 1 && in releaseExifEntry() 203 p_exif_info->exif_data[i].tag_entry.data._bytes != NULL) { in releaseExifEntry() 204 free(p_exif_info->exif_data[i].tag_entry.data._bytes); in releaseExifEntry() 205 p_exif_info->exif_data[i].tag_entry.data._bytes = NULL; in releaseExifEntry() 210 if (p_exif_info->exif_data[i].tag_entry.data._ascii != NULL) { in releaseExifEntry() 211 free(p_exif_info->exif_data[i].tag_entry.data._ascii); in releaseExifEntry() 212 p_exif_info->exif_data[i].tag_entry.data._ascii = NULL; in releaseExifEntry() [all …]
|