Lines Matching refs:m_pCapability
766 m_pCapability(NULL), in QCameraParameters()
875 m_pCapability(NULL), in QCameraParameters()
1308 for (size_t i = 0; i < m_pCapability->preview_sizes_tbl_cnt; ++i) { in setPreviewSize()
1309 if (width == m_pCapability->preview_sizes_tbl[i].width in setPreviewSize()
1310 && height == m_pCapability->preview_sizes_tbl[i].height) { in setPreviewSize()
1347 for (size_t i = 0; i < m_pCapability->picture_sizes_tbl_cnt; ++i) { in setPictureSize()
1348 if (width == m_pCapability->picture_sizes_tbl[i].width in setPictureSize()
1349 && height == m_pCapability->picture_sizes_tbl[i].height) { in setPictureSize()
1413 for (size_t i = 0; i < m_pCapability->video_sizes_tbl_cnt; ++i) { in setVideoSize()
1414 if (width == m_pCapability->video_sizes_tbl[i].width in setVideoSize()
1415 && height == m_pCapability->video_sizes_tbl[i].height) { in setVideoSize()
1480 m_pCapability->livesnapshot_sizes_tbl_cnt; in setLiveSnapshotSize()
1482 &m_pCapability->livesnapshot_sizes_tbl[0]; in setLiveSnapshotSize()
1504 for (size_t i = 0; i < m_pCapability->hfr_tbl_cnt; i++) { in setLiveSnapshotSize()
1505 if (m_pCapability->hfr_tbl[i].mode == hsr) { in setLiveSnapshotSize()
1507 m_pCapability->hfr_tbl[i].livesnapshot_sizes_tbl_cnt; in setLiveSnapshotSize()
1509 &m_pCapability->hfr_tbl[i].livesnapshot_sizes_tbl[0]; in setLiveSnapshotSize()
1510 hfrMode = m_pCapability->hfr_tbl[i].mode; in setLiveSnapshotSize()
1519 for (size_t i = 0; i < m_pCapability->hfr_tbl_cnt; i++) { in setLiveSnapshotSize()
1520 if (m_pCapability->hfr_tbl[i].mode == hfr) { in setLiveSnapshotSize()
1522 m_pCapability->hfr_tbl[i].livesnapshot_sizes_tbl_cnt; in setLiveSnapshotSize()
1524 &m_pCapability->hfr_tbl[i].livesnapshot_sizes_tbl[0]; in setLiveSnapshotSize()
1525 hfrMode = m_pCapability->hfr_tbl[i].mode; in setLiveSnapshotSize()
1948 for(size_t i = 0; i < m_pCapability->fps_ranges_tbl_cnt; i++) { in setPreviewFpsRange()
1950 if (minFps >= m_pCapability->fps_ranges_tbl[i].min_fps * 1000 && in setPreviewFpsRange()
1951 maxFps <= m_pCapability->fps_ranges_tbl[i].max_fps * 1000) { in setPreviewFpsRange()
2252 if (brightness >= m_pCapability->brightness_ctrl.min_value && in setBrightness()
2253 brightness <= m_pCapability->brightness_ctrl.max_value) { in setBrightness()
2259 m_pCapability->brightness_ctrl.min_value, in setBrightness()
2260 m_pCapability->brightness_ctrl.max_value); in setBrightness()
2308 if((shaprness >= m_pCapability->sharpness_ctrl.min_value) && in setSharpness()
2309 (shaprness <= m_pCapability->sharpness_ctrl.max_value)) { in setSharpness()
2315 m_pCapability->sharpness_ctrl.min_value, in setSharpness()
2316 m_pCapability->sharpness_ctrl.max_value); in setSharpness()
2347 if((sceFactor >= m_pCapability->sce_ctrl.min_value) && in setSkinToneEnhancement()
2348 (sceFactor <= m_pCapability->sce_ctrl.max_value)) { in setSkinToneEnhancement()
2354 m_pCapability->sce_ctrl.min_value, in setSkinToneEnhancement()
2355 m_pCapability->sce_ctrl.max_value); in setSkinToneEnhancement()
2386 if((saturation >= m_pCapability->saturation_ctrl.min_value) && in setSaturation()
2387 (saturation <= m_pCapability->saturation_ctrl.max_value)) { in setSaturation()
2393 m_pCapability->saturation_ctrl.min_value, in setSaturation()
2394 m_pCapability->saturation_ctrl.max_value); in setSaturation()
2425 if((contrast >= m_pCapability->contrast_ctrl.min_value) && in setContrast()
2426 (contrast <= m_pCapability->contrast_ctrl.max_value)) { in setContrast()
2433 m_pCapability->contrast_ctrl.min_value, in setContrast()
2434 m_pCapability->contrast_ctrl.max_value); in setContrast()
2465 if((expComp >= m_pCapability->exposure_compensation_min) && in setExposureCompensation()
2466 (expComp <= m_pCapability->exposure_compensation_max)) { in setExposureCompensation()
2472 m_pCapability->exposure_compensation_min, in setExposureCompensation()
2473 m_pCapability->exposure_compensation_max); in setExposureCompensation()
2753 if ((m_pCapability->zoom_supported == 0 || in setZoom()
2754 m_pCapability->zoom_ratio_tbl_cnt == 0)) { in setZoom()
2761 if ((zoomLevel < 0) || (zoomLevel >= (int)m_pCapability->zoom_ratio_tbl_cnt)) { in setZoom()
2764 0, m_pCapability->zoom_ratio_tbl_cnt-1); in setZoom()
2828 (continous_iso <= m_pCapability->sensitivity_range.max_sensitivity)) { in setContinuousISO()
3347 if ((m_pCapability->qcom_supported_feature_mask & in setAFBracket()
3379 if ((m_pCapability->qcom_supported_feature_mask & in setReFocus()
3411 if ((m_pCapability->qcom_supported_feature_mask & in setChromaFlash()
3443 if ((m_pCapability->qcom_supported_feature_mask & in setOptiZoom()
3475 if ((m_pCapability->qcom_supported_feature_mask & in setTruePortrait()
3508 uint32_t supported_hdr_modes = m_pCapability->qcom_supported_feature_mask & in setHDRMode()
3578 if ((m_pCapability->qcom_supported_feature_mask & in setSeeMore()
3609 if ((m_pCapability->qcom_supported_feature_mask & in setStillMore()
3778 nBurstNum = m_pCapability->refocus_af_bracketing_need.output_count + 1; in setNumOfSnapshot()
3958 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_CPP_TNR) == 0) { in setTemporalDenoise()
4314 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_FLIP) == 0) { in setFlip()
4614 m_pCapability->smooth_zoom_supported? VALUE_TRUE : VALUE_FALSE); in initDefaultParameters()
4616 m_pCapability->zoom_supported? VALUE_TRUE : VALUE_FALSE); in initDefaultParameters()
4618 m_pCapability->video_snapshot_supported? VALUE_TRUE : VALUE_FALSE); in initDefaultParameters()
4620 m_pCapability->video_stablization_supported? VALUE_TRUE : VALUE_FALSE); in initDefaultParameters()
4622 m_pCapability->auto_exposure_lock_supported? VALUE_TRUE : VALUE_FALSE); in initDefaultParameters()
4624 m_pCapability->auto_wb_lock_supported? VALUE_TRUE : VALUE_FALSE); in initDefaultParameters()
4626 (int)m_pCapability->qcom_supported_feature_mask); in initDefaultParameters()
4627 set(KEY_MAX_NUM_DETECTED_FACES_HW, m_pCapability->max_num_roi); in initDefaultParameters()
4628 set(KEY_MAX_NUM_DETECTED_FACES_SW, m_pCapability->max_num_roi); in initDefaultParameters()
4629 set(KEY_QC_MAX_NUM_REQUESTED_FACES, m_pCapability->max_num_roi); in initDefaultParameters()
4631 setFloat(KEY_FOCAL_LENGTH, m_pCapability->focal_length); in initDefaultParameters()
4632 setFloat(KEY_HORIZONTAL_VIEW_ANGLE, m_pCapability->hor_view_angle); in initDefaultParameters()
4633 setFloat(KEY_VERTICAL_VIEW_ANGLE, m_pCapability->ver_view_angle); in initDefaultParameters()
4636 (m_pCapability->auto_hdr_supported)? VALUE_TRUE : VALUE_FALSE); in initDefaultParameters()
4638 if (m_pCapability->preview_sizes_tbl_cnt > 0 && in initDefaultParameters()
4639 m_pCapability->preview_sizes_tbl_cnt <= MAX_SIZES_CNT) { in initDefaultParameters()
4641 m_pCapability->preview_sizes_tbl, m_pCapability->preview_sizes_tbl_cnt); in initDefaultParameters()
4645 CameraParameters::setPreviewSize(m_pCapability->preview_sizes_tbl[0].width, in initDefaultParameters()
4646 m_pCapability->preview_sizes_tbl[0].height); in initDefaultParameters()
4652 if (m_pCapability->video_sizes_tbl_cnt > 0 && in initDefaultParameters()
4653 m_pCapability->video_sizes_tbl_cnt <= MAX_SIZES_CNT) { in initDefaultParameters()
4655 m_pCapability->video_sizes_tbl, m_pCapability->video_sizes_tbl_cnt); in initDefaultParameters()
4659 CameraParameters::setVideoSize(m_pCapability->video_sizes_tbl[0].width, in initDefaultParameters()
4660 m_pCapability->video_sizes_tbl[0].height); in initDefaultParameters()
4663 String8 vSize = createSizesString(&m_pCapability->preview_sizes_tbl[0], 1); in initDefaultParameters()
4670 if (m_pCapability->picture_sizes_tbl_cnt > 0 && in initDefaultParameters()
4671 m_pCapability->picture_sizes_tbl_cnt <= MAX_SIZES_CNT) { in initDefaultParameters()
4673 m_pCapability->picture_sizes_tbl, m_pCapability->picture_sizes_tbl_cnt); in initDefaultParameters()
4678 m_pCapability->picture_sizes_tbl[m_pCapability->picture_sizes_tbl_cnt-1].width, in initDefaultParameters()
4679 m_pCapability->picture_sizes_tbl[m_pCapability->picture_sizes_tbl_cnt-1].height); in initDefaultParameters()
4685 if (m_pCapability->scale_picture_sizes_cnt > 0 && in initDefaultParameters()
4686 m_pCapability->scale_picture_sizes_cnt <= MAX_SCALE_SIZES_CNT){ in initDefaultParameters()
4690 m_pCapability->scale_picture_sizes_cnt, m_pCapability->scale_picture_sizes, in initDefaultParameters()
4691 m_pCapability->picture_sizes_tbl_cnt, m_pCapability->picture_sizes_tbl); in initDefaultParameters()
4716 if (m_pCapability->livesnapshot_sizes_tbl_cnt > 0 && in initDefaultParameters()
4717 m_pCapability->livesnapshot_sizes_tbl_cnt <= MAX_SIZES_CNT) { in initDefaultParameters()
4719 m_pCapability->livesnapshot_sizes_tbl, in initDefaultParameters()
4720 m_pCapability->livesnapshot_sizes_tbl_cnt); in initDefaultParameters()
4724 m_pCapability->livesnapshot_sizes_tbl[m_pCapability->livesnapshot_sizes_tbl_cnt-1]; in initDefaultParameters()
4729 m_pCapability->supported_preview_fmts, in initDefaultParameters()
4730 m_pCapability->supported_preview_fmt_cnt, in initDefaultParameters()
4743 m_pCapability->supported_raw_fmts, in initDefaultParameters()
4744 m_pCapability->supported_raw_fmt_cnt, in initDefaultParameters()
4758 m_pCapability->raw_dim[0].width, m_pCapability->raw_dim[0].height); in initDefaultParameters()
4761 m_pCapability->raw_dim[0].width, m_pCapability->raw_dim[0].height); in initDefaultParameters()
4768 if (m_pCapability->fps_ranges_tbl_cnt > 0 && in initDefaultParameters()
4769 m_pCapability->fps_ranges_tbl_cnt <= MAX_SIZES_CNT) { in initDefaultParameters()
4771 String8 fpsRangeValues = createFpsRangeString(m_pCapability->fps_ranges_tbl, in initDefaultParameters()
4772 m_pCapability->fps_ranges_tbl_cnt, in initDefaultParameters()
4777 int(m_pCapability->fps_ranges_tbl[default_fps_index].min_fps * 1000); in initDefaultParameters()
4779 int(m_pCapability->fps_ranges_tbl[default_fps_index].max_fps * 1000); in initDefaultParameters()
4780 m_default_fps_range = m_pCapability->fps_ranges_tbl[default_fps_index]; in initDefaultParameters()
4785 String8 fpsValues = createFpsString(m_pCapability->fps_ranges_tbl[default_fps_index]); in initDefaultParameters()
4788 …CameraParameters::setPreviewFrameRate(int(m_pCapability->fps_ranges_tbl[default_fps_index].max_fps… in initDefaultParameters()
4794 if (m_pCapability->supported_focus_modes_cnt > 0) { in initDefaultParameters()
4796 m_pCapability->supported_focus_modes, in initDefaultParameters()
4797 m_pCapability->supported_focus_modes_cnt, in initDefaultParameters()
4805 m_pCapability->supported_focus_modes[0]); in initDefaultParameters()
4816 if (m_pCapability->max_num_focus_areas > MAX_ROI) { in initDefaultParameters()
4817 m_pCapability->max_num_focus_areas = MAX_ROI; in initDefaultParameters()
4819 set(KEY_MAX_NUM_FOCUS_AREAS, m_pCapability->max_num_focus_areas); in initDefaultParameters()
4820 if (m_pCapability->max_num_focus_areas > 0) { in initDefaultParameters()
4825 if (m_pCapability->max_num_metering_areas > MAX_ROI) { in initDefaultParameters()
4826 m_pCapability->max_num_metering_areas = MAX_ROI; in initDefaultParameters()
4828 set(KEY_MAX_NUM_METERING_AREAS, m_pCapability->max_num_metering_areas); in initDefaultParameters()
4829 if (m_pCapability->max_num_metering_areas > 0) { in initDefaultParameters()
4834 m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_INDEX] = 0; in initDefaultParameters()
4835 m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_INDEX] = 1023; in initDefaultParameters()
4837 (int) m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_INDEX]); in initDefaultParameters()
4839 (int) m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_INDEX]); in initDefaultParameters()
4841 m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_DAC_CODE] = 0; in initDefaultParameters()
4842 m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_DAC_CODE] = 1023; in initDefaultParameters()
4844 (int) m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_DAC_CODE]); in initDefaultParameters()
4846 (int) m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_DAC_CODE]); in initDefaultParameters()
4848 m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_RATIO] = 0; in initDefaultParameters()
4849 m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_RATIO] = 100; in initDefaultParameters()
4851 (int) m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_RATIO]); in initDefaultParameters()
4853 (int) m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_RATIO]); in initDefaultParameters()
4855 m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_DIOPTER] = 0; in initDefaultParameters()
4856 if (m_pCapability->min_focus_distance > 0) { in initDefaultParameters()
4857 m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_DIOPTER] = in initDefaultParameters()
4858 100.0f / m_pCapability->min_focus_distance; in initDefaultParameters()
4860 m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_DIOPTER] = 0; in initDefaultParameters()
4863 m_pCapability->min_focus_pos[CAM_MANUAL_FOCUS_MODE_DIOPTER]); in initDefaultParameters()
4865 m_pCapability->max_focus_pos[CAM_MANUAL_FOCUS_MODE_DIOPTER]); in initDefaultParameters()
4869 if (m_pCapability->supported_focus_modes_cnt > 1 && in initDefaultParameters()
4870 m_pCapability->min_focus_distance > 0) { in initDefaultParameters()
4879 set(KEY_QC_MIN_SATURATION, m_pCapability->saturation_ctrl.min_value); in initDefaultParameters()
4880 set(KEY_QC_MAX_SATURATION, m_pCapability->saturation_ctrl.max_value); in initDefaultParameters()
4881 set(KEY_QC_SATURATION_STEP, m_pCapability->saturation_ctrl.step); in initDefaultParameters()
4882 setSaturation(m_pCapability->saturation_ctrl.def_value); in initDefaultParameters()
4885 set(KEY_QC_MIN_SHARPNESS, m_pCapability->sharpness_ctrl.min_value); in initDefaultParameters()
4886 set(KEY_QC_MAX_SHARPNESS, m_pCapability->sharpness_ctrl.max_value); in initDefaultParameters()
4887 set(KEY_QC_SHARPNESS_STEP, m_pCapability->sharpness_ctrl.step); in initDefaultParameters()
4888 setSharpness(m_pCapability->sharpness_ctrl.def_value); in initDefaultParameters()
4891 set(KEY_QC_MIN_CONTRAST, m_pCapability->contrast_ctrl.min_value); in initDefaultParameters()
4892 set(KEY_QC_MAX_CONTRAST, m_pCapability->contrast_ctrl.max_value); in initDefaultParameters()
4893 set(KEY_QC_CONTRAST_STEP, m_pCapability->contrast_ctrl.step); in initDefaultParameters()
4894 setContrast(m_pCapability->contrast_ctrl.def_value); in initDefaultParameters()
4897 set(KEY_QC_MIN_SCE_FACTOR, m_pCapability->sce_ctrl.min_value); // -100 in initDefaultParameters()
4898 set(KEY_QC_MAX_SCE_FACTOR, m_pCapability->sce_ctrl.max_value); // 100 in initDefaultParameters()
4899 set(KEY_QC_SCE_FACTOR_STEP, m_pCapability->sce_ctrl.step); // 10 in initDefaultParameters()
4900 setSkinToneEnhancement(m_pCapability->sce_ctrl.def_value); // 0 in initDefaultParameters()
4903 set(KEY_QC_MIN_BRIGHTNESS, m_pCapability->brightness_ctrl.min_value); // 0 in initDefaultParameters()
4904 set(KEY_QC_MAX_BRIGHTNESS, m_pCapability->brightness_ctrl.max_value); // 6 in initDefaultParameters()
4905 set(KEY_QC_BRIGHTNESS_STEP, m_pCapability->brightness_ctrl.step); // 1 in initDefaultParameters()
4906 setBrightness(m_pCapability->brightness_ctrl.def_value); in initDefaultParameters()
4910 m_pCapability->supported_aec_modes, in initDefaultParameters()
4911 m_pCapability->supported_aec_modes_cnt, in initDefaultParameters()
4918 set(KEY_MAX_EXPOSURE_COMPENSATION, m_pCapability->exposure_compensation_max); // 12 in initDefaultParameters()
4919 set(KEY_MIN_EXPOSURE_COMPENSATION, m_pCapability->exposure_compensation_min); // -12 in initDefaultParameters()
4920 setFloat(KEY_EXPOSURE_COMPENSATION_STEP, m_pCapability->exposure_compensation_step); // 1/6 in initDefaultParameters()
4921 setExposureCompensation(m_pCapability->exposure_compensation_default); // 0 in initDefaultParameters()
4925 m_pCapability->supported_antibandings, in initDefaultParameters()
4926 m_pCapability->supported_antibandings_cnt, in initDefaultParameters()
4934 m_pCapability->supported_effects, in initDefaultParameters()
4935 m_pCapability->supported_effects_cnt, in initDefaultParameters()
4943 m_pCapability->supported_white_balances, in initDefaultParameters()
4944 m_pCapability->supported_white_balances_cnt, in initDefaultParameters()
4951 m_pCapability->min_wb_cct = 2000; in initDefaultParameters()
4952 m_pCapability->max_wb_cct = 8000; in initDefaultParameters()
4953 set(KEY_QC_MIN_WB_CCT, m_pCapability->min_wb_cct); in initDefaultParameters()
4954 set(KEY_QC_MAX_WB_CCT, m_pCapability->max_wb_cct); in initDefaultParameters()
4958 m_pCapability->min_wb_gain = 1.0; in initDefaultParameters()
4959 m_pCapability->max_wb_gain = 4.0; in initDefaultParameters()
4960 setFloat(KEY_QC_MIN_WB_GAIN, m_pCapability->min_wb_gain); in initDefaultParameters()
4961 setFloat(KEY_QC_MAX_WB_GAIN, m_pCapability->max_wb_gain); in initDefaultParameters()
4965 if(m_pCapability->sensor_type.sens_type != CAM_SENSOR_YUV) { in initDefaultParameters()
4974 if(m_pCapability->supported_flash_modes_cnt > 0) { in initDefaultParameters()
4976 m_pCapability->supported_flash_modes, in initDefaultParameters()
4977 m_pCapability->supported_flash_modes_cnt, in initDefaultParameters()
4988 m_pCapability->supported_scene_modes, in initDefaultParameters()
4989 m_pCapability->supported_scene_modes_cnt, in initDefaultParameters()
5021 m_pCapability->supported_iso_modes, in initDefaultParameters()
5022 m_pCapability->supported_iso_modes_cnt, in initDefaultParameters()
5034 double min_exp_time = (double) m_pCapability->exposure_time_range[0] / 1000000.0; in initDefaultParameters()
5035 double max_exp_time = (double) m_pCapability->exposure_time_range[1] / 1000000.0; in initDefaultParameters()
5049 set(KEY_QC_MIN_ISO, m_pCapability->sensitivity_range.min_sensitivity); in initDefaultParameters()
5050 set(KEY_QC_MAX_ISO, m_pCapability->sensitivity_range.max_sensitivity); in initDefaultParameters()
5052 m_pCapability->sensitivity_range.min_sensitivity, in initDefaultParameters()
5053 m_pCapability->sensitivity_range.max_sensitivity); in initDefaultParameters()
5054 if ((m_pCapability->sensitivity_range.min_sensitivity > 0) && in initDefaultParameters()
5055 (m_pCapability->sensitivity_range.max_sensitivity > in initDefaultParameters()
5056 m_pCapability->sensitivity_range.min_sensitivity)) { in initDefaultParameters()
5070 m_pCapability->hfr_tbl, in initDefaultParameters()
5071 m_pCapability->hfr_tbl_cnt, in initDefaultParameters()
5078 m_pCapability->hfr_tbl, in initDefaultParameters()
5079 m_pCapability->hfr_tbl_cnt); in initDefaultParameters()
5086 m_pCapability->supported_focus_algos, in initDefaultParameters()
5087 m_pCapability->supported_focus_algos_cnt, in initDefaultParameters()
5094 if (m_pCapability->zoom_supported > 0) { in initDefaultParameters()
5096 m_pCapability->zoom_ratio_tbl, in initDefaultParameters()
5097 m_pCapability->zoom_ratio_tbl_cnt); in initDefaultParameters()
5099 set(KEY_MAX_ZOOM, (int)(m_pCapability->zoom_ratio_tbl_cnt - 1)); in initDefaultParameters()
5117 for (size_t i = 0; i < m_pCapability->supported_focus_modes_cnt; i++) { in initDefaultParameters()
5118 if ((CAM_FOCUS_MODE_AUTO == m_pCapability->supported_focus_modes[i]) && in initDefaultParameters()
5119 ((m_pCapability->qcom_supported_feature_mask & in initDefaultParameters()
5132 for (size_t i = 0; i < m_pCapability->supported_focus_modes_cnt; i++) { in initDefaultParameters()
5133 if ((CAM_FOCUS_MODE_AUTO == m_pCapability->supported_focus_modes[i]) && in initDefaultParameters()
5134 (m_pCapability->qcom_supported_feature_mask & in initDefaultParameters()
5145 if ((m_pCapability->supported_flash_modes_cnt > 0) && in initDefaultParameters()
5146 (m_pCapability->qcom_supported_feature_mask & in initDefaultParameters()
5156 if (m_pCapability->zoom_supported && in initDefaultParameters()
5157 (m_pCapability->qcom_supported_feature_mask & in initDefaultParameters()
5167 uint32_t supported_hdr_modes = m_pCapability->qcom_supported_feature_mask & in initDefaultParameters()
5202 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_TRUEPORTRAIT) > 0) { in initDefaultParameters()
5210 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_DENOISE2D) > 0){ in initDefaultParameters()
5238 m_pCapability->histogram_supported ? enableDisableValues : ""); in initDefaultParameters()
5253 if (m_pCapability->qcom_supported_feature_mask & in initDefaultParameters()
5260 if (m_pCapability->qcom_supported_feature_mask & in initDefaultParameters()
5277 for (uint32_t i=0; i<m_pCapability->hdr_bracketing_setting.num_frames; i++) { in initDefaultParameters()
5278 if (0 == m_pCapability->hdr_bracketing_setting.exp_val.values[i]) { in initDefaultParameters()
5336 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_VIDEO_HDR) > 0) { in initDefaultParameters()
5342 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_SENSOR_HDR)> 0) { in initDefaultParameters()
5358 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_FLIP) > 0) { in initDefaultParameters()
5433 m_pCapability = capabilities; in init()
5500 m_pCapability = NULL; in deinit()
5859 int32_t minFocusPos = (int32_t) m_pCapability->min_focus_pos[type]; in setFocusPosition()
5860 int32_t maxFocusPos = (int32_t) m_pCapability->max_focus_pos[type]; in setFocusPosition()
6351 ((expTimeNs >= m_pCapability->exposure_time_range[0]) && in setExposureTime()
6352 (expTimeNs <= m_pCapability->exposure_time_range[1])))) { in setExposureTime()
6516 m_pCapability->chroma_flash_settings_need.burst_count; in configureFlash()
6521 flash_mode = (m_pCapability->chroma_flash_settings_need.flash_bracketing[i]) ? in configureFlash()
6558 uint32_t hdrFrameCount = m_pCapability->hdr_bracketing_setting.num_frames; in configureHDRBracketing()
6561 (int8_t) m_pCapability->hdr_bracketing_setting.exp_val.values[0], in configureHDRBracketing()
6562 (int8_t) m_pCapability->hdr_bracketing_setting.exp_val.values[1], in configureHDRBracketing()
6568 m_pCapability->hdr_bracketing_setting.exp_val.mode; in configureHDRBracketing()
6580 m_pCapability->hdr_bracketing_setting.exp_val.values[i]; in configureHDRBracketing()
7267 int32_t minCct = m_pCapability->min_wb_cct; /* 2000K */ in setWBManualCCT()
7268 int32_t maxCct = m_pCapability->max_wb_cct; /* 8000K */ in setWBManualCCT()
7394 float minGain = m_pCapability->min_wb_gain; in setManualWBGains()
7395 float maxGain = m_pCapability->max_wb_gain; in setManualWBGains()
7482 if (m_pCapability->max_num_focus_areas == 0 || in setFocusAreas()
7488 … cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
7493 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
7496 m_pCapability->max_num_focus_areas, in setFocusAreas()
7571 if (m_pCapability->max_num_metering_areas == 0 || in setMeteringAreas()
7577 …cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_metering_area… in setMeteringAreas()
7582 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_metering_areas); in setMeteringAreas()
7585 m_pCapability->max_num_metering_areas, in setMeteringAreas()
7912 &(m_pCapability->opti_zoom_settings_need); in isOptiZoomEnabled()
8534 if ((m_pCapability->qcom_supported_feature_mask & CAM_QCOM_FEATURE_DENOISE2D) == 0){ in setWaveletDenoise()
8834 if (m_pCapability->analysis_recommended_format == in getStreamFormat()
8836 format = m_pCapability->analysis_recommended_format; in getStreamFormat()
8839 m_pCapability->analysis_recommended_format); in getStreamFormat()
8864 format = m_pCapability->rdi_mode_stream_fmt; in getStreamFormat()
9008 max_dim.width = m_pCapability->analysis_max_res.width; in getStreamDimension()
9009 max_dim.height = m_pCapability->analysis_max_res.height; in getStreamDimension()
9161 return (uint8_t)(m_pCapability->min_num_pp_bufs + (m_nBurstNum / 10)); in getMaxUnmatchedFramesInQueue()
9228 burstCount = m_pCapability->ubifocus_af_bracketing_need.burst_count; in getBurstCountForAdvancedCapture()
9231 burstCount = m_pCapability->refocus_af_bracketing_need.burst_count; in getBurstCountForAdvancedCapture()
9234 burstCount = m_pCapability->opti_zoom_settings_need.burst_count; in getBurstCountForAdvancedCapture()
9237 burstCount = m_pCapability->chroma_flash_settings_need.burst_count; in getBurstCountForAdvancedCapture()
9243 m_pCapability->stillmore_settings_need.min_burst_count) && in getBurstCountForAdvancedCapture()
9245 m_pCapability->stillmore_settings_need.max_burst_count)) { in getBurstCountForAdvancedCapture()
9248 burstCount = m_pCapability->stillmore_settings_need.burst_count; in getBurstCountForAdvancedCapture()
9252 burstCount = m_pCapability->hdr_bracketing_setting.num_frames; in getBurstCountForAdvancedCapture()
9324 numOfBufs += m_pCapability->hdr_bracketing_setting.num_frames; in getNumOfExtraHDRInBufsIfNeeded()
10138 max_dim = m_pCapability->raw_dim[0]; in updateRAW()
10175 raw_dim = m_pCapability->raw_dim[0]; in updateRAW()
11451 return (uint8_t)(m_pCapability->refocus_af_bracketing_need.burst_count - 1); in getNumOfExtraBuffersForImageProc()
11453 numOfBufs += m_pCapability->ubifocus_af_bracketing_need.burst_count - 1; in getNumOfExtraBuffersForImageProc()
11455 numOfBufs += m_pCapability->opti_zoom_settings_need.burst_count - 1; in getNumOfExtraBuffersForImageProc()
11457 numOfBufs += m_pCapability->chroma_flash_settings_need.burst_count - 1; in getNumOfExtraBuffersForImageProc()
11462 m_pCapability->stillmore_settings_need.min_burst_count) && in getNumOfExtraBuffersForImageProc()
11464 m_pCapability->stillmore_settings_need.max_burst_count)) { in getNumOfExtraBuffersForImageProc()
11467 numOfBufs += m_pCapability->stillmore_settings_need.burst_count - 1; in getNumOfExtraBuffersForImageProc()
11488 if (captureIndex < m_pCapability->refocus_af_bracketing_need.burst_count) { in getExifBufIndex()
11494 index = m_pCapability->chroma_flash_settings_need.metadata_index; in getExifBufIndex()
11497 index = m_pCapability->hdr_bracketing_setting.num_frames; in getExifBufIndex()
11499 for (index = 0; index < m_pCapability->hdr_bracketing_setting.num_frames; index++) { in getExifBufIndex()
11500 if (0 == m_pCapability->hdr_bracketing_setting.exp_val.values[index]) { in getExifBufIndex()
11504 if (index == m_pCapability->hdr_bracketing_setting.num_frames) { in getExifBufIndex()
11527 numOfBufs = m_pCapability->refocus_af_bracketing_need.burst_count; in getNumberInBufsForSingleShot()
11529 numOfBufs = m_pCapability->ubifocus_af_bracketing_need.burst_count; in getNumberInBufsForSingleShot()
11531 numOfBufs = m_pCapability->opti_zoom_settings_need.burst_count; in getNumberInBufsForSingleShot()
11533 numOfBufs = m_pCapability->chroma_flash_settings_need.burst_count; in getNumberInBufsForSingleShot()
11535 numOfBufs = m_pCapability->hdr_bracketing_setting.num_frames; in getNumberInBufsForSingleShot()
11544 m_pCapability->stillmore_settings_need.min_burst_count) && in getNumberInBufsForSingleShot()
11546 m_pCapability->stillmore_settings_need.max_burst_count)) { in getNumberInBufsForSingleShot()
11549 numOfBufs = m_pCapability->stillmore_settings_need.burst_count; in getNumberInBufsForSingleShot()
11570 numOfBufs = m_pCapability->refocus_af_bracketing_need.output_count; in getNumberOutBufsForSingleShot()
11837 while((m_pCapability->max_batch_bufs_supported != 0) in setBufBatchCount()
11838 && (m_pCapability->max_batch_bufs_supported < buf_cnt)) { in setBufBatchCount()