diff --git a/README.md b/README.md index fb313dd7..ba8ae887 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ Using CameraView is extremely simple: app:cameraFilter="@string/real_time_filter" app:cameraPictureMetering="true|false" app:cameraPictureSnapshotMetering="false|true" + app:cameraPictureFormat="jpeg|dng" app:cameraExperimental="false|true"> diff --git a/docs/_posts/2018-12-20-controls.md b/docs/_posts/2018-12-20-controls.md index 281d4e85..ca25dea9 100644 --- a/docs/_posts/2018-12-20-controls.md +++ b/docs/_posts/2018-12-20-controls.md @@ -25,6 +25,7 @@ or `CameraOptions.supports(Control)` to see if it is supported. app:cameraFlash="off|on|auto|torch" app:cameraWhiteBalance="auto|incandescent|fluorescent|daylight|cloudy" app:cameraHdr="off|on" + app:cameraPictureFormat="jpeg|dng" app:cameraAudio="on|off|mono|stereo" app:cameraAudioBitRate="0" app:cameraVideoCodec="deviceDefault|h263|h264" @@ -100,6 +101,19 @@ cameraView.setHdr(Hdr.OFF); cameraView.setHdr(Hdr.ON); ``` +##### cameraPictureFormat + +The format for pictures taken with `takePicture()`. Does not apply to picture snapshots taken +with `takePictureSnapshot()`. The `JPEG` value is always supported, while for other values +support might change depending on the engine and the device sensor. + +The available values are exposed through the `CameraOptions` object. + +```java +cameraView.setPictureFormat(PictureFormat.JPEG); +cameraView.setPictureFormat(PictureFormat.DNG); +``` + ##### cameraAudio Turns on or off audio stream while recording videos.