Home
last modified time | relevance | path

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

/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/google/dragon/recovery/updater/
Dvboot_interface.c187 if (!strcmp(name, (const char*)fmap->areas[i].name)) in fmap_get_section_offset()
195 *offset = fmap->areas[i].offset; in fmap_get_section_offset()
216 if (!strcmp(name, (const char*)fmap->areas[i].name)) in fmap_read_section()
222 *size = fmap->areas[i].size; in fmap_read_section()
223 start_offset = fmap->areas[i].offset; in fmap_read_section()
Dfmap.h49 struct fmap_area areas[]; member
Dfwtool.cpp66 struct fmap_area *a = fmap->areas+i; in dump_fmap()
/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);
/device/lge/bullhead/camera/QCamera2/HAL/
DQCameraParameters.cpp7488 … cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas() local
7489 if (NULL == areas) { in setFocusAreas()
7493 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
7497 areas, in setFocusAreas()
7500 free(areas); in setFocusAreas()
7504 if (validateCameraAreas(areas, num_areas_found) == false) { in setFocusAreas()
7506 free(areas); in setFocusAreas()
7515 areas[0].rect.left == 0 && in setFocusAreas()
7516 areas[0].rect.top == 0 && in setFocusAreas()
7517 areas[0].rect.width == 0 && in setFocusAreas()
[all …]
DQCameraParameters.h919 bool validateCameraAreas(cam_area_t *areas, int num_areas);
/device/huawei/angler/camera/QCamera2/HAL/
DQCameraParameters.cpp7488 … cam_area_t *areas = (cam_area_t *)malloc(sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas() local
7489 if (NULL == areas) { in setFocusAreas()
7493 memset(areas, 0, sizeof(cam_area_t) * m_pCapability->max_num_focus_areas); in setFocusAreas()
7497 areas, in setFocusAreas()
7500 free(areas); in setFocusAreas()
7504 if (validateCameraAreas(areas, num_areas_found) == false) { in setFocusAreas()
7506 free(areas); in setFocusAreas()
7515 areas[0].rect.left == 0 && in setFocusAreas()
7516 areas[0].rect.top == 0 && in setFocusAreas()
7517 areas[0].rect.width == 0 && in setFocusAreas()
[all …]
DQCameraParameters.h919 bool validateCameraAreas(cam_area_t *areas, int num_areas);