summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util
Commit message (Collapse)AuthorAgeFilesLines
* Snap: check tags before using themcodeworkx2018-01-271-1/+1
| | | | | | | MessageQueue-JNI: java.lang.IllegalArgumentException: Could not find tag for key 'org.codeaurora.qcamera3.saturation.use_saturation') Change-Id: Ia42c67552f9d4574e5f86af2ac5aea853198d0ed
* Snapdragon Camera: Use consistent API for preview fps resetEmilian Peev2018-01-271-0/+9
| | | | | | | | | | Instead of using preview fps range API during preview framerate reset use the fixed fps API. This is to avoid any inconsistent behavior that can be triggered when using both APIs from MediaRecorder and Snapdragon application side. Change-Id: Ib5251d8ea4d697db9bdea4e5ebf20606b286f54f
* Snap: detect and use Camera2 if availablecodeworkx2018-01-262-6/+26
| | | | | | Also add overlay option to enable support for Camera2 to retain current behaviour. Change-Id: I20939e33f4bb687e4abea11bbcdb9bf246b156e4
* CameraNext: dynamically generate available photo resolutionsWilhelm Fitzpatrick2018-01-261-0/+45
| | | | | | | | | | Instead of depending on a large matching table, generated the list of picture sizes to show to the user directly from the supported list returned by the camera. The list is filtered to remove uselessly small resolutions on modern devices, to group resolutions by aspect ratio, and to filter out fairly similar sizes. Change-Id: I47a67a89786543baec133cf7e71df9819793ebac
* SnapdragonCamera: Fix overly-aggressive auto rotationSultanxda2018-01-261-2/+2
| | | | Change-Id: I534c0e36ac826b1d46befe99182bfbfb3b0f22da
* Snap: Support for HTC's HDR modeSteve Kondik2018-01-261-2/+11
| | | | | | | | | | * HDR was never actually working on CM because we did not instruct the camera to take all exposures. The HAL tells us that we'll get one JPEG, but we should snap 3 times. We handle this behavior in the framework now, but we should honor the num-jpegs-per-shutter value in the JPEG callback. Change-Id: I7124bf08985ae23b21ac4e294fb889ac4106946b
* SnapdragonCamera: Fix incorrect viewfinder ratio for 13.1MP shotsSultanxda2018-01-261-1/+1
| | | | | | Set the aspect tolerance to 0.02 to compensate for 13.1MP (4208x3120) shots. 13.1MP will now be properly registered as a 4/3 resolution when the viewfinder ratio is calculated. Change-Id: I41540a0d5fbe11f59d776a6e70e82baa463fff59
* Snap: add support for mw_continuous-picture focus modecodeworkx2018-01-261-0/+1
| | | | Change-Id: If165370b52d7454c69e2cdeb9d837d049010b0e8
* add support for luminance-condition parametercodeworkx2018-01-261-0/+13
| | | | Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482
* Camera: Cleanup hardware key handlingMichael Bestas2018-01-261-0/+12
| | | | | | | | | | | | | | | | | * Fix power shutter behaviour in camcorder mode * Disable volume change while in panorama mode, volume buttons should only handle camera operations while in the camera * Add camera/power/volume key shutter handling in panorama mode On devices with a hardware camera key: * Disable power & volume shutter features * Volume buttons control the zoom On devices without a hardware camera key: * When power shutter is disabled, volume buttons control the shutter (like AOSP) * When power shutter is enabled, volume buttons control the zoom Change-Id: I141946d5b6f5aec8b1e9a9f99270d30295596079
* Camera: fix preview for landscape devicesPawit Pornkitprasan2018-01-261-0/+6
| | | | | | | | | | Landscape devices have broken preview because PORTRAIT mode is being abused to check for screen rotation. Use proper rotation check to fix. Ported from cm-10.2 Change-Id: I75588cbce9843e180e4be7591f6a43bcec788506
* camera: Cleanup and compatibility fixesSteve Kondik2018-01-261-0/+8
| | | | | | | * Don't crash for unavailable integer parameters * Kill logspam Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc
* camera: Add parameter debugging supportSteve Kondik2018-01-261-11/+27
| | | | Change-Id: Ifc1653f0046af169ba36d94796b4d9a3055c6798
* Revert "SnapdragonCamera: Forbid volume key can take picture"Michael Bestas2018-01-261-4/+0
| | | | | | This reverts commit e73e717b8be1ba834161914af4debc61c1feb8be. Change-Id: Iee719f34f6016f89ec0bb1c078bfa25c2f718436
* SnapdragonCamera: Rename propertyWeijie Wang2017-07-282-3/+45
| | | | | | Rename proprerty Change-Id: I1f1da2d46bde3221e265934e31897ad358c631f2
* SnapdragonCamera: Move property to PersistUtilWeijie Wang2017-07-211-0/+106
| | | | | | Move property to PersistUtil Change-Id: I0735d8215ba302ef4c632d6a15ad95a04cd259a0
* Merge "SnapdragonCamera: Add setprop WIDTHxHEIGHT for preview size support" ↵Camera Software Integration2017-07-201-4/+16
|\ | | | | | | into camera.lnx.3.0-dev
| * SnapdragonCamera: Add setprop WIDTHxHEIGHT for preview size supportqimengp2017-07-191-4/+16
| | | | | | | | | | | | | | Modify the setprop from set int to string to adapt more requirement Change-Id: If961869951c20125cafa7d61ded74f8166faaa80 CRs-Fixed: 2070387
* | Merge "SnapdragonCamera: Add vendor tag util" into camera.lnx.3.0-devCamera Software Integration2017-07-201-0/+134
|\ \ | |/ |/|
| * SnapdragonCamera: Add vendor tag utilWeijie Wang2017-07-131-0/+134
| | | | | | | | | | | | Check if the tag is available before apply the settings Change-Id: Ic0242b8aa7711ad230f3aba9e30d5da61d188fe5
* | SnapdragonCamera: Pass device mount orientation to Clearsight JNImingwax2017-07-041-5/+26
|/ | | | | | | | | 1. Add persist system property to config device mount orientation 2. Pass device mount orientation to Clearsight JNI 3. Recalculate the size of the buffer YUV. CRs-Fixed: 2039320 Change-Id: Ie3c13ccd3d261df4cad310aa6235f548263b3ca1
* SnapdragonCamera: Rename property nameweijiew2017-05-111-13/+14
| | | | | | | | As app can't read property "persist.sys.camera.xxxx" with permission denied on Android O, so rename "persist.sys.camera.xxx" to "persist.vendor.camera.xxx" Change-Id: Ib2a3d193ca56b51ba1a4f3cea9cf933f8780e78c CRs-Fixed: 2027214
* SnapdragonCamera: Temporary compilation fixesCamera Software Integration2017-05-081-6/+6
| | | | | | | Temporary compilation fixes for the Merge tag 'camera.lnx.2.0-00010' into camera.lnx.3.0-dev Change-Id: I539da9948500125a7835dea63cfb2db1c35e1fcd
* Merge tag 'camera.lnx.2.0-00010' into camera.lnx.3.0-devCamera Software Integration2017-05-082-1/+269
|\ | | | | | | | | | | Merge tag 'camera.lnx.2.0-00010' into camera.lnx.3.0-dev Change-Id: I7e8e12e01f16093e1bda744de511c29e1ec26570
| * Merge "SnapdragonCamera: add method nativeConfigureStillmore" into ↵Linux Build Service Account2017-04-251-3/+33
| |\ | | | | | | | | | camera.lnx.1.0-dev.1.0
| | * SnapdragonCamera: add method nativeConfigureStillmoremingwax2017-04-241-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Add the method nativeConfigureStillMore, and can set the parameter: brColor、brIntensity、smoothingIntensity. (2) Add custom properties to control some of the parameters of stillmore. CRs-Fixed: 2013253 Change-Id: I62871f7d27f8f8c16514378bd06e945099c677e5
| * | Merge "SnapdragonCamera: FR40621 ClearSight/DDM integrate ClearSight/DDM, ↵Linux Build Service Account2017-04-241-0/+230
| |\ \ | | |/ | |/| | | | integrate Clear Sight in Camera Framework" into camera.lnx.1.0-dev.1.0
| | * SnapdragonCamera: FR40621 ClearSight/DDM integrateweijiew2017-03-081-0/+230
| | | | | | | | | | | | | | | | | | | | | ClearSight/DDM, integrate Clear Sight in Camera Framework CRs-Fixed: 1108837 Change-Id: Ibde73b15c9361294eb2e0e05967763005a4546e0
| * | SnapdragonCamera: Add setprop to control cancel touch AF delayqimengp2017-03-271-0/+6
| | | | | | | | | | | | | | | | | | | | | persist.camera.focus_delay XXX, default is 50000 ms Change-Id: Id15b308efb20e797bed2d9956f12e332af4e6b54 CRs-Fixed: 1114799
* | | SnapdragonCamera: Rename property nameweijiew2017-04-201-7/+7
|/ / | | | | | | | | | | | | | | As app can't read property "persist.camera.xxxx" with permission denied on Android O, so rename "persist.camera.xxx" to "persist.sys.camera.xxx" Change-Id: I808a96919a039916c9274dcf01b9ff174e096326 CRs-Fixed: 2027214
* / SnapdragonCamera: Fix ghosting when non-zsl in VGA/QVGA sizemingwax2017-03-121-1/+10
|/ | | | | | | | | | (1) Increase the size of the preivewSize according to the ratio of the pictureSize. (2) Change the mVideoSnapshotSize from the mPictureSize to mVideoSize. (3) Reconstruction the getMaxPictureSizeLessThan4K method. CRs-Fixed: 1116242 Change-Id: Ic7dbab23fd0ee083cd38818fa39f4893de7c1d24
* SnapdragonCamera: Fix a green line in BestPicture and Ubifocusmingwax2017-02-221-0/+10
| | | | | | | | When mStride > mWidth, use the whole yuv bytebuffer to save JPG. Add properties to control whether to print log. CRs-Fixed: 1101620 Change-Id: I18cd27de8be542fc9440be6071ee55149b598ac5
* SnapdragonCamera: Fix Can't edit UbiFocus mode picture when screen locked.pezhan2017-01-121-1/+5
| | | | | | | | | | | | | | | | | When enter the RefocusActivity, the keyguard will cover this activity. Add flags if it's SecureCamera and UbiFocus mode when enter RefocusActivity, the keyguard will dismiss. RefocusActivity will display normally. Add display the thumbnail when click shutter button under SecureCamera and UbiFocus mode also it is Refocus. Add display the thumbnail when when back from RefocusActivity under SecureCamera and UbiFocus mode also it is Refocus. Change-Id: I158d77b6c9132162a5414987dc4f5d61cc4ef31d CRs-Fixed: 1108273
* SnapdragonCamera:Fix [FR35432] BestPicture function lost.pezhan2017-01-111-0/+37
| | | | | | | | | | | | | | | | | | | | Add dialog when saving selected BestPicture. Add "X" icon display beside camcorder icon to exit BestPicture mode. Add multiple selections(Three dots beside SAVE)and "X" icon. Add dialog when select "X" icon. Add overflow menu with multiple selections to chose "Save All" or "Delete All" when click overflow menu. Add click for "Save All" to save all 1o pictures. Add click for "Delete All" to pop delete all dialog. Change-Id: I59cdad0f77fde616ea34db4d9d186d322285e394 CRs-Fixed: 1102814, 1102807, 1099428
* SnapdragonCamera: HFR Crash on 720 120FPS with Camera 2yingrenw2016-12-151-0/+94
| | | | | | | | | | | | Description: Solve the HFR Crash on 720 120FPS with Camera 2 when recording. Nullpointer crash. CaptureRequest native data copy don't have the tag data. Confirm the tag data can be copied. Change-Id: I745a09b789864db9cdbbe5cfcc8bcbc941e01bf3 CRs-Fixed: 1099749
* Merge "SnapdragonCamera: Fix camera can`t enter setting in pattern lock" ↵Camera Software Integration2016-11-151-0/+2
|\ | | | | | | into camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Fix camera can`t enter setting in pattern lockmingwax2016-11-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RootCause: Missing flag of WindowManager.LayoutParames in SettingsActivity.java and SceneModeActivity.java. Solution: (1) Add windowManager.LayoutParams.FLAG_SHOW_WHEN _LOCKED in SettingsActivity.java and SceneModeActivity.java. (2) Change SettingsManager`s single instance, and guarantee SettingsManager only one instance. (3) When SettingsActivity.java and SceneModeActivity.java is invisible status, finish them and ensure data is updated in a timely manner. Change-Id: I3ac24b9b181055382849550e585d3be726e71595 CRs-Fixed: 1084871
* | SnapdragonCamera: Continuous shot to YUVJack Yoo2016-11-091-0/+28
| | | | | | | | | | | | | | Change continuous shot to YUV with ZSL Change-Id: If69d58456a17fa4181cf58f9660c0c6d033c4938 CRs-Fixed: 1083651
* | SnapdragonCamera: Reading persist system property only onceJay Wang2016-11-071-10/+21
|/ | | | | | | Reading persist system property only once Change-Id: I62296c3eb508ad0e9b34eaa1bf815ef08c129250 CRs-Fixed: 1077021
* SnapdragonCamera:Fix crash when show dialogjunjiez2016-10-101-0/+2
| | | | | | | | Don't show the error dialog when the activity is null or is finished to avoid BadTokenException. Change-Id: I4f32ab67fa3d6c96637aab2292778f45300c338a CRs-Fixed: 1069308
* SnapdragonCamera: Use persist to set Camera1/Camera2 modeByunghun Jeon2016-09-271-0/+5
| | | | | | | | | Use persist flag to choose camera1 or camera2. Flag is persist.camera.camera2 Default will be camera1 Change-Id: Ic616b3d4b9f1293e45c7a006587f5c9ba34a0687 CRs-Fixed: 1066444
* Merge "SnapdragonCamera: Pictures were rotated when the device is in flat ↵Camera Software Integration2016-09-211-7/+8
|\ | | | | | | position" into camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Pictures were rotated when the device is in flat positionweijiew2016-09-081-7/+8
| | | | | | | | | | | | | | | | | | | | | | Normally, the picture taken by front camera needs to rotate 270 degree and the picture taken by rear camera needs to rotate 90 degree. Launch camera app when the device is in a close to flat position, camera app can’t get device’s orientation. The picture will not be rotated when the orientation is unknown. Change-Id: I41d19f162f28aa6838b0246f14475480c8703e06 CRs-Fixed: 1063452
* | Merge "SnapdragonCamera: Use resume/start based on the SDK version for cam2" ↵Linux Build Service Account2016-09-071-0/+3
|\ \ | | | | | | | | | into camera.lnx.1.0-dev.1.0
| * | SnapdragonCamera: Use resume/start based on the SDK version for cam2Jay Wang2016-08-181-0/+3
| |/ | | | | | | | | | | | | | | In camera 2 module, we make the same change to use resume/start based on the SDK verion for camcorder resuming use-case Change-Id: I2e943bf647bf48ac194096977d96601beb6174b0 CRs-Fixed: 1028570
* / SnapdragonCamera: support lower resolutions for ClearsightJay Wang2016-08-241-0/+15
|/ | | | | | | | | | Support different resolutions when capturing in Clearsight mode. Also downscale the mono image to 2MP resolution when bayer size is greater than 2MP. If bayer size is less than 2MP, mono size will match with bayer. CRs-Fixed: 1058843 Change-Id: I8f9ddd81dd640b4efc316dd9ff05c26f339396a5
* SnapdragonCamera: Allow persist flag to hardcode preview sizeByunghun Jeon2016-08-161-0/+4
| | | | | | | Use perfirst flag to hardcode preview size in Camera2 mode CRs-Fixed: 1050106 Change-Id: Ib718497efdff13115c95011d08020474dc929573
* SnapdragonCamera: Add video to Camera2 moduleByunghun Jeon2016-06-292-0/+176
| | | | | | Add video to Camera2 module and combine the UI Change-Id: I0bcd86eb6b95fe2180856780ddd794682259e799
* SnapdragonCamera: Update settingsManager and add Dual mode to Scene modeByunghun Jeon2016-05-311-1/+1
| | | | | | | Update settingsManager and add Dual mode to Scene mode Change-Id: I508430840c3fb8c7d0b56a2a63e09b271754fcb4 CRs-Fixed: 1018118
* SnapdragonCamera: Add continuous shot and count downByunghun Jeon2016-05-311-0/+51
| | | | | | | Add continous shot and count down to CaptureModule Change-Id: I986302201f742d7671a67c26953eecc2a0276294 CRs-Fixed: 1018118