Home
last modified time | relevance | path

Searched refs:areas (Results 1 – 9 of 9) sorted by relevance

/device/lge/mako/camera/QCamera/HAL/core/src/
DQCameraHWI_Parm.cpp1781 static bool validateCameraAreas(camera_area_t *areas, int num_areas) in validateCameraAreas() argument
1786 if((areas[i].x1 == 0) && (areas[i].y1 == 0) in validateCameraAreas()
1787 && (areas[i].x2 == 0) && (areas[i].y2 == 0) && (areas[i].weight == 0)) { in validateCameraAreas()
1790 if(areas[i].x1 < -1000) return false; // left should be >= -1000 in validateCameraAreas()
1791 if(areas[i].y1 < -1000) return false; // top should be >= -1000 in validateCameraAreas()
1792 if(areas[i].x2 > 1000) return false; // right should be <= 1000 in validateCameraAreas()
1793 if(areas[i].y2 > 1000) return false; // bottom should be <= 1000 in validateCameraAreas()
1794 if(areas[i].weight <= 0 || areas[i].weight > 1000) // weight should be in [1, 1000] in validateCameraAreas()
1796 if(areas[i].x1 >= areas[i].x2) { // left should be < right in validateCameraAreas()
1799 if(areas[i].y1 >= areas[i].y2) // top should be < bottom in validateCameraAreas()
[all …]
/device/lge/mako/camera/
DQCameraHWI_Parm.cpp1825 static bool validateCameraAreas(camera_area_t *areas, int num_areas) in validateCameraAreas() argument
1830 if((areas[i].x1 == 0) && (areas[i].y1 == 0) in validateCameraAreas()
1831 && (areas[i].x2 == 0) && (areas[i].y2 == 0) && (areas[i].weight == 0)) { in validateCameraAreas()
1834 if(areas[i].x1 < -1000) return false; // left should be >= -1000 in validateCameraAreas()
1835 if(areas[i].y1 < -1000) return false; // top should be >= -1000 in validateCameraAreas()
1836 if(areas[i].x2 > 1000) return false; // right should be <= 1000 in validateCameraAreas()
1837 if(areas[i].y2 > 1000) return false; // bottom should be <= 1000 in validateCameraAreas()
1838 if(areas[i].weight <= 0 || areas[i].weight > 1000) // weight should be in [1, 1000] in validateCameraAreas()
1840 if(areas[i].x1 >= areas[i].x2) { // left should be < right in validateCameraAreas()
1843 if(areas[i].y1 >= areas[i].y2) // top should be < bottom in validateCameraAreas()
[all …]
/device/asus/flo/camera/QCamera2/HAL/
DQCameraParameters.cpp4264 … cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas() local
4265 if (NULL == areas) { in setFocusAreas()
4269 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
4273 areas, in setFocusAreas()
4276 free(areas); in setFocusAreas()
4280 if (validateCameraAreas(areas, num_areas_found) == false) { in setFocusAreas()
4282 free(areas); in setFocusAreas()
4291 areas[0].rect.left == 0 && in setFocusAreas()
4292 areas[0].rect.top == 0 && in setFocusAreas()
4293 areas[0].rect.width == 0 && in setFocusAreas()
[all …]
DQCameraParameters.h510 bool validateCameraAreas(cam_area_t *areas, int num_areas);
/device/lge/hammerhead/camera/QCamera2/HAL/
DQCameraParameters.cpp4264 … cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas() local
4265 if (NULL == areas) { in setFocusAreas()
4269 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
4273 areas, in setFocusAreas()
4276 free(areas); in setFocusAreas()
4280 if (validateCameraAreas(areas, num_areas_found) == false) { in setFocusAreas()
4282 free(areas); in setFocusAreas()
4291 areas[0].rect.left == 0 && in setFocusAreas()
4292 areas[0].rect.top == 0 && in setFocusAreas()
4293 areas[0].rect.width == 0 && in setFocusAreas()
[all …]
DQCameraParameters.h509 bool validateCameraAreas(cam_area_t *areas, int num_areas);
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI_Parm.cpp1862 static bool validateCameraAreas(camera_area_t *areas, int num_areas) in validateCameraAreas() argument
1867 if((areas[i].x1 == 0) && (areas[i].y1 == 0) in validateCameraAreas()
1868 && (areas[i].x2 == 0) && (areas[i].y2 == 0) && (areas[i].weight == 0)) { in validateCameraAreas()
1871 if(areas[i].x1 < -1000) return false; // left should be >= -1000 in validateCameraAreas()
1872 if(areas[i].y1 < -1000) return false; // top should be >= -1000 in validateCameraAreas()
1873 if(areas[i].x2 > 1000) return false; // right should be <= 1000 in validateCameraAreas()
1874 if(areas[i].y2 > 1000) return false; // bottom should be <= 1000 in validateCameraAreas()
1875 if(areas[i].weight <= 0 || areas[i].weight > 1000) // weight should be in [1, 1000] in validateCameraAreas()
1877 if(areas[i].x1 >= areas[i].x2) { // left should be < right in validateCameraAreas()
1880 if(areas[i].y1 >= areas[i].y2) // top should be < bottom in validateCameraAreas()
[all …]
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraParameters.cpp5804 … cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas() local
5805 if (NULL == areas) { in setFocusAreas()
5809 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
5813 areas, in setFocusAreas()
5816 free(areas); in setFocusAreas()
5820 if (validateCameraAreas(areas, num_areas_found) == false) { in setFocusAreas()
5822 free(areas); in setFocusAreas()
5831 areas[0].rect.left == 0 && in setFocusAreas()
5832 areas[0].rect.top == 0 && in setFocusAreas()
5833 areas[0].rect.width == 0 && in setFocusAreas()
[all …]
DQCameraParameters.h736 bool validateCameraAreas(cam_area_t *areas, int num_areas);