summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Snap: Materializejrizzoli2019-10-2510-118/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: jrizzoli <joey@cyanogenmoditalia.it> Date: Thu Jan 7 21:07:51 2016 +0100 Snap: initial materialization Just for initial ship Change-Id: I8d6c0d71d1b94e6eb2f43ab962fb92de0e6c7093 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it> Author: jrizzoli <joey@cyanogenmoditalia.it> Date: Mon Jan 11 21:02:08 2016 +0100 Snap: remove captureUI pngdrawables CM now supports 90/270 degrees rotated vectordrawables Change-Id: I13b36463c60430564c00bd1e36393fff7ddbfdae Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it> Author: jrizzoli <joey@cyanogenmoditalia.it> Date: Wed Jan 20 20:54:10 2016 +0100 Snap: update shutter button style Change-Id: Ide5fc0ff1c54e216ac7cd9bea202002d1d4dfa12 Author: Joey Rizzoli <joey@cyanogenmoditalia.it> Date: Sun Dec 11 21:30:18 2016 +0100 Snap: update caf icons Change-Id: I1adaf709253637bde037b5aea1f856fc5b9029c7 Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it> Author: Arne Coucheron <arco68@gmail.com> Date: Thu Aug 17 01:19:05 2017 +0200 Snap: Update HDR icons Current ones are so small, I can hardly see them. These new ones are bigger and looks more in line with the rest of the icons. Change-Id: Idaeec67a78d66105a375f09b6701a49dce43fd22 Author: codeworkx <daniel.hillenbrand@codeworkx.de> Date: Sat Jan 20 12:46:31 2018 +0100 Snap: update shutter buttons on CaptureUI Change-Id: I674de05dfb46fb714979ac66c16a85825af13c95 Author: Paul Keith <javelinanddart@gmail.com> Date: Tue Jan 23 23:36:19 2018 +0100 Snap: Update pano and video icons to be more like photo icons * Put the colored ring on the _outside_ of the shutter * While we're at it, cleanup naming and usage of color resources Change-Id: I4f344fa272374d043f2b83dba7248e263fab8bf0 Author: Andreas Blaesius <andi@unlegacy-android.org> Date: Fri Jun 1 17:47:00 2018 +0200 Snap: remove unused shutter buttons Change-Id: Id913626bbccc6fd245ed9f46374389ca7eca3c30 Change-Id: I7596f3c887874b4913d87ecbfa5438191fc86249 Signed-off-by: Chippa-a <vusal1372@gmail.com>
* Snap: Fixes for advanced features and scene modesSteve Kondik2019-10-253-42/+54
| | | | | | | | * Get rid of the annoying toast when longshot is disabled * Add support for ChromaFlash as a scene mode * Adjust overrides for various scene modes Change-Id: Ifda1990f4e9b3435655664f2a6c2b31fc3ae23fa
* camera: Keep touch focus intact during back-to-back ZSL shotsSteve Kondik2019-10-252-2/+12
| | | | | | | | * If ZSL is enabled, we should not resetTouchFocus between shots. * Instead, re-kick the timer for each shot. If I set a focus point, I want that point to stick while I take a succession of shots. Change-Id: I407bb1e248cc902355d0294f47b071cc8a32fac3
* Camera2: Only autofocus before a snap if we are actually in "auto" mode.Steve Kondik2019-10-251-4/+1
| | | | | | Original commit by cyanogen 7daaa72d35c1f8820117768e4b129acd030bcefb Change-Id: I51853913f6459b599176910f7f486f59972eaf36
* Snap: Separate default focus time between camera/videoSultanxda2019-10-251-1/+1
| | | | | | | | | | | | | | For the camera, the user expects a default tap-to-focus duration of 3 seconds with exposure locking. For the camcorder, however, the user expects a tap-to-focus duration of 0 seconds with no exposure locking, as the rapid change in exposure while recording would negatively impact the video. Separate the tap-to-focus option to reflect the recommended defaults. [mikeioannina]: Adapted to Snap Change-Id: I75bc0610f5d301c9728b4bc104b86e0fab5493fb Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Add ability to set the tap-to-focus duration to 0 secSultanxda2019-10-253-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Author: Sultanxda <sultanxda@gmail.com> Date: Sun Dec 6 10:30:28 2015 -0800 Snap: Add ability to set the tap-to-focus duration to 0 sec Setting a tap-to-focus duration of 0 seconds allows for a quick, manual refocus of the subject without interfering with the exposure. This is particularly useful when recording videos. Change-Id: Ie3d92e50f755c938e9725438ba5baad0d0985485 Signed-off-by: Sultanxda <sultanxda@gmail.com> Author: Michael Bestas <mikeioannina@cyanogenmod.org> Date: Tue Feb 9 18:51:28 2016 +0200 Snap: Fix crash when set infinite touch-focus duration * java.lang.Integer.valueOf(string) method can't parse hexadecimal values Change-Id: I42706db72fc9c1093a7aa16440af449f731e5176 Change-Id: I9ae88f55a452a66af39906d46f1b899130199da2
* Snap: Add focus time support in camcorderMichael Bestas2019-10-253-0/+8
| | | | Change-Id: I5432554a40d7375ed7893c38cb2741a12cc8cc80
* Snap: Expose video snapshot size settingMichael Bestas2019-10-251-0/+1
| | | | Change-Id: I6bf76a0a607e4c275a63c60b042ae239d893095f
* SnapdragonCamera: Unlock AE/AWB after taking a photo with ZSLSultanxda2019-10-251-0/+1
| | | | | | | | | The exposure and white balance get stuck after taking photos with ZSL. Always unlock the exposure and white balance after taking photos with ZSL. Change-Id: Ia34a54522048fdd619f44ac1f6d2924ce2c3fc6a
* SnapdragonCamera: Lock AE and AWB for tap-to-focus in camcorderSultanxda2019-10-251-0/+20
| | | | | | | | Lock the auto exposure (AE) and auto white balance (AWB) when tap-to-focus is used in the camcorder. Change-Id: Ieb24e04b74a06b2390eb9302e74b4f69b1486951 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Always lock AE and AWB when auto-focus is usedSultanxda2019-10-251-0/+7
| | | | | | | | Lock the auto exposure (AE) and auto white balance (AWB) when tap-to-focus is used. Change-Id: I9d8e9b4928516e8b2bad7be958e5c4849db19ab6 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Add focus-mode option to camcorderSultanxda2019-10-255-19/+35
| | | | | | | User can now control the focus mode used while recording video. Change-Id: I340c01a3f88314de67ca024279672276eff453ed Signed-off-by: Sultanxda <sultanxda@gmail.com>
* camera: Touch focus support for camcorderSteve Kondik2019-10-253-9/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Steve Kondik <shade@chemlab.org> Date: Wed Aug 28 14:21:49 2013 +0800 camera: Touch focus support for camcorder * Available when video snapshots are not supported. * Original from CodeAurora Forum. Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d Author: Dheeraj CVR <cvr.dheeraj@gmail.com> Date: Sat Apr 19 02:33:46 2014 +0530 Camera2: Prevent autofocus when video snapshot is in progress During video recording if screen is tapped repeatedly, autofocus is started while the snapshot is taken. This would either result in an out of focus snapshot which would also disturb the focus in the recorded video or crash the sensors that can't handle autofocus during snapshot. Change-Id: If2763094f5ab7536e4409469276de54580e803c8 Author: Dheeraj CVR <cvr.dheeraj@gmail.com> Date: Mon Jun 23 22:00:07 2014 +0530 Camera2: Prevent propogating CancelAutoFocus during Video Recording When AutoFocus is started during Video Recording, CancelAutoFocus is called after KEY_FOCUS_TIME seconds. CancelAutoFocus has the side effect of resetting the sensor AF position and will result in instant loss of focus which is not a desired event when AF is manually triggered in case of Video Recording. Change-Id: Icee7f6dfd4ad083c9b383ee2a4df6a34e4668de6 Author: lion0738 <lion0738@naver.com> Date: Sun Jan 10 16:55:01 2016 +0900 Snap: Set parameters before starting preview Old parameters are used when grabbing focus mode. Camera parameters should be set to FocusOverlayManager before starting preview. Change-Id: I908559e1c2003be47b486996b0ec016b78107468 Change-Id: I8be16315ccede388e590e81e93f0dd417ae51c4a
* Add orientation correction for landscape devicesandralex82019-10-255-6/+26
| | | | | | | | | | | | | 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
* Snap: add auto-hdr option to photo menucodeworkx2019-10-251-1/+2
| | | | Change-Id: Ib8941843567fd822051830ce638e3f5d7ea21657
* CameraNext: dynamically generate available photo resolutionsWilhelm Fitzpatrick2019-10-253-44/+303
| | | | | | | | | | | 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>
* Snap: Remove storage menu if no external storage availablemaxwen2019-10-251-2/+9
| | | | | Change-Id: I9807c7f9303f17eb971ff1a82fbd35dfbdbfa529 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
* snap: Add constrained longshot modeSteve Kondik2019-10-251-1/+20
| | | | | | | | | * On the OP3, we can only use Longshot in a single scene mode without conflicting with other built-in postprocessing features which cannot be disabled. Add support for this. When a scene specified in the longshot-scenemodes list is active, continuous shot will be enabled. Change-Id: I79878e5ac918e907ddc5b3ca168e49f4e06656c3
* Snap: Unbreak auto-HDRSteve Kondik2019-10-251-26/+41
| | | | Change-Id: Id93d5807fb4c4d14eeea33be0776a6f705a6c435
* Snap: Make developer menu more accessibleMichael Bestas2019-10-252-23/+54
| | | | | | | | | | | | | | * Not all devices have red eye reduction, which made it impossible to enable advanced options. Move the toggle to max brightness option which is present in all devices. * Allow enabling advanced options through camcorder settings. * Move hardcoded strings to cm_strings for translations. * Close menus when developer mode is toggled so we can see the extra options when the menu is reopened. * Decrease taps to 7, matching Settings tap-to-enable. * Properly reset tap counter. Change-Id: Iac39b9309388b92bf75a49a6091b483b13bd9154
* Snap: Extend user menu, disable dev menucodeworkx2019-10-252-15/+31
| | | | Change-Id: Iaa64372e5d196fd0117a32a386686bdb1fd51e45
* Snap: Support override maker and model exif tagKetut Putu Kumajaya2019-10-251-1/+15
| | | | | | Camera HAL not always return proper values Change-Id: Id81fe40ac84b0ffb70560e55077d90544139e463
* Fix view index tracking.Danny Baumann2019-10-251-6/+4
| | | | | | | As we have a header and a footer view now, the assumption 'pref list size == child count' doesn't hold anymore. Change-Id: I1b4ab16907eea758921ccce64af01d2a73e82459
* Snap: Fall back to REVIEW intent before VIEW intentEthan Chen2019-10-251-1/+15
| | | | Change-Id: Ie8f1dac602957cb871d0f8c7043ac0f434f4bfac
* Snap: Do not crash when cur-focus-scale is nullLuK13372019-10-251-2/+10
| | | | | | | * Some cameras simply don't set this parameter. * Also set cur-focus-diopter to 0 if it's null. Change-Id: Ib1049012de9a58279560c14ed77f83f52c07fe30
* Snap: Fix incorrect preview layout surface size in landscape modeNikita2019-10-251-2/+7
| | | | | | If height is smaller than width it means that orientation sets to horizontal and we should decrease width instead height to get normal preview size. Change-Id: Ifa211ad2604fb730fb85b01ae1d7c93c9b7aa2ce
* Snap: Remove face detection option if not supportedArne Coucheron2019-10-251-0/+14
| | | | | | | Removes the face detection option from preference list if the "face-detection" camera parameter is blank/doesn't exist. Change-Id: I2ec82ae38505b6674f1a34e98d1b1fb2dbc2a714
* Snap: Remove video snapshot size when not supportedMichael Bestas2019-10-251-3/+8
| | | | Change-Id: I3f4dd8b76044389ee4d0d257e47b4ac90262ccc1
* Snap: Remove auto HDR option when not supportedMichael Bestas2019-10-251-0/+4
| | | | Change-Id: Iaff1bee5ad6d48df2efe189955ba91bca8ec5c32
* Snap: Fix filtering of unsupported HFR/HSR modesMichael Bestas2019-10-251-3/+26
| | | | Change-Id: I7721613f10a24cbd36eb0a3c5b0a46a98e828679
* SnapdragonCamera: Scale up bitrate for HSR recordingsSultanxda2019-10-251-1/+2
| | | | | | | | | | Currently, bitrate is only scaled up for HFR (slow-mo) recordings, not HSR (full high-speed) recordings. Scale up the bitrate for HSR to prevent video-quality degradation. Change-Id: Icc009ad4b22d990cc6df6773d965579a7d9cb091 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Don't crash if user saved preference is not validGabriele M2019-10-251-1/+5
| | | | | | | | If the user sets some preference value that is later removed, Snap will crash because of on an ArrayIndexOutOfBoundsException. Make sure this doesn't happen. Change-Id: I629acebaf762f49f05dc1bfa0542f11979ae269d
* Fix crash if Exif-Tag buffer-length and component-count are both 0tobigun2019-10-251-1/+1
| | | | Change-Id: Iad9b60d135b4f682c08c3bfc9698cdd10e1086ab
* SnapdragonCamera: Set camera parameters before restarting previewSultanxda2019-10-251-0/+1
| | | | | | | | | Ensure that all of the updated camera parameters are propagated to the camera HAL prior to restarting the preview. This fixes the split-exposure observed when turning ZSL off and on without exiting the app. Change-Id: I392549ae7cc75b150e01cf8b635d2e3f1ad6ffb9 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Snap: Don't crash when hardcoded gallery intent failsEthan Chen2019-10-251-8/+16
| | | | | | | * startActivity may also throw IllegalArgumentException in addition to ActivityNotFoundException when the component can't be found. Change-Id: Ia3124591c625f4c249f3c6f76a226e8178df6e9d
* SnapdragonCamera: Fix UI alignment glitches when nav-bar is enabledSultanxda2019-10-252-2/+2
| | | | | | | | | Snapdragon Camera is immersive (i.e. fullscreen), so we expect to receive the actual size of the display here, not the modified size when the nav-bar is enabled. Change-Id: I942829f77dda0dbb9dd65a60e66a540eecf708e7 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Fix overly-aggressive auto rotationSultanxda2019-10-251-2/+2
| | | | Change-Id: I534c0e36ac826b1d46befe99182bfbfb3b0f22da
* SnapdragonCamera: Add option to control antibanding in camcorderSultanxda2019-10-252-16/+8
| | | | | | | The antibanding setting in camcorder is linked to the setting in camera mode for better UX (if you change one, the other will change accordingly). Change-Id: I98c1bc65472cf8eec530f5a7572f46458b0ab3fa
* Snap: Actually select the highest quality video by defaultChristopher R. Palmer2019-10-252-2/+9
| | | | | | | | | | | Prior to this commit Snap assumes that the HAL returns the list of supported video sizes in descending order of quality and simply picks the first one from the list as the default quality. Instead, find the first matching entry of pref_video_quality_entryvalues that the HAL indicated was supported. Change-Id: Ifea79e0e16a9015557539e098317536a32b9ff1f
* Snap: Remove touch AF/AEC optionSteve Kondik2019-10-253-58/+15
| | | | | | | | | | | | | | | | | | | | | | | | | Author: Steve Kondik <shade@chemlab.org> Date: Wed Dec 25 15:10:58 2013 -0800 Snap: Remove touch AF/AEC option * Drop the use of the touchaf-aec parameter entirely. No camera needs this anymore. Change-Id: I83154a75e5375901dc6c0fc93aef23637cfdf425 Author: Steve Kondik <steve@cyngn.com> Date: Sun Jul 31 19:09:37 2016 -0700 snap: Always turn touch-af-aec on * Most cameras do this by default, but on at least one device it starts with the option disabled. This stops AEC from updating during touch focus. Change-Id: I4bdb6cdbad86f3798c0288d6a32b7e8062e297f3 Change-Id: Ia3f4a312af1b4b7b6e4c0d3f76c09efe798c730c
* Snap: Support for HTC's HDR modeSteve Kondik2019-10-252-12/+13
| | | | | | | | | | * 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
* Snap: Add special handling of hdr-mode parameter for LGE devicescodeworkx2019-10-252-12/+45
| | | | | | | | | | | | | | | | | | | | Author: codeworkx <codeworkx@cyanogenmod.org> Date: Sat Jan 9 11:52:01 2016 +0100 Snap: special handling of hdr-mode parameter for lge devices Change-Id: Iefee1f15f5649c2f93c59fcbdedcf953e9e0bc54 Author: codeworkx <codeworkx@cyanogenmod.org> Date: Mon May 9 21:28:40 2016 +0200 Snap: force enable zsl for lge hdr LGE HDR needs ZSL enabled Change-Id: I563b7f7cd49fcf8aad35ca4b93f839dc0a591f01 Change-Id: I139a4492ae85b87ca1cc84013f252b510200fffc
* Snap: Fix NPE when parameters.getSupportedVideoSizes() is nullMichael Bestas2019-10-251-100/+19
| | | | | | | | * Older devices do not support parameters.getSupportedVideoSizes() * Assume that the device reports valid profiles in media_profiles * Remove dead code Change-Id: Ic3488b6762496bd9498bc6bf8b48b2a2212bad51
* CameraActivity: Handle NPE when film strip view is nullLuK13372019-10-251-1/+3
| | | | Change-Id: I0de4ec0f2cb4653822249ea97e8a07c890fc7231
* 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: Fall back to default quality for invalid video qualitiesMichael Bestas2019-10-251-3/+2
| | | | | | Might happen when updating from previous versions of Snap Change-Id: I42d2037b4e32c7f5c88a60b5da1895dcb761d176
* Snap: Add support for mw_continuous-picture focus modecodeworkx2019-10-252-12/+36
| | | | | | | | | | | | | | | | | | | | | | 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 shutter speedcodeworkx2019-10-253-0/+41
| | | | | | | | | | | | | | | | | | Author: codeworkx <codeworkx@cyanogenmod.org> Date: Wed Jan 6 11:35:40 2016 +0100 Snap: add support for shutter speed Change-Id: Id3393280c7c1c2f292d71587ba099e8dbafd1340 Author: codeworkx <codeworkx@cyanogenmod.org> Date: Fri Jan 8 19:38:15 2016 +0100 Snap: Restart preview when shutter-speed gets disabled Change-Id: I3884b23f1c855cfffeb20ca6e2a760732370d772 Change-Id: I82144c80d8fc2e7324b3dc8cde44b5b2934bdd50
* Snap: Add touch-to-focus timeout duration settingsjt11342019-10-254-5/+20
| | | | | Change-Id: Ib2c2c152a52b2616dd0da6f071f572d34fe64065 Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
* Snap: Make openLegacy an optioncodeworkx2019-10-251-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | Using openLegacy on QCamera3 forces it to use QCamera2 and fall back to api v1 which is not what we want on v2 devices. Author: codeworkx <codeworkx@cyanogenmod.org> Date: Tue Jan 5 23:02:12 2016 +0100 make openLegacy an option Change-Id: Ia4142288ef0fafa62fa0ab855dc342b363b640cd Author: Zhao Wei Liew <zhaoweiliew@gmail.com> Date: Sun Jul 10 15:11:43 2016 +0800 Snap: Tighten openLegacy() try-catch block We only have to enclose the openLegacy() call in a try-catch block. This prevents us from re-calling open() when open() fails and throws a RuntimeException. Change-Id: I81396e453f57215338a0c4da41c4116f2b4d42ca Change-Id: Ic392a4ae9403ebae36940ddf0727237d9cb9e8f0