Skip to content

Commit 097420a

Browse files
authored
Release v2.5.0 (#708)
1 parent e1721bb commit 097420a

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CameraView is a well documented, high-level library that makes capturing picture
2222
addressing most of the common issues and needs, and still leaving you with flexibility where needed.
2323

2424
```groovy
25-
api 'com.otaliastudios:cameraview:2.4.0'
25+
api 'com.otaliastudios:cameraview:2.5.0'
2626
```
2727

2828
- Fast & reliable

cameraview/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
33
apply plugin: 'com.jfrog.bintray'
44

55
// Required by bintray
6-
version = '2.4.0'
6+
version = '2.5.0'
77
group = 'com.otaliastudios'
88

99
//region android dependencies

docs/_posts/2018-12-20-changelog.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,29 @@ New versions are released through GitHub, so the reference page is the [GitHub R
1111
Starting from 2.4.0, you can now [support development](https://github.com/sponsors/natario1) through the GitHub Sponsors program.
1212
Companies can share a tiny part of their revenue and get private support hours in return. Thanks!
1313

14+
## v2.5.0
15+
16+
- [*Camera2*] New: support for RAW pictures with new APIs `setPictureFormat()` and `CameraOptions.getSupportedPictureFormats()`. Contains a **breaking change**: `PictureResult.getFormat()` is not an integer anymore but rather a `PictureFormat`. This API had no real purpose so this might not affect you ([#691][691])
17+
- [*Camera2*] New: support for constraining the frame processing size through `setFrameProcessingMaxWidth()` and `setFrameProcessingMaxHeight()`. This can improve processing performance ([#691][691])
18+
- [*Camera2*] New: support for choosing the frame processing format through `setFrameProcessingFormat()` and `CameraOptions.getSupportedFrameProcessingFormats()` ([#691][691])
19+
- [*Camera2*] Improvement: Frame processing FPS for Camera2 is now smooth and typically better than Camera1. This required some **breaking changes** (see below) ([#691][691])
20+
- [*Camera1, Camera2*] Improvement: improved internal threading ([#697][697])
21+
- [*Camera1, Camera2*] Improvement: improvements to stability and edge cases behavior ([#696][696])
22+
- [*Real time filters*] Change: filters do not need the experimental flag anymore ([#691][691])
23+
24+
The new frame processing approach will force you to update your code, because `Frame.getData()` is
25+
not a a byte[] anymore. The class of this object now depends on the engine being used. You can use
26+
`frame.getDataClass()` (or instanceof) to check.
27+
28+
If you are using the Camera1 engine, you will still receive byte arrays, so you can just cast `frame.getData()` to
29+
`byte[]`, assuming it's not done already by the compiler.
30+
31+
If you are using the experimental Camera2 engine, you will receive `android.media.Image`s instead.
32+
This object will likely be accepted by frame processing libraries, and also offers access to raw byte data.
33+
This change greatly improved the FPS performance, which is what matters the most at the library level.
34+
35+
https://github.com/natario1/CameraView/compare/v2.4.0...v2.5.0
36+
1437
## v2.4.0
1538

1639
- [*Camera2*] New: support for `previewFrameRate`. Controls preview FPS, snapshot FPS, processor FPS, thanks to [@vaibhavbhandula][vaibhavbhandula] ([#653][653])
@@ -353,3 +376,7 @@ https://github.com/natario1/CameraView/compare/v1.2.3...v1.3.0
353376
[651]: https://github.com/natario1/CameraView/pull/651
354377
[653]: https://github.com/natario1/CameraView/pull/653
355378
[661]: https://github.com/natario1/CameraView/pull/661
379+
[691]: https://github.com/natario1/CameraView/pull/691
380+
[696]: https://github.com/natario1/CameraView/pull/696
381+
[697]: https://github.com/natario1/CameraView/pull/697
382+
[704]: https://github.com/natario1/CameraView/pull/704

docs/_posts/2018-12-20-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ allprojects {
2424
Then simply download the latest version:
2525

2626
```groovy
27-
api 'com.otaliastudios:cameraview:2.4.0'
27+
api 'com.otaliastudios:cameraview:2.5.0'
2828
```
2929

3030
No other configuration steps are needed.

0 commit comments

Comments
 (0)