Mattia Iavarone
0494477c3b
Reset flags when stopping ( #173 )
7 years ago
Mattia Iavarone
c1973b0d71
Add setVideoMaxDuration() API ( #172 )
...
* Add setVideoMaxDuration() API
* Better tests
7 years ago
Mattia Iavarone
9b8cc16d96
Add discrete granularity to pinch and scroll events ( #170 )
...
* Add discrete granularity to pinch and scroll events
* Better tests
7 years ago
Mattia Iavarone
ef1a4ecc65
Check focus area max number before applying ( #167 )
7 years ago
Michael Möbius
9bb5a7c289
#160 Add prefix for resources ( #162 )
7 years ago
Viktar Patotski
e3abae9d7b
Fix camera mute ( #143 )
...
* mute camera in case if it's supported and required
* applyPlaySound properly
* fix compilation error
* fix comments
* fix comments 2
* add integration test for setPlaySounds
* pass mPlaySoundsTask
7 years ago
YeungKC
2dd19121fc
Fix preview size selection ( #133 )
...
matchRatio may get unexpected size when implementation of getSupportedPreviewSizes() decides to return values in a non-descending order.
7 years ago
chaitanyaraghav
1bd1816919
Max video file size ( #104 )
...
* Added a maximum file size for videos
* Revereted changes to the onVideoTaken callback signature
* Renamed isRecordingVideo, added xml attribute for video max size and updated the documentation
7 years ago
Mattia Iavarone
ced60586c2
Change the offset computation for front cameras ( #112 )
7 years ago
Mattia Iavarone
3bc6d96ac3
Add base Control class, add easy setters and CameraOptions APIs ( #105 )
7 years ago
Mattia Iavarone
33162f0e31
Improve CameraOptions APIs, cleanup ( #101 )
...
* Improve CameraOptions APIs, cleanup
* Test flip
* Remove unwanted API
7 years ago
Mattia Iavarone
dcf5ef4120
Option to choose the picture output size ( #99 )
...
* Add SizeSelectors and tests
* Implement SizeSelectors in CameraController
* XML attrs, improve AspectRatio cache
* AspectRatio tests
* Flip sizes before passing to selectors
* Add README info
* Fix preview sizing bug
* Nits
* Fix #98
7 years ago
Mattia Iavarone
6b9affc435
Make CameraView thread-safe ( #97 )
...
* Make CameraController fully async, fix shutter sounds, tests
* Schedule everything to the same handler
* Ignore integration tests in travis
* Add basic error handling
* Revert useless logs
7 years ago
Mattia Iavarone
a31dd1d57c
Recycle buffers and Frame instances ( #94 )
7 years ago
Roberto Morelos
04cf364b49
Reduced memory usage by recycling the bitmap ( #93 )
7 years ago
Andrew Munn
f3317ad4ee
Remove UncaughtExceptionHandler from CameraController in stopImmediately ( #92 )
...
* Fixes #90 Remove UncaughtExceptionHandler from CameraController in stopImmediately
* Move setUncaughtExceptionHandler(null) before onStop()
7 years ago
Mattia Iavarone
011754203c
Avoid ConcurrentModificationExceptions in listeners ( #88 )
7 years ago
Mattia Iavarone
85dc1a05d4
Release PreviewCallback ( #86 )
7 years ago
Mattia Iavarone
2685f47472
Improve CameraUtils.decodeBitmap ( #83 )
7 years ago
Mattia Iavarone
e40f93acfb
Frame processors ( #82 )
...
* Create the Frame class
* Implement callback dispatcher
* Dispatch actual preview frames
* Add docs
* Readme nits
* Don't leak processors
* Rename clear() to release()
* Add preview format and Size
* Readme nits again
7 years ago
Mattia Iavarone
399e0e4d76
Inject external loggers ( #80 )
...
* Improve CameraLogger, add tests
* Add log docs
7 years ago
Mattia Iavarone
dbc58af510
Don't act on Camera if it is in the middle of a stop ( #50 )
...
* Don't act on Camera if it is in the middle of a stop
* Ensure no issues if scheduled for stop
7 years ago
Mattia Iavarone
98855d0976
Ensure Grid and focus markers are shown ( #62 )
7 years ago
Mattia Iavarone
b9f0f27d8d
Small changes
7 years ago
Johnson145
46b8e54155
Fix javadoc errors ( #55 )
7 years ago
Mattia Iavarone
b1d183a714
Fix a hardware acceleration bug, disable SurfaceViewPreview features ( #54 )
...
* Layout changes
* SurfaceView onSurfaceCreated is too early. Fix
* Add logs
* Refactor some classes, fix hardware acceleration bug, disable cropping for SurfaceView
* Update README with known limitations
7 years ago
Mattia Iavarone
f8d38e3c8c
Add playSounds support ( #43 )
7 years ago
Mattia Iavarone
cf3bfc1ed0
New tests, add CameraController.STATE ( #37 )
...
* Add set/get parameters tests
* CameraCallbacks tests
* Nits
* Nits 2
* Nits 3
* Nits 4
* CameraController integration tests
* Fix some bugs
* Add CameraController.STATE, fix CameraView.isStarted()
* Fix old tests
* Video and focus tests
* Remove video test, fails on Travis
* Add picture tests
* Remove other video test
* Add audio tests
* new travis.yml
* WorkerHandler changes
* Better GridLinesLayoutTest
* Try add logcat to travis build
* Debug failing test
* Add logs
* Grant permissions, bump tests to N
* Add wake locks
* Add wake lock permission
* Remove integration tests
* Change view matcher
* Refinements
7 years ago
Mattia Iavarone
0a8e2f3de7
Dont require AUDIO permission if audio is OFF ( #39 )
7 years ago
Andrew
aeb0083352
Added audio on/off feature for video recording ( #33 )
7 years ago
Mattia Iavarone
200816ca84
Use SurfaceViewPreview when hardware acceleration is off ( #36 )
7 years ago
Mattia Iavarone
66077c1eaa
Improve coverage ( #22 )
...
* New tests
* Try adjust codecov
* CropHelper and CameraUtils tests
* Set target coverage to 40%
* OrientationHelperTest
* Preview tests
* Fix SurfaceView
* Introduce Task for async tests
* Gesture tests
* Improve Gesture Tests
* Add wake lock
* Fix view size
* Add build info logs
* Revert info
* Try fix bug
* Test timeout
* Try fix tests
* Fix TextureView tests if not hardware accelerated
* Fix bug
7 years ago
Mattia Iavarone
93b1f718db
Fix crop center bug ( #30 )
7 years ago
Mattia Iavarone
cce8d6e621
WorkerHandler survives config changes ( #29 )
...
* Weak cache for threads
* Add logs
* Fix manifest
7 years ago
Mattia Iavarone
53bb5baf42
Add logger for debugging ( #25 )
...
* Add logger for debugging
* Update CameraLogger.java
* Fix #27
* More log messages
7 years ago
Andrew
51f90275f5
Fixed bug with preview stretch on orientation change ( #23 )
...
* #20 Fixed bug with preview stretch on orientation change
* Changed OrientationHelper
7 years ago
Mattia Iavarone
41f9f51ef9
Add instrumentation tests and codecov support ( #18 )
...
* Add instrumentation tests
* Run androidTests on api 22
* Fix lint errors
* Nits
* Add codecov support
* Shield
7 years ago
Mattia Iavarone
0a1d4d709d
Add some unit tests
7 years ago
Mattia Iavarone
57d234c05b
Improve threading, add CameraOptions.supports() ( #13 )
...
* abstract WorkerHandler class, cleanup
* Start and stop in our thread
* Simplify Camera1 threading
* Add CameraOptions.supports() shorthands
* Improve supports() shorthands
* Rearrange orientation callbacks
7 years ago
Mattia Iavarone
cbac776f91
HDR support ( #11 )
7 years ago
Mattia Iavarone
4e5c772902
Fix location bug, add setLocation(Location) ( #10 )
7 years ago
Mattia Iavarone
2fe72577aa
Fix bug with measuring behavior ( #8 )
...
* Code regions
* Fix bug with measuring behavior
7 years ago
Mattia Iavarone
f4868aefa6
Fix vertical scrolls, removed some logs ( #7 )
7 years ago
shtolik
400ade252f
Fix updating layout from wrong thread ( #1 )
7 years ago
Mattia Iavarone
db23050ee3
MediaActionSound support
7 years ago
Mattia Iavarone
89d1573717
Add onOrientationChanged listener
7 years ago
Mattia Iavarone
9d9e93e67d
Scroll gestures support, abstracting GestureLayout
7 years ago
Mattia Iavarone
455e3522e9
Move to package protected in some classes
7 years ago
Mattia Iavarone
e5ca52a8d7
Moved SessionType to enums, removed CameraConstants
7 years ago
Mattia Iavarone
b65e9e446d
Moved VideoQuality to enums
7 years ago