From 949ed22ea607cb2ff9618dff560fa0055e481389 Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Fri, 10 Jan 2020 22:41:58 +0100 Subject: [PATCH] Release v2.6.1 (#744) --- README.md | 2 +- cameraview/build.gradle | 2 +- docs/_about/changelog.md | 64 ++++++++++++++++++++++++---------------- docs/_config.yml | 2 +- docs/css/colors.css | 6 ++-- 5 files changed, 44 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 4717206f..0a28177d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ CameraView is a well documented, high-level library that makes capturing picture addressing most of the common issues and needs, and still leaving you with flexibility where needed. ```groovy -api 'com.otaliastudios:cameraview:2.6.0' +api 'com.otaliastudios:cameraview:2.6.1' ``` - Fast & reliable diff --git a/cameraview/build.gradle b/cameraview/build.gradle index b09317ea..5b4ec368 100644 --- a/cameraview/build.gradle +++ b/cameraview/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' // Required by bintray -version = '2.6.0' +version = '2.6.1' group = 'com.otaliastudios' //region android dependencies diff --git a/docs/_about/changelog.md b/docs/_about/changelog.md index 1e3bb8fb..b8522c8a 100644 --- a/docs/_about/changelog.md +++ b/docs/_about/changelog.md @@ -9,7 +9,16 @@ New versions are released through GitHub, so the reference page is the [GitHub R > Starting from 2.4.0, you can now [support development](https://github.com/sponsors/natario1) through the GitHub Sponsors program. Companies can share a tiny part of their revenue and get private support hours in return. Thanks! -## v2.6.0 +##### v2.6.1 + +- [Video] New: `takeVideo(FileDescriptor)` for file descriptors, thanks to [@sewar][sewar] ([#732][732]) +- [Video] Improvement: fixed "no encoder found" issues for some devices ([#741][741]) +- [Camera2, Metering] Improvement: increased metering timeout for touch metering ([#741][741]) +- [Camera2, Metering] Improvement: extended touch metering to LEGACY devices ([#741][741]) + + + +### v2.6.0 - [Metering] New: `startAutoFocus(RectF)` will start 3A metering to a given rect instead of a spot ([#724][724]) - [Permissions] New: `app:cameraRequestPermissions` flag to disable the automatic activity permission request ([#718][718]) @@ -19,7 +28,7 @@ Companies can share a tiny part of their revenue and get private support hours i -## v2.5.0 +### v2.5.0 - [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]) - [Camera2] New: support for constraining the frame processing size through `setFrameProcessingMaxWidth()` and `setFrameProcessingMaxHeight()`. This can improve processing performance ([#691][691]) @@ -42,7 +51,7 @@ This change greatly improved the FPS performance, which is what matters the most -## v2.4.0 +### v2.4.0 - [Camera2] New: support for `previewFrameRate`. Controls preview FPS, snapshot FPS, processor FPS, thanks to [@vaibhavbhandula][vaibhavbhandula] ([#653][653]) - [Camera1] New: support for `previewFrameRate` for Camera1 ([#661][661]) @@ -52,7 +61,7 @@ This change greatly improved the FPS performance, which is what matters the most -#### v2.3.1 +##### v2.3.1 - [Video] Improvement: better timing for `onVideoRecordingStart()` thanks to [@agrawalsuneet][agrawalsuneet] ([#632][632]) - [Video, Camera1] Fix: fixed video errors when starting on specific devices ([#617][617]) @@ -61,7 +70,7 @@ This change greatly improved the FPS performance, which is what matters the most -## v2.3.0 +### v2.3.0 - [Camera2, Metering] New: `startAutoFocus` is much more powerful and does 3A metering (AF, AE, AWB) ([#574][574]) - [Camera2, Metering] New: `setPictureMetering(boolean)` decides whether to do metering before `takePicture()`. Defaults to true to improve quality. ([#580][580]) @@ -77,7 +86,7 @@ This change greatly improved the FPS performance, which is what matters the most -## v2.2.0 +### v2.2.0 - [Real time filters] New: `SimpleFilter` class accepts a fragment shader in the constructor ([#552][552]) - [Real time filters] New: `MultiFilter` to apply more than one filter at the same time ([#559][559]) @@ -89,7 +98,7 @@ This change greatly improved the FPS performance, which is what matters the most -## v2.1.0 +### v2.1.0 This release adds experimental support for [real-time filters](../docs/filters) thanks to [@agrawalsuneet][agrawalsuneet]. Please read the documentation page for usage instructions. @@ -100,7 +109,7 @@ Please read the documentation page for usage instructions. -## v2.0.0 +### v2.0.0 - Fix: bug with picture recorder ([#521][521]) - Fix: video snapshots appearing black ([#528][528]) @@ -108,14 +117,14 @@ Please read the documentation page for usage instructions. -#### v2.0.0-rc2 +##### v2.0.0-rc2 - Fix: crashes when stopping video snapshots ([#513][513]) - Fix: dependencies missing, leading to runtime crashes ([#517][517]) -## v2.0.0-rc1 +### v2.0.0-rc1 This is likely to be the last release before v2.0.0. @@ -129,7 +138,7 @@ This is likely to be the last release before v2.0.0. -#### v2.0.0-beta06 +##### v2.0.0-beta06 - New: Full featured Camera2 integration! Use `cameraExperimental="true"` and `cameraEngine="camera2"` to test this out. ([#490][490]) - Improvement: we now choose a video recording profile that is compatible with the chosen size. Should fix some video recording issues. ([#477][477]) @@ -145,7 +154,7 @@ If you were using `focusWithMarker`, you can [add back the old marker](../docs/m -#### v2.0.0-beta05 +##### v2.0.0-beta05 - Fixed `FrameProcessor` freeze and release behavior, was broken ([#431][431]) - New: new api `setAutoFocusResetDelay` to control the delay to reset the focus after autofocus was performed, thanks to [@cneuwirt][cneuwirt] ([#435][435]) @@ -154,21 +163,21 @@ If you were using `focusWithMarker`, you can [add back the old marker](../docs/m -#### v2.0.0-beta04 +##### v2.0.0-beta04 - Renames setPreviewSize to setPreviewStreamSize (previewSize suggests it is related to the view size but it's not) ([#393][393]) - Added new APIs `setSnapshotMaxWidth` and `setSnapshotMaxHeight` ([#393][393]). You can now have a good looking preview but still take low-res snapshots using these snapshot constraints. Before this, the two sizes were coupled. -#### v2.0.0-beta03 +##### v2.0.0-beta03 - Fixed a few bugs ([#392][392]) - Important fixes to video snapshot recording ([#374][374]) -#### v2.0.0-beta02 +##### v2.0.0-beta02 - Fixed important bugs ([#356][356]) - Picture snapshots are now flipped when front camera is used ([#360][360]) @@ -176,11 +185,11 @@ If you were using `focusWithMarker`, you can [add back the old marker](../docs/m -## v2.0.0-beta01 +### v2.0.0-beta01 This is the first beta release. For changes with respect to v1, please take a look at the [migration guide](../extra/v1-migration-guide). -#### v1.6.1 +##### v1.6.1 This is the last release before v2. @@ -191,7 +200,7 @@ This is the last release before v2. -## v1.6.0 +### v1.6.0 - Lifecycle support. Use `setLifecycleOwner` instead of calling start, stop and destroy ([#265][265]) - Enhancement: provide synchronous version of CameraUtils.decodeBitmap thanks to [@athornz][athornz] ([#224][224]) @@ -202,7 +211,7 @@ This is the last release before v2. -#### v1.5.1 +##### v1.5.1 - Bug: byte array length for Frames was incorrect thanks to [@ssakhavi][ssakhavi] ([#205][205]) - Bug: gestures were crashing in some conditions ([#222][222]) @@ -211,7 +220,7 @@ This is the last release before v2. -## v1.5.0 +### v1.5.0 - New: set encoder for video recordings with `cameraVideoCodec` ([#174][174]) - New: set max duration for videos with `cameraVideoMaxDuration` ([#172][172]) @@ -221,7 +230,7 @@ This is the last release before v2. -#### v1.4.2 +##### v1.4.2 - Add prefix to XML resources so they don't collide, thanks to [@RocketRider][RocketRider] ([#162][162]) - Add `videoMaxSize` API and XML attribute, to set max size video in bytes, thanks to [@chaitanyaraghav][chaitanyaraghav] ([#104][104]) @@ -230,7 +239,7 @@ This is the last release before v2. -#### v1.4.1 +##### v1.4.1 - Fixed a bug that would flip the front camera preview on some devices ([#112][112]) - Two new `CameraOptions` APIs: `o.getSupportedPictureSizes()` and `o.getSupportedPictureAspectRatios()` ([#101][101]) @@ -243,7 +252,7 @@ This is the last release before v2. -## v1.4.0 +### v1.4.0 - CameraView is now completely thread-safe. All actions are asynchronous. ([#97][97]) This has some breaking drawbacks. Specifically, the `get` methods (e.g., `getWhiteBalance`) might @@ -262,7 +271,7 @@ This is the last release before v2. -#### v1.3.2 +##### v1.3.2 - Fixed a memory leak thanks to [@andrewmunn][andrewmunn] ([#92][92]) - Reduced memory usage when using cropOutput thanks to [@RobertoMorelos][RobertoMorelos] ([#93][93]) @@ -270,14 +279,14 @@ This is the last release before v2. -#### v1.3.1 +##### v1.3.1 - Fixed a bug that would make setFacing and other APIs freeze the camera ([#86][86]) - Fixed ConcurrentModificationExceptions during CameraListener callbacks ([#88][88]) -## v1.3.0 +### v1.3.0 - Ability to inject frame processors to do your own visual tasks (barcodes, facial recognition etc.) ([#82][82]) - Ability to inject external loggers (e.g. Crashlytics) to listen for internal logging events ([#80][80]) @@ -306,6 +315,7 @@ This is the last release before v2. [agrawalsuneet]: https://github.com/agrawalsuneet [RAN3000]: https://github.com/RAN3000 [vaibhavbhandula]: https://github.com/vaibhavbhandula +[sewar]: https://github.com/sewar [73]: https://github.com/natario1/CameraView/pull/73 @@ -391,3 +401,5 @@ This is the last release before v2. [716]: https://github.com/natario1/CameraView/pull/716 [718]: https://github.com/natario1/CameraView/pull/718 [724]: https://github.com/natario1/CameraView/pull/724 +[732]: https://github.com/natario1/CameraView/pull/732 +[741]: https://github.com/natario1/CameraView/pull/741 diff --git a/docs/_config.yml b/docs/_config.yml index 2abdd50e..8f11dfeb 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -12,7 +12,7 @@ google_analytics_id: 'UA-155077779-1' google_site_verification: '4x49i17ABIrSvUl52SeL0-t0341aTnWWaC62-FYCRT4' github: [metadata] # TODO What's this? github_repo: CameraView -github_version: 2.6.0 +github_version: 2.6.1 github_branch: master baseurl: '/CameraView' # Keep as an empty string if served up at the root collections: diff --git a/docs/css/colors.css b/docs/css/colors.css index 3a852c42..d77d5bd4 100644 --- a/docs/css/colors.css +++ b/docs/css/colors.css @@ -1,7 +1,7 @@ :root { - --color-primary: #f76c16; - --color-primary-active: #e75c16; - --color-primary-hover: #d74c16; + --color-primary: #e75016; + --color-primary-active: #c73016; + --color-primary-hover: #d74016; --color-secondary: #f7a816; --color-accent: #0e95e3; --color-accent-light: #f5fcff;