Open pyzahl opened 9 months ago
I am working on a new app to auto shoot Solar Eclipses... "SoFiMagic".
I have not found yet out how to adjust shutter speed and iso using this API.
I tried changing camera parameters but nothing is changed.
Update: I found hints in BetterManual for ISO setting.... But setting the ShutterSpeed still is an issue...
OK in case any one also needs this, finally:
private void setShutterSpeed(int sec, int frac) { final int shutterIndex = CameraUtilShutterSpeed.getShutterValueIndex(sec,frac); final int shutterDiff = shutterIndex - CameraUtilShutterSpeed.getShutterValueIndex(getCurrentShutterSpeed()); log("set ShutterSpeed " + String.valueOf(sec) + "/" + String.valueOf(frac) + "s" + " shutterIndexDiff:" + String.valueOf(shutterDiff)); if (shutterDiff != 0) cameraEx.adjustShutterSpeed(-shutterDiff); } private Pair<Integer, Integer> getCurrentShutterSpeed() { final Camera.Parameters params = cameraEx.getNormalCamera().getParameters(); final CameraEx.ParametersModifier paramsModifier = cameraEx.createParametersModifier(params); return paramsModifier.getShutterSpeed(); }
I am working on a new app to auto shoot Solar Eclipses... "SoFiMagic".
I have not found yet out how to adjust shutter speed and iso using this API.
I tried changing camera parameters but nothing is changed.
Update: I found hints in BetterManual for ISO setting.... But setting the ShutterSpeed still is an issue...
OK in case any one also needs this, finally: