Lines Matching refs:areas

8893 … cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_focus_areas);  in setFocusAreas()  local
8894 if (NULL == areas) { in setFocusAreas()
8898 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
8902 areas, in setFocusAreas()
8905 free(areas); in setFocusAreas()
8909 if (validateCameraAreas(areas, num_areas_found) == false) { in setFocusAreas()
8911 free(areas); in setFocusAreas()
8920 areas[0].rect.left == 0 && in setFocusAreas()
8921 areas[0].rect.top == 0 && in setFocusAreas()
8922 areas[0].rect.width == 0 && in setFocusAreas()
8923 areas[0].rect.height == 0 && in setFocusAreas()
8924 areas[0].weight == 0) { in setFocusAreas()
8935 i, (areas[i].rect.top), (areas[i].rect.left), in setFocusAreas()
8936 (areas[i].rect.width), (areas[i].rect.height)); in setFocusAreas()
8941 (int32_t)(((double)areas[i].rect.left + 1000.0) * in setFocusAreas()
8944 (int32_t)(((double)areas[i].rect.top + 1000.0) * in setFocusAreas()
8947 (int32_t)((double)areas[i].rect.width * in setFocusAreas()
8950 (int32_t)((double)areas[i].rect.height * in setFocusAreas()
8952 af_roi_value.weight[i] = areas[i].weight; in setFocusAreas()
8954 free(areas); in setFocusAreas()
8982 …cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_metering_area… in setMeteringAreas() local
8983 if (NULL == areas) { in setMeteringAreas()
8987 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_metering_areas); in setMeteringAreas()
8991 areas, in setMeteringAreas()
8994 free(areas); in setMeteringAreas()
8998 if (validateCameraAreas(areas, num_areas_found) == false) { in setMeteringAreas()
9000 free(areas); in setMeteringAreas()
9009 areas[0].rect.left == 0 && in setMeteringAreas()
9010 areas[0].rect.top == 0 && in setMeteringAreas()
9011 areas[0].rect.width == 0 && in setMeteringAreas()
9012 areas[0].rect.height == 0 && in setMeteringAreas()
9013 areas[0].weight == 0) { in setMeteringAreas()
9028 i, (areas[i].rect.top), (areas[i].rect.left), in setMeteringAreas()
9029 (areas[i].rect.width), (areas[i].rect.height)); in setMeteringAreas()
9034 (uint32_t)((((double)areas[i].rect.left + in setMeteringAreas()
9035 (double)areas[i].rect.width / 2.0) + 1000.0) * in setMeteringAreas()
9038 (uint32_t)((((double)areas[i].rect.top + in setMeteringAreas()
9039 (double)areas[i].rect.height / 2.0) + 1000.0) * in setMeteringAreas()
9045 free(areas); in setMeteringAreas()
12112 bool QCameraParameters::validateCameraAreas(cam_area_t *areas, int num_areas) in validateCameraAreas() argument
12116 areas[0].rect.left == 0 && in validateCameraAreas()
12117 areas[0].rect.top == 0 && in validateCameraAreas()
12118 areas[0].rect.width == 0 && in validateCameraAreas()
12119 areas[0].rect.height == 0 && in validateCameraAreas()
12120 areas[0].weight == 0) { in validateCameraAreas()
12126 if(areas[i].rect.left < -1000) { in validateCameraAreas()
12131 if(areas[i].rect.top < -1000) { in validateCameraAreas()
12136 if (areas[i].rect.width <= 0 || areas[i].rect.height <= 0) { in validateCameraAreas()
12141 if(areas[i].rect.left + areas[i].rect.width > 1000) { in validateCameraAreas()
12146 if(areas[i].rect.top + areas[i].rect.height > 1000) { in validateCameraAreas()
12151 if (areas[i].weight < 1 || areas[i].weight > 1000) { in validateCameraAreas()