summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/WideAnglePanoramaModule.java
Commit message (Collapse)AuthorAgeFilesLines
* Snap: Fix panorama layoutArne Coucheron2018-11-201-0/+1
| | | | | | Loosely based on old cyngn patches. Change-Id: I7fdb6ba82243f2f28e8ea655f83f0339d49de5ad
* Snap: Increase default pano capture pixels to 1440x1000Arne Coucheron2018-11-201-2/+2
| | | | Change-Id: I5a67ee329a46701629b017c57f640a5be1976288
* Always apply frame size reduction to panorama picturesGabriele M2018-11-201-7/+1
| | | | | | | | | | | | | | | | Panorama mode requires quite some memory, especially after the frame num bump done with commit aa0733567c30 ("Make panorama able to go 270 degrees in landscape"). Some devices run out of memory while taking a panorama picture and force close Snap before the picture is complete. We have a config to reduce the memory requirements that reduces the size of each frame, but it's applied only if ro.config.low_ram is true. Bump the default value to 100 and always respect it. Devices having ro.config.low_ram set to true will have to override this config from their device tree. BUGBASH-326 Change-Id: Ic6d24b17b2293adf8d715904c8c1874a4c624e99
* CameraNext: Update focus behavior for panoramasJim Wilson2018-11-201-11/+26
| | | | | | | | | | Panorama was using Infinity for the focus mode all the time for panoramas. Change to use continuous-picture in viewfinder before the actual mosaic is started then change to fixed to lock in. This allows indoor panoramas to not suck. Change-Id: Ida01ca1ded1e1058d76da851cd20e5b7072e15be (cherry picked from commit 33ece020c28796f004f28843fda28092e315c9dc)
* Make panorama able to go 270 degrees in landscapeMartin Brabham2018-11-201-4/+8
| | | | | | Change-Id: Icfab44c674bcc59c1d369af64985956ccaf63ccc issue-id: SAMBAR-869 (cherry picked from commit e0ca697b97ef2d872f682d2b357d7233762cfafd)
* CameraNext: stop updating the pano progress bar on pauseScott Mertz2018-11-201-7/+15
| | | | | | | | | | | Fixes a NPE if a panorama is rendering when the user pauses the activity, then launches the camera from the lockscreen and enters panorama mode. With this patch, the user is shown a message "previous panorama is rendering" instead of the progress bar. FEIJ-533 Change-Id: I3247e4bd96aa3aa67e9b1ff75d747d8be0c3c633
* snap: Panorama fixesSteve Kondik2018-11-201-1/+7
| | | | Change-Id: I9474219c57fc204dd16797aa8921296e61cc9d37
* Show UI when pano stitch starts and remove cancel conditionArtem Shvadskiy2018-11-201-1/+2
| | | | | Change-Id: I72b2bf2e1062a548ff9470075a5151923619e062 issue-id: FEIJ-469
* Add orientation correction for landscape devicesandralex82018-11-201-2/+7
| | | | | | | | | | | | | Snap does not correctly handle devices with a landscape screen as rotation is 0 when device is in landscape while Snap assume that 0 is portrait. This lead to a rotated gui and a deformed preview. This commit: - Solve the gui rotation for Photo, Video and Panorama modules - Solve the deformed preview for Photo and Video (Panorama preview was ok with gui fix) - Solve the PhotoMenu rotation (all devices, it was also broken on portrait devices) Change-Id: Ic0b95904da6e13946c7e46e2e571b26da498db02
* Camera2: Headset shutter modeDave Daynard2018-11-201-0/+5
| | | | | | | Use play button on headset to take a picture/video/panorama Use media next/previous for zoom Change-Id: I25c22646b041e5e0941fbe361eccfe77a2a1e42f
* Camera: Handle keys only while in appMichael Bestas2018-11-201-0/+8
| | | | | | Thanks to Lars Greiss (SlimRoms) Change-Id: I63f757d25260fba4683f494f8b4daf178a2b4e13
* Camera: Cleanup hardware key handlingMichael Bestas2018-11-201-1/+32
| | | | | | | | | | | | | | | | | * 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
* SnapdragonCamera:Improve camera app's robustnessjianhuac2016-12-301-0/+3
| | | | | | | | We just load RenderScript engine once when initialize CaptureModule and destory it when destory CaptureModule, instead of load-destory engine by muti-thread when open-close camera device. Change-Id: I76f9e5f99061fb1557624ab683c37837ae1414f7
* SnapdragonCamera: GPS location can't be turn On in camera settingsweijiew2016-11-241-1/+2
| | | | | | | | | In Camera2, SharedPreferences persistes GPS location value by key(pref_camera2_recordlocation_key), but gets GPS location value by key(pref_camera_recordlocation_key). CRs-Fixed: 1088262 Change-Id: I33ddeb8f20fed03449bded2760c0ad1b8e36c91c
* Merge "SnapdragonCamera:Add intent interface for APT automation" into ↵Linux Build Service Account2016-08-251-0/+5
|\ | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera:Add intent interface for APT automationjunjiez2016-08-161-0/+5
| | | | | | | | | | | | | | | | Add intent interface to allow APT changing the UI settings by adb command. Change-Id: I28276ed398a09dceca6c5e59c755339fb229d1fd CRs-Fixed: 1043197
* | SnapdragonCamera: Fix crash when switching between camera1, camera2Byunghun Jeon2016-08-161-1/+5
|/ | | | | | | | | | | | | Camera1 uses CameraHolder for opening/releasing camera and it does not release right away when closing camera. This is done to optimize opening/closing but since Camera2 does not use CameraHolder, state is not proper when switching between camera1 and camera2. So ignore the timer and release right away when going from camera1 to camera2. Change-Id: Ibc40297817ebfca04e19097bd463f78aec4d75cd CRs-Fixed: 1019338
* SnapdragonCamera: Remove custom location permission request windowJay Wang2016-07-191-0/+18
| | | | | | | | When user enables the GPS locaion setting, use Android's run-time permission request interface to get the permission. Change-Id: Ib17171aeff5ccf20e2b00da08243dee1a3383611 CRs-Fixed: 1038039
* SnapdragonCamera: Fix the camera setting corruption issueJay Wang2016-06-211-2/+10
| | | | | | | | | | | | Two instances of camera preference were created and caused the wrong preference instance is referenced when changing the camera2 mode. Due to this, it corrupted the camera setting on the other camera device. To resolve the issue, create single instance of camera preference and re-use it. Change-Id: Ia1a6923a10b83e4c5777fb1318677c1f191942fb CRs-fixed: 1025776
* Merge "SnapdragonCamera: Add manufacture and model info" into ↵Camera Software Integration2016-06-071-0/+1
|\ | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Add manufacture and model infoJay Wang2016-05-091-0/+1
| | | | | | | | | | | | | | | | Manufacture and model information is added to the EXIF tag of saved panorama image file Change-Id: Ie5688032abc2278718dfcc0bf9129a35dedc7b8b CRs-Fixed: 1011930
* | SnapdragonCamera: Add SettingsManager, scene, and filterByunghun Jeon2016-05-311-2/+1
|/ | | | | | | | | | | Add SettingsManager to work as a database for settings. It will handle all dependencies and populate the values. Add scene mode and filter. Restructure UI and menu by combining them and leave the handling of settings to SettingsManager Change-Id: I185163fdddbffd29434e6a9c41b33be6d3388f88 CRs-Fixed: 1018118
* SnapdragonCamera: Fix the memory leak on view.Jack Yoo2016-01-301-0/+17
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* SnapdragonCamera: Do not update panorama thumbnail when cancelledCamera Software Integration2015-12-221-3/+4
| | | | | | | Do not update thumbnail when panorama is cancelled. Change-Id: I3db9f9614b35ee4e475fbb7b1dc801b77e6ed6bd CRs-Fixed: 934157
* SnapdragonCamera: Fix to make camera display normallylikaid2015-09-301-4/+10
| | | | | | | | | | Camera params is initialized twice when power on screen which cause this bug happen. Add judgement to make Camera params only be initialized once. CRs-Fixed: 914993 Change-Id: I825afe1e8fa9cda0d971c6f9bb4fe5677e06d809
* SnapdragonCamera: Reduce the latency for panorama preview startinglikaid2015-09-081-6/+8
| | | | | | | | | | | In panorama mode preview, the stopPreview and startPreview were called three times after onResume from lockscreen, that caused the preview showing delay. Reduce the unnecessary stopPreview to improve the preview performance. CRs-Fixed: 876035 Change-Id: Ice5b0c305edb773867fd4803c190c98f5518ecb2
* Revert "SnapdragonCamera: Improved panorama"Byunghun Jeon2015-08-121-294/+492
| | | | | | This reverts commit "SnapdragonCamera: Improved panorama" Change-Id: I7aef9427c218d06b78cbc097dd32a1629b5ab9d1
* SnapdragonCamera: Fix app freeze when connect to camera failedlikaid2015-08-061-0/+1
| | | | | | | | | | In Panorama mode, the app wasn't closed directly when connected to camera failed, that may cause more serious issue. Finish the activity immediately when open camera failed. Change-Id: I057611a3baf37ef915b3c182e5c3b5f12413c134 CRs-Fixed: 882041
* SnapdragonCamera: Improved panoramaByunghun Jeon2015-07-301-492/+294
| | | | | | | | Improved panorama with faster performance and low memory consumption. Also displays progress while taking panorama shot. Change-Id: I88ae1205f056ebe59129e65d69fcc44f46a5ab92 CRs-Fixed: 859274
* Merge "SnapdragonCamera: fix camera FC when internal storage isn't enough"Linux Build Service Account2015-04-151-1/+1
|\
| * SnapdragonCamera: fix camera FC when internal storage isn't enoughlikaid2015-04-081-1/+1
| | | | | | | | | | | | | | | | | | The menu may be not initialized when switch save path in PhotoModule. Check the menu initialized state before switch save path. Change-Id: Ibdc8d5510924b45f5abfc13f4d70dcf9620c8b7d CRs-Fixed: 801619
* | SnapdragonCamera: customize camera picture qualitylikaid2015-04-081-1/+1
|/ | | | | | | regional feature Change-Id: I4c80b4970ff4f628080cad20980aa545add6fdcf CRs-Fixed: 815630
* Merge "SnapdragonCamera: Handle Camera device errors gracefully."Linux Build Service Account2015-04-061-1/+1
|\
| * SnapdragonCamera: Handle Camera device errors gracefully.Sai Kumar Sanagavarapu2015-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | Handle Camera device errors from lower layers gracefully by finishing the activity and there by closing camera session and app. Also, display a toast message signifying the error because of which camera app is being shutdown. Change-Id: I86c4caf174356148bd4725329ea13ec82e944b94
* | SnapdragonCamera: Stop panorama capture when move to opposite directionlikaid2015-04-031-0/+11
|/ | | | | | | | In panorama capture mode, when user moved to the opposite from the original direction, stop the capture and save current picture. Change-Id: I716a08f2fc497301fb8a6c6a124211b855cd9a77 CRs-Fixed: 801022
* Snapdragon Camera: Check mosaic preview dimensionsEmilian Peev2015-03-051-3/+8
| | | | | | | | | The preview dimensions used during the Mosaic libray initialization should be verified. Using invalid values like "0x0" could result in a crash of the JNI library. Change-Id: I5f66c2b2cc1a3d74898b5028933e578ea4097dfb
* Merge "SnapdragonCamera: fix panorma capture direction issue"Linux Build Service Account2015-02-231-0/+4
|\
| * SnapdragonCamera: fix panorma capture direction issuelikaid2015-02-151-0/+4
| | | | | | | | | | | | | | | | | | | | When the orientation is 90 or 180, the indicator direction is opposite to the moving direction. Correct the direction when orientation is 90 or 180. Change-Id: If2cda1da6db2e6ae219cb57567801fed0b4ca012 CRs-Fixed: 792977
* | Merge "SnapdragonCamera: circular thumbnail icon"bait_dispatcher_monitor_system2015-02-191-4/+0
|\ \ | |/ |/|
| * SnapdragonCamera: circular thumbnail iconLikai Ding2015-02-101-4/+0
| | | | | | | | | | | | | | | | | | 1. change thumbnail icon to circular and its background to transparent 2. speed up loading with optimal sample size and region decoder 3. fix orientation bug regarding panorama photos 4. don't fire load task on fake onDataLoaded() call Change-Id: I7f4eb8dad4c54a01a7ccd98907e06952e470840b
* | SnapdragonCamera: Add FullScreen Preview when in Panoramic shootJay Wang2015-02-091-5/+13
|/ | | | | | | | | Changed the Panoramic preview to full screen Resized the warped preview image to smaller Size and render on top of the full screen preview image Warped preview image can be turned on/off Change-Id: I859839542ce94c5f70d7fe7983e93b5e9534b415
* SnapdragonCamera: fix portrait orientationLikai Ding2015-02-021-4/+12
| | | | | | | | | | | | Fix camera activity to portrait, so there is no delay when rotation occurs. Main changes are: 1. RotateLayout now supports padding and dynamically added child. 2. Camera controls and gesture detetion are now orientation-aware. 3. Toasts are replaced with RotateTextToast. 4. Obselete layout files are removed. Change-Id: I338849bd7fb84b847eb357f771a24a5cc09bf6fa
* Revert "SnapdragonCamera: Fixed aspect ratio in panormic shoot"Jay Wang2015-01-131-28/+6
| | | | This reverts commit 1ea460a89823864216b47aae767b0d8f5dceb3ee.
* SnapdragonCamera: Fixed aspect ratio in panormic shootJay Wang2015-01-061-6/+28
| | | | | | | Fixed aspect ratio of the full screen preview. The camera preview size is chosen based on the aspect ratio of device screen. Change-Id: Ibc7c497a87d8f0cca2701d8709f010caa6f79308
* SnapdragonCamera: Add preview thumbnail buttonByunghun Jeon2014-11-191-0/+4
| | | | | | Add preview thumbnail button and touch it to go to gallery Change-Id: Ib80ef94c677c204d7f0826356792aba2aa11d4d1
* SnapdragonCamera: Modify SnapdragonCamera UIByunghun Jeon2014-11-171-0/+4
| | | | | | Modified SnapdragonCamera setting menus with new icons Change-Id: I726296dfb100ac81ad6f1cd84420ae27c0ae1201
* SnapdragonCamera: lock AE and AWB while taking panorama snapshotVijay kumar Tumati2014-11-051-0/+8
| | | | | | | Need to lock AE and AWB to avoid discrete AE and AWB values in a panorama snapshot Change-Id: I10bb43bf2e5bc31d67ccf8b086999e762541b950
* SnapdragonCamera: Add camera error callback to WideAngle PanoramaSanthosh Kumar Thimmanna Bhattar2014-10-101-0/+4
| | | | | | | | | | | | - Panorama preview is getting stuck when media server or camera daemon crashed as these error callbacks are not handled in Panorama - Fix is to add camera error callback to camera WideAngle Panorama to handle errors like media server or camera daemon crash. CRs-Fixed: 736404 Change-Id: I4b0f9883ca57b7a2fc93e0b31fee7b908bb18242
* SnapdragonCamera: Switch to SD card when internal storage is fullkaiyiz2014-08-211-0/+8
| | | | | | | | | | | | | | | | When internal storage is full, switch to SD card for storage. Change the save path from internal storage to SD card when updateStorageSpace is called if: 1. Internal storage is the current save path and does not have enough space 2. SD card has enough space Display a toast message and update display of the save path menu item when the storage path is switched. CRs-Fixed: 687210 Change-Id: I6a9804e4f64e6d55c6aebd889ac2ce5e887cfa5a
* SnapdragonCamera: Make panorama frame size configurableLikai Ding2014-08-211-2/+10
| | | | | | | | For low RAM devices, allow reduction of the panorama frame size to save memory via the 'panorama_frame_size_reduction' config option. Change-Id: I26b98699341d5eedfe2ebe8a6ed417fe62933bd5 CRs-Fixed: 669381