Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
{
......
if (ptr != NULL) {
ptr++;
camInfoTmp[cam_cnt&0x01].facing_info.orientation = atoi(ptr);
} else {
ALOGE("null");
camInfoTmp[cam_cnt&0x01].facing_info.orientation = 0;
}
......
}
OS: Android 6.0
Kernel: 3.10.92
HAL层修改:
通过修改orientation的值。
int camera_get_number_of_cameras(void){
......
if (ptr != NULL) {
ptr++;
camInfoTmp[cam_cnt&0x01].facing_info.orientation = atoi(ptr);
} else {
ALOGE("null");
camInfoTmp[cam_cnt&0x01].facing_info.orientation = 0;
}
......
}