Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-libcamera: Commit

hardware/libcamera


Commit MetaInfo

Révisionc55e86fd8247028a6e326767eed04a458c51ccd4 (tree)
l'heure2019-02-26 19:01:40
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

Fix implicit conversion from 'double' to 'int'

These parameters should be float.

Change Summary

Modification

--- a/CameraHardware.cpp
+++ b/CameraHardware.cpp
@@ -960,9 +960,9 @@ void CameraHardware::initDefaultParameters()
960960 p.set(CameraParameters::KEY_ZOOM_SUPPORTED, "false");
961961
962962 // missing parameters for Camera2
963- p.set(CameraParameters::KEY_FOCAL_LENGTH, 4.31);
964- p.set(CameraParameters::KEY_HORIZONTAL_VIEW_ANGLE, 90);
965- p.set(CameraParameters::KEY_VERTICAL_VIEW_ANGLE, 90);
963+ p.setFloat(CameraParameters::KEY_FOCAL_LENGTH, 4.31);
964+ p.setFloat(CameraParameters::KEY_HORIZONTAL_VIEW_ANGLE, 90);
965+ p.setFloat(CameraParameters::KEY_VERTICAL_VIEW_ANGLE, 90);
966966 p.set(CameraParameters::KEY_SUPPORTED_JPEG_THUMBNAIL_SIZES, "640x480,0x0");
967967 p.set(CameraParameters::KEY_EXPOSURE_COMPENSATION, "6");
968968 p.set(CameraParameters::KEY_EXPOSURE_COMPENSATION_STEP, "0.5");
Afficher sur ancien navigateur de dépôt.