summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Fix parameters NullPointerExceptionxianming wang2019-11-091-0/+1
| | | | | | | Fix parameters is NullPointerException in China App Stress. CRs-Fixed: 2307806 Change-Id: I71fff4cb32361ad0e66d6460ca8dc01167c8a009
* Drop new focus indicator into Camera2.Paul Rohde2019-11-091-17/+2
| | | | | | | * Create a new custom focus view that interacts with physical lens diopter changes. * Replace all occurances of the old focus indicator with the new one. Change-Id: Ia02646ce4d1eb059ecb8a1dfccc15dfc9c167e1b
* Snap: check tags before using themcodeworkx2019-10-251-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 Peev2019-10-251-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 availablecodeworkx2019-10-252-6/+31
| | | | | | | | | | | | | | | | | | | | Author: codeworkx <daniel.hillenbrand@codeworkx.de> Date: Sat Jan 28 14:56:35 2017 +0100 Snap: detect and use Camera2 if available Also add overlay option to enable support for Camera2 to retain current behaviour. Change-Id: I20939e33f4bb687e4abea11bbcdb9bf246b156e4 Author: codeworkx <daniel.hillenbrand@codeworkx.de> Date: Sun Aug 13 12:22:05 2017 +0200 Snap: Add missing null check on isCamera2Supported Change-Id: I61c04c7cb8d344573ab7fb11f7114f09aaf24fb7 Change-Id: I339ead08d10ddff5dad491987d94367354a4b3f3
* CameraNext: dynamically generate available photo resolutionsWilhelm Fitzpatrick2019-10-251-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 Signed-off-by: Chippa-a <vusal1372@gmail.com>
* SnapdragonCamera: Fix overly-aggressive auto rotationSultanxda2019-10-251-2/+2
| | | | Change-Id: I534c0e36ac826b1d46befe99182bfbfb3b0f22da
* Snap: Support for HTC's HDR modeSteve Kondik2019-10-251-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 shotsSultanxda2019-10-251-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 modecodeworkx2019-10-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | Author: codeworkx <codeworkx@cyanogenmod.org> Date: Wed Jan 6 12:25:10 2016 +0100 Snap: Add support for mw_continuous-picture focus mode Change-Id: If165370b52d7454c69e2cdeb9d837d049010b0e8 Author: Michael W <baddaemon87@gmail.com> Date: Sat Oct 22 14:47:09 2016 +0200 Snap: Fix possible NPE Seems like getSupportedFocusModes() can return null. Check for null before using it further Change-Id: I46860f780b99970cbe9857c8ba73691d69321488 Reference: BugDumps 20161014-20 L#131 Change-Id: I066a26043cc89b3037e457d8da340ed4b005ee1f
* Snap: Add support for luminance-condition parametercodeworkx2019-10-251-0/+14
| | | | | | | | | | | | | | | | | | Author: codeworkx <codeworkx@cyanogenmod.org> Date: Tue Jan 5 23:54:52 2016 +0100 add support for luminance-condition parameter Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482 Author: codeworkx <codeworkx@cyanogenmod.org> Date: Sun Feb 21 11:17:12 2016 +0100 Snap: fix camera hang on LGE G4 when flash got used Change-Id: I23e53333a0bbe2a12e64e87ec8594aeaa503e9fc Change-Id: If1c2cd9dd253d6342de241b381152a759e8d3f05
* Camera: Cleanup hardware key handlingMichael Bestas2019-10-251-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 Pornkitprasan2019-10-251-0/+5
| | | | | | | | | | 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 Kondik2019-10-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Steve Kondik <shade@chemlab.org> Date: Sat Dec 7 06:07:02 2013 -0800 Camera: Cleanup and compatibility fixes * Don't crash for unavailable integer parameters * Kill logspam Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc Author: Ryuinferno <ryuinferno.xda@gmail.com> Date: Thu Dec 26 19:11:23 2013 +0100 Camera2: More thorough compatibility fixes Certain chipsets (such as omap) have contrast, sharpness and saturation set, but no max integer given for those Change-Id: I58efaef4d0a511aefc803a440e0c3aa3dbdc9483 Author: Ethan Chen <intervigil@gmail.com> Date: Wed Feb 5 23:02:17 2014 -0800 Camera: Fix saturation, contrast, sharpness parameters * Old-style QCOM HALs use <setting>-max, new style HALs use max-<setting> for these parameters. Change-Id: I3b0dbd04f072cb69d09c44b5b3af1097560205b3 Author: Steve Kondik <shade@chemlab.org> Date: Wed Feb 26 07:43:28 2014 +0100 camera: Make some parameter lookups safer * Unsupported parameters that return int values will throw an exception at the framework level if they aren't supported. Handle this better and prevent crashes. Change-Id: If5a3807dba33167ef95e4ec9e9cbeb15ed4ed591 Change-Id: Id1a3e360474f0a8aebe150918d13b0a825715789
* camera: Add parameter debugging supportSteve Kondik2019-10-251-6/+20
| | | | Change-Id: Ifc1653f0046af169ba36d94796b4d9a3055c6798
* Revert "SnapdragonCamera: Forbid volume key can take picture"Michael Bestas2019-10-251-4/+0
| | | | | | This reverts commit e73e717b8be1ba834161914af4debc61c1feb8be. Change-Id: Iee719f34f6016f89ec0bb1c078bfa25c2f718436
* SnapdragonCamera: Add burst preview request nums controlxianming wang2019-06-201-4/+4
| | | | | | Add burst preview request nums control. Change-Id: I0214b439e49bdf4cd7d229a28ba3f216bf7efa6a
* Merge "SnapdragonCamera: Add abortCaptures for flush" into ↵Linux Build Service Account2019-01-171-0/+6
|\ | | | | | | camera-SnapdragonCamera.lnx.2.0
| * SnapdragonCamera: Add abortCaptures for flushxianming wang2019-01-061-0/+6
| | | | | | | | | | | | | | | | | | | | | | Add abortCaptures for flush. (1) when exit app. (2) when switch cameraID. (3) start recording before closePreview session. (4) stop recording except enable EIS. CRs-Fixed: 2349737 Change-Id: I4546fbfefa3ffa4bcec688a6b5c6eea24045f232
* | Merge "SnapdragonCamera: Add save task memory limit info is 120M" into ↵Linux Build Service Account2019-01-111-1/+1
|\ \ | |/ |/| | | camera-SnapdragonCamera.lnx.2.0
| * SnapdragonCamera: Add save task memory limit info is 120Mxianming wang2018-12-241-1/+1
| | | | | | | | | | | | | | Add Save task memory limit info is 120M. CRs-Fixed: 2372158 Change-Id: Iff23ca95d083c6ed1019923c447b399714754e8e
* | SnapdragonCamera: Complete Auto test requirementsxianming wang2018-12-271-0/+120
|/ | | | | | | | Completed the Auto test requirements which can get the available options of videoSize fps videoEncoder and pictureSize. CRs-Fixed: 2353929 Change-Id: If244e90d7c585aae9ae7d52b7db1a9f489a95059
* SnapdragonCamera: Set burst shotFps controlled by setpropxianming wang2018-12-141-0/+11
| | | | | | | | Set burst shotFps controlled by setprop. The prop is "persist.sys.camera.burst.shot.fps", the default value is false. CRs-Fixed: 2363720 Change-Id: Ia24e6da153728ac94e9472aec407b288d4f70b7c
* fix unknow camera id error when getcamerainfo in APPzhuw2018-12-051-0/+13
| | | | | | | use camera2 API instead of camera1 API Change-Id: Ie1d6311b8e8ee3c76cbb322c8809690fdf80dd79 CRs-Fixed:2356334
* SnapdragonCamera: Fix video fps is 60, preview fps is 30.xianming wang2018-11-281-3/+7
| | | | | | | Fix video fps is 60, preview fps is 30. CRs-Fixed: 2357348 Change-Id: I2c5ba41a9b0a6d719e3a70a3f52cc92559c76e4a
* Set longshot number to 60jinwu2018-10-201-1/+1
| | | | Change-Id: I27aff4f9b439c0464a189643ad56f86d245947e9
* SnapdragonCamera: Fix mistakes of judgment of limit 1080Pjinwu2018-09-251-3/+2
| | | | | | | Fix mistakes of judgment of limit previewSize is 1080P. CRs-Fixed: 2315431 Change-Id: I05970ab3bea384869fcf5aa36b8e131a0d937b49
* SnapdragonCamera: Completed the function of Manual WBjinwu2018-09-211-1/+48
| | | | | | | Completed the function of Manual WB gains and cct. CRs-Fixed: 2297603 Change-Id: Ia161307fe4b305e86953560b802d749b86f848b3
* SnapdragonCamera: Add AndroidP API SessionConfigurationxianming wang2018-07-311-0/+4
| | | | | | | Add AndroidP API SessionConfiguration avoid frame drop. CRs-Fixed: 2287230 Change-Id: Ibdce065a5a43e1d2f86fc47fc2de89abbf798e71
* Change property from vendor to sys.jinwu2018-07-031-40/+40
| | | | Change-Id: I08e0426f4189a8d62a54c0ca83658b18b1babbb3
* SnapdragonCamera: Modify the previewSizexianming wang2018-06-271-1/+6
| | | | | | | | (1) When display is QHD/QHD+, set previewSize is 1920x1440. (2) When display is 2160x1080, set previewSize is 1440x1080. CRs-Fixed: 2266854 Change-Id: I760aa13eb3f0e5c6a3131404597e708a28fba993
* Fix force close when init camera info on Pzhuw2018-06-131-4/+7
| | | | | | | Use camera service instead of hardware.camera to get camera info Change-Id: I2837660a13b674a076006b0f6ecce603967e62ca
* SnapdragonCamera: Add the 60fps support for previewxianming wang2018-04-091-1/+45
| | | | | | | Add the 60fps support for preview. CRs-Fixed: 2210765 Change-Id: If16aff4e73721050e40364c1415c8a8dfe1faa14
* SnapdragonCamera: Change picture preview Size maximum limit 1080Pxianming wang2018-04-021-0/+5
| | | | | | | Change the Picture preview size the maximum limit is 1080P CRs-Fixed: 2216565 Change-Id: I950693cad7ab0ebfcf173169828a8b649f7e7a1c
* Change default number of longshot to 30jinwu2018-03-271-1/+1
| | | | | | For consuming less memory. Change-Id: Ic8e2d85df30c3ecf4b31a399aa6ca9eb361129ea
* SnapdragonCamera: Reconstruction createHighSpeedRequestList methodxianming wang2018-03-201-0/+147
| | | | | | | | | (1)Reconstruction createHightSpeedRequestList method for compatible AndroidO and AndroidP. (2)Reconstruction the method setEndOfStream. CRs-Fixed: 2208025 Change-Id: I623b61693b51d949f5bad0f1b154165b434352fe
* Use createHighSpeedRequestList in frameworksjinwu2018-03-061-94/+0
| | | | | | | | Instead of defining createHighSpeedRequestList in app, prefer to use it defined in framework and if framework change this api in upgrade then app need do nothing. Change-Id: I64074301e9201913e8bef12bd894c411596aa6bc
* SnapdragonCamera: Complete the function of DeepZoomxianming wang2018-02-061-2/+0
| | | | | | | | Complete the function of DeepZoom, only support the 32 bit library. Does`t support the 64 bit library. CRs-Fixed: 2116533 Change-Id: I9c181ff0de005493d345ecc0b0380dda9910ce63
* SnapdragonCamera: Add command to set videoSizexianming wang2018-01-241-0/+15
| | | | | | | Add setprop "persist.vendor.camera.video.size" to set the video size. Change-Id: Icd6792a3afc36c11902d839e2981507cb78bd31c CRs-Fixed: 2175168
* SnapdragonCamera:Avoid black previewjunjiez2018-01-151-1/+1
| | | | | | | | | | Some resolution is not in regular ratio and will cause the preview to be larger than screen. Ensure preview size is not larger than screen to avoid black preview. Change-Id: I19a916520b9aac794dda7d6c11f547ec6ce2a41d CRs-Fixed: 2163684
* SnapdragonCamera: Set the preview size of videoxianming wang2017-12-191-0/+65
| | | | | | | | | (1)When videoSize is 4k/1080p, videoPreviewSize is no more than 1080p. (2)When videoSize is 720p, videoPreviewSize is no more than 720p. CRs-Fixed: 2160890 Change-Id: I41bf061152e32c8904a6e26417d816eeb021aad6
* Support HLG and HDR10jinwu2017-11-031-1/+1
| | | | | | Send only Main10HDR10 profile. Change-Id: I06e9e8c6d12bb88e471a712cec3a05b78ab4f168
* SnapdragonCamera: Adapter manual set ISO Values with AEC changedxianming wang2017-10-231-0/+12
| | | | | | | Adapter manual set ISO Values with AEC changed CRs-Fixed: 2128698 Change-Id: I98482a49db70f51e350b43b2ab595e2010d6aa8a
* SnapdragonCamera: Support HLG and HDR10Weijie Wang2017-09-072-1/+39
| | | | | | Support HLG and HDR10 Change-Id: I1dd8a40a85e9cc0115515217b4ec75a726b6f41e
* SnapdragonCamera: RefactorWeijie Wang2017-09-051-2/+2
| | | | | | | | | 1. Add some logs 2. Change the layout of beautify seekbar 3. Add attribute android:visibleToInstantApps="true" for CTS 4. keep capturing until AeState becomes right on chrommaflash mode Change-Id: I295d5d6f42250254d613123a7d58f7f7fb0e7f3d
* SnapdragonCamera: Move property to PersistUtilWeijie Wang2017-09-041-8/+196
| | | | | | Move property to PersistUtil Change-Id: I0735d8215ba302ef4c632d6a15ad95a04cd259a0
* Revert "SnapdragonCamera: Sync LA.UM.6.4 to LA.UM.6.3"Weijie Wang2017-09-022-198/+10
| | | | | | This reverts commit b5533d51a7c97138235d29b35cec876d107aeadd. Change-Id: I8063422680802e25d03a374be91e884a86ad55e9
* SnapdragonCamera: Sync LA.UM.6.4 to LA.UM.6.3Weijie Wang2017-08-302-10/+198
| | | | | | Sync LA.UM.6.4 to LA.UM.6.3 Change-Id: Ide9a53b3b5ea6d17154003e4059ae3125f9f3346
* SnapdragonCamera: Add vendor tag utilWeijie Wang2017-08-291-0/+134
| | | | | | Check if the tag is available before apply the settings Change-Id: Ic0242b8aa7711ad230f3aba9e30d5da61d188fe5
* SnapdragonCamera: Add ZSL in HAL modeWeijie Wang2017-07-261-6/+0
| | | | | | Add ZSL in HAL mode Change-Id: Ifa803c970cfc559723e3599821b74cc8584782a2