|
|
|
|
@ -758,8 +758,14 @@ void PlatformData::getCameraInfo(int cameraId, struct camera_info * info)
|
|
|
|
|
appendTags(staticMeta,ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS,RK_CONTROL_AIQ_SATURATION);
|
|
|
|
|
appendTags(staticMeta,ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS,RK_CONTROL_AIQ_SATURATION);
|
|
|
|
|
}
|
|
|
|
|
info->static_camera_characteristics = staticMeta.getAndLock();
|
|
|
|
|
staticMeta.unlock( info->static_camera_characteristics);
|
|
|
|
|
int degree = property_get_int32("vendor.hwc.orient.main", 0);
|
|
|
|
|
if (info->orientation == 0 && degree == 270) {
|
|
|
|
|
info->orientation = degree;
|
|
|
|
|
staticMeta.update(ANDROID_SENSOR_ORIENTATION, &info->orientation, 1);
|
|
|
|
|
ALOGD("camera %d orientation updated to %d\n", cameraId, info->orientation);
|
|
|
|
|
}
|
|
|
|
|
info->static_camera_characteristics = staticMeta.getAndLock();
|
|
|
|
|
staticMeta.unlock( info->static_camera_characteristics);
|
|
|
|
|
#else
|
|
|
|
|
info->static_camera_characteristics = getStaticMetadata(cameraId);
|
|
|
|
|
#endif
|
|
|
|
|
|