Releases: skgmn/CameraXX
Releases · skgmn/CameraXX
v0.7.1
v0.7.0
cameraxx
- Added
ImageAnalysis.analyze<T>(suspend (ImageProxy) -> T): Flow<T>to manage the lifecycle ofImageProxybetter. - Added some utility functions:
ImageProxy.toByteArray(),ImageProxy.toBitmap() - Changed some return types
- Changed the return type of
CameraInfo.getTorchState()fromFlow<Int>toStateFlow<Int?> - Changed the return type of
CameraInfo.getZoomState()fromFlow<ZoomState>toStateFlow<ZoomState?> - Changed the return type of
PreviewView.listenPreviewStreamState()fromFlow<PreviewView.StreamState>toStateFlow<PreviewView.StreamState?>
- Changed the return type of
- Fixed ConcurrentModificationException for
ImageAnalysis.analyze()(but now it's deprecated)
v0.6.1
v0.6.0
cameraxx
- Published to Maven Central
- Behavior changes of
ImageAnalysis.analyze()- Previously it used
shareIninside the method to provide a convenient way to be collected from many collectors, but it's now caller's responsibility. I misunderstood the behavior ofshareIn. - Now it automatically closes undelivered
ImageProxyinstances.
- Previously it used
- Add some kdocs
- Now provides sources artifact
cameraxx-bindingadapter
- Published to Maven Central
- Add some kdocs
- Now provides sources artifact
v0.5.0
cameraxx
- Added
PreviewView.listenPreviewStreamState() - Changed to use
org.jetbrains.kotlinx:kotlinx-coroutines-guavainstead of implementing myself
cameraxx-composable
- Added focus metering feature
- Added
PreviewStreamState - Migrated from
FlowtoStatefor all state classes - Optimizations to reduce recompositions
- Moved the
pinchZoomEnabledparameter intoZoomState
cameraxx-bindingadapter
- Removed
app:zoomRatio,app:torchOnbinding adapter attributes - Now
Cameracan be retrieved throughapp:onCameraRetrieved
v0.4.0
cameraxx
- changed
Context.getProcessCameraProvider()not to cancelListenableFutureeven though coroutine is cancelled
cameraxx-compose
- add parameter
scaleType - add parameter
implementationMode - support pinch zoom
- add
ZoomStatefor zoom - add
TorchStatefor torch
cameraxx-bindingadapter
- add
app:zoomRatioas two-way binding attribute - add
app:torchOnas two-way binding attribute - add
app:onCameraInfoRetrievedto get camera info