Lines Matching refs:gCamCapability
49 cam_capability_t *gCamCapability[MM_CAMERA_MAX_NUM_SENSORS];
174 gCamCapability[cameraId]->version = CAM_HAL_V3;
177 gCamCapability[cameraId]->min_num_pp_bufs = 3;
511 &gCamCapability[mCameraId]->padding_info, this);
562 &gCamCapability[mCameraId]->padding_info, this, newStream,
567 &gCamCapability[mCameraId]->padding_info, this, newStream);
580 &gCamCapability[mCameraId]->padding_info, this, newStream);
1428 int map_height = gCamCapability[mCameraId]->lens_shading_map_size.height;
1429 int map_width = gCamCapability[mCameraId]->lens_shading_map_size.width;
1634 gCamCapability[cameraId] = (cam_capability_t *)malloc(sizeof(cam_capability_t));
1635 if (!gCamCapability[cameraId]) {
1639 memcpy(gCamCapability[cameraId], DATA_PTR(capabilityHeap,0),
1735 for (int i = 0; i < gCamCapability[mCameraId]->picture_sizes_tbl_cnt; i++) {
1736 temp_width = gCamCapability[mCameraId]->picture_sizes_tbl[i].width;
1737 temp_height = gCamCapability[mCameraId]->picture_sizes_tbl[i].height;
1768 int facingBack = gCamCapability[cameraId]->position == CAM_POSITION_BACK;
1771 &gCamCapability[cameraId]->min_focus_distance, 1); */
1784 &gCamCapability[cameraId]->hyper_focal_distance, 1);
1788 &gCamCapability[cameraId]->focal_length,
1792 gCamCapability[cameraId]->apertures,
1793 gCamCapability[cameraId]->apertures_count);
1796 gCamCapability[cameraId]->filter_densities,
1797 gCamCapability[cameraId]->filter_densities_count);
1801 (uint8_t*)gCamCapability[cameraId]->optical_stab_modes,
1802 gCamCapability[cameraId]->optical_stab_modes_count);
1805 gCamCapability[cameraId]->lens_position,
1806 sizeof(gCamCapability[cameraId]->lens_position)/ sizeof(float));
1808 int32_t lens_shading_map_size[] = {gCamCapability[cameraId]->lens_shading_map_size.width,
1809 gCamCapability[cameraId]->lens_shading_map_size.height};
1814 int32_t geo_correction_map_size[] = {gCamCapability[cameraId]->geo_correction_map_size.width,
1815 gCamCapability[cameraId]->geo_correction_map_size.height};
1821 gCamCapability[cameraId]->geo_correction_map,
1822 sizeof(gCamCapability[cameraId]->geo_correction_map)/sizeof(float));
1825 gCamCapability[cameraId]->sensor_physical_size, 2);
1828 gCamCapability[cameraId]->exposure_time_range, 2);
1831 &gCamCapability[cameraId]->max_frame_duration, 1);
1834 gCamCapability[cameraId]->base_gain_factor.numerator,
1835 gCamCapability[cameraId]->base_gain_factor.denominator};
1840 (uint8_t*)&gCamCapability[cameraId]->color_arrangement, 1);
1842 int32_t pixel_array_size[] = {gCamCapability[cameraId]->pixel_array_size.width,
1843 gCamCapability[cameraId]->pixel_array_size.height};
1848 gCamCapability[cameraId]->active_array_size.width,
1849 gCamCapability[cameraId]->active_array_size.height};
1854 &gCamCapability[cameraId]->white_level, 1);
1857 gCamCapability[cameraId]->black_level_pattern, 4);
1860 &gCamCapability[cameraId]->flash_charge_duration, 1);
1863 &gCamCapability[cameraId]->max_tone_map_curve_points, 1);
1866 (int*)&gCamCapability[cameraId]->max_face_detection_count, 1);*/
1873 &gCamCapability[cameraId]->histogram_size, 1);
1876 &gCamCapability[cameraId]->max_histogram_count, 1);
1878 int32_t sharpness_map_size[] = {gCamCapability[cameraId]->sharpness_map_size.width,
1879 gCamCapability[cameraId]->sharpness_map_size.height};
1885 &gCamCapability[cameraId]->max_sharpness_map_value, 1);
1889 &gCamCapability[cameraId]->raw_min_duration,
1900 makeTable(gCamCapability[cameraId]->picture_sizes_tbl,
1901 gCamCapability[cameraId]->picture_sizes_tbl_cnt,
1905 (gCamCapability[cameraId]->picture_sizes_tbl_cnt) * 2);
1908 &gCamCapability[cameraId]->jpeg_min_duration[0],
1909 gCamCapability[cameraId]->picture_sizes_tbl_cnt);
1912 makeFPSTable(gCamCapability[cameraId]->fps_ranges_tbl,
1913 gCamCapability[cameraId]->fps_ranges_tbl_cnt,
1916 available_fps_ranges, (gCamCapability[cameraId]->fps_ranges_tbl_cnt*2) );
1919 gCamCapability[cameraId]->exp_compensation_step.numerator,
1920 gCamCapability[cameraId]->exp_compensation_step.denominator};
1944 int32_t exposureCompensationRange[] = {gCamCapability[cameraId]->exposure_compensation_min,
1945 gCamCapability[cameraId]->exposure_compensation_max};
1956 (gCamCapability[cameraId]->picture_sizes_tbl_cnt * 2));
1964 for (int i = 0; i < gCamCapability[cameraId]->picture_sizes_tbl_cnt; i++) {
1965 temp_width = gCamCapability[cameraId]->picture_sizes_tbl[i].width;
1966 temp_height = gCamCapability[cameraId]->picture_sizes_tbl[i].height;
1977 for (int i = 0; i < gCamCapability[cameraId]->supported_effects_cnt; i++) {
1980 gCamCapability[cameraId]->supported_effects[i]);
1993 for (int i = 0; i < gCamCapability[cameraId]->supported_scene_modes_cnt; i++) {
1996 gCamCapability[cameraId]->supported_scene_modes[i]);
2009 makeOverridesList(gCamCapability[cameraId]->scene_mode_overrides,
2020 for (int i = 0; i < gCamCapability[cameraId]->supported_antibandings_cnt; i++) {
2023 gCamCapability[cameraId]->supported_antibandings[i]);
2036 for (int i = 0; i < gCamCapability[cameraId]->supported_focus_modes_cnt; i++) {
2039 gCamCapability[cameraId]->supported_focus_modes[i]);
2051 for (int i = 0; i < gCamCapability[cameraId]->supported_white_balances_cnt; i++) {
2054 gCamCapability[cameraId]->supported_white_balances[i]);
2065 for (int i = 0; i < gCamCapability[cameraId]->supported_flash_firing_level_cnt; i++)
2066 available_flash_levels[i] = gCamCapability[cameraId]->supported_firing_levels[i];
2070 gCamCapability[cameraId]->supported_flash_firing_level_cnt);
2073 uint8_t flashAvailable = gCamCapability[cameraId]->flash_available;
2079 for (int i = 0; i < gCamCapability[cameraId]->supported_ae_modes_cnt; i++) {
2080 avail_ae_modes[i] = gCamCapability[cameraId]->supported_ae_modes[i];
2093 sensitivity_range[0] = gCamCapability[cameraId]->sensitivity_range.min_sensitivity;
2094 sensitivity_range[1] = gCamCapability[cameraId]->sensitivity_range.max_sensitivity;
2100 &gCamCapability[cameraId]->max_analog_sensitivity,
2104 &gCamCapability[cameraId]->jpeg_min_duration[0],
2105 gCamCapability[cameraId]->picture_sizes_tbl_cnt);
2107 int32_t sensor_orientation = (int32_t)gCamCapability[cameraId]->sensor_mount_angle;
2182 overridesList[j] = gCamCapability[camera_id]->flash_available ? ANDROID_CONTROL_AE_MODE_ON_AUTO_FLASH:ANDROID_CONTROL_AE_MODE_ON;
2187 for (int k = 0; k < gCamCapability[camera_id]->supported_focus_modes_cnt; k++) {
2188 if (gCamCapability[camera_id]->supported_focus_modes[k] == focus_override) {
2410 if (NULL == gCamCapability[cameraId]) {
2425 switch(gCamCapability[cameraId]->position) {
2441 info->orientation = gCamCapability[cameraId]->sensor_mount_angle;
2503 &gCamCapability[mCameraId]->exposure_compensation_default, 1);
2524 if (gCamCapability[mCameraId]->supported_focus_modes_cnt > 1) {
2545 float default_aperture = gCamCapability[mCameraId]->apertures[0];
2548 if (gCamCapability[mCameraId]->filter_densities_count) {
2549 float default_filter_density = gCamCapability[mCameraId]->filter_densities[0];
2551 gCamCapability[mCameraId]->filter_densities_count);
2554 float default_focal_length = gCamCapability[mCameraId]->focal_length;
2558 int64_t default_exposure_time = gCamCapability[mCameraId]->exposure_time_range[0];
2657 if (expCompensation < gCamCapability[mCameraId]->exposure_compensation_min)
2658 expCompensation = gCamCapability[mCameraId]->exposure_compensation_min;
2659 if (expCompensation > gCamCapability[mCameraId]->exposure_compensation_max)
2660 expCompensation = gCamCapability[mCameraId]->exposure_compensation_max;
2997 if (sensorFrameDuration > gCamCapability[mCameraId]->max_frame_duration)
2998 sensorFrameDuration = gCamCapability[mCameraId]->max_frame_duration;
3008 gCamCapability[mCameraId]->sensitivity_range.min_sensitivity)
3010 gCamCapability[mCameraId]->sensitivity_range.min_sensitivity;
3012 gCamCapability[mCameraId]->sensitivity_range.max_sensitivity)
3014 gCamCapability[mCameraId]->sensitivity_range.max_sensitivity;
3069 gCamCapability[mCameraId]->max_tone_map_curve_points;
3085 gCamCapability[mCameraId]->max_tone_map_curve_points;
3101 gCamCapability[mCameraId]->max_tone_map_curve_points;
3276 mJpegSettings->exposure_comp_step = gCamCapability[mCameraId]->exp_compensation_step;
3279 mJpegSettings->min_required_pp_mask = gCamCapability[mCameraId]->min_required_pp_mask;
3582 if ((gCamCapability[mCameraId]->qcom_supported_feature_mask & CAM_QCOM_FEATURE_ROTATION) > 0 &&
3662 if (gCamCapability[mCameraId]->min_required_pp_mask & CAM_QCOM_FEATURE_SHARPNESS) {
3699 return gCamCapability[mCameraId]->min_num_pp_bufs;
3703 return gCamCapability[mCameraId]->isWnrSupported;