summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
Commit message (Collapse)AuthorAgeFilesLines
* Camera2: Prevent propogating CancelAutoFocus during Video Recordingcm-12.1Dheeraj CVR2015-09-201-1/+0
| | | | | | | | | | 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
* Camera2: Prevent autofocus when video snapshot is in progressDheeraj CVR2015-09-201-1/+1
| | | | | | | | | 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
* camera: Touch focus support for camcorderSteve Kondik2015-09-201-9/+135
| | | | | | | | | * Available when video snapshots are not supported. * Original from CodeAurora Forum. Sultanxda: Adapted to Snapdragon Camera Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d
* SnapdragonCamera: Quick icon disappear after stop record by home keykaiyiz2015-09-171-0/+1
| | | | | | | | | | | | | | Color effect and switch camera icons disappear if re-launch camera after press home key during recording video. The icons are hided when start record video, but show icons aren't called after stop video record by press home key. Show and hide icons should always be called when stop and start record video, so move the functions to stopVideoRecord and startVideoRecord. Change-Id: Ie4fe9102e226452502fcc382329cc0e01799b0cf CRs-Fixed: 777114
* Snap: Cleanup video profile handlingMichael Bestas2015-09-171-20/+8
| | | | | | | | | | | | | | * Fix camcorder crashes on older devices Revert "SnapdragonCamera: Fix compatibility issues with KK." This reverts commit 0d33346534a728a1f8efaec05fcdccbe3e5440e1. Revert "SnapdragonCamera: Throw error popup for unsupported video profile." This reverts commit 3e50703cff0bc243b922a2299c58a45a4cbd91a9. Change-Id: I1152180a590650a7583430936f3759d1831e91dd
* Camera2: Add option to set max screen brightnessMichael Bestas2015-09-171-0/+4
| | | | | | * Set maximum screen brightness while the user is inside the camera app Change-Id: I8b16ba47a933bc7d6b0c1cd62bfd6ca54875ce1e
* Camera2: Headset shutter modeDave Daynard2015-09-171-0/+6
| | | | | | | Use play button on headset to take a picture/video/panorama Use media next/previous for zoom Change-Id: I25c22646b041e5e0941fbe361eccfe77a2a1e42f
* Camera: Cleanup hardware key handlingMichael Bestas2015-09-171-9/+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
* Camera: Powerkey shutter (2/2)Michael Bestas2015-09-171-0/+10
| | | | | | | | | | | | | | Ported from cm-10.1 Including cm-10.1 camera commit: aa4ae80a41fbab763891c5ef6d67a9e5b4bb981b Don't mess around with pref local ID for power shutter initialization. Includes http://review.cyanogenmod.org/56986 [mikeioannina]: Updates for L Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: I0992baa558eefd306d00fbece59cb5c512d9448b
* Camera2: implement volume key zoom in video modejt11342015-09-171-0/+9
| | | | Change-Id: I140e8cfb3e39700f60e40c35b38e92c83a3c26de
* Camera: separate settings for color effectsjt11342015-09-171-1/+1
| | | | | | | Store color effect settings for the camera and video camera in their own separate preferences. Change-Id: I8faa59b8663154737910b338906d27f9736d5ad9
* Camera2: implement exposure compensation settings in video modejt11342015-09-171-0/+22
| | | | Change-Id: I83a2675e109dc7924cdd9240b26051ac218f532a
* Camera2: Remove CAF video duration codeMichael Bestas2015-09-171-20/+1
| | | | Change-Id: I583e212f3c43a5ddf80fdb16557b3ddd9e3161c2
* camera: Cleanup and compatibility fixesSteve Kondik2015-09-171-1/+3
| | | | | | | * Don't crash for unavailable integer parameters * Kill logspam Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc
* camera: Add parameter debugging supportSteve Kondik2015-09-171-0/+3
| | | | Change-Id: Ifc1653f0046af169ba36d94796b4d9a3055c6798
* SnapdragonCamera: Hide UI after error-checking video preferencesSultanxda2015-09-171-1/+2
| | | | | | | | | | * Hiding the UI before error-checking the video preferences when video recording starts results in a broken UI when one of the error cases evaluates to be true. * Hide the UI after the error checking to prevent the UI from breaking when an error is found. Change-Id: Ia98798dbf2a33800d47497630714af17865767c6
* Snapdragon Camera: Use consistent API for preview fps resetEmilian Peev2015-08-291-5/+3
| | | | | | | | | | 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
* Validate preview format before setting it to camera device.Santhosh Kumar H E2015-08-291-2/+5
| | | | | | | | | For 720p and 1080p video resolutions, nv12_venus preview format is being set. But few targets doesn't support this preview format. So validate the preview format with supported list before setting it to camera device. Change-Id: I29b3b2b412b04abf82c61c732414e00aa1bff243
* Camera: Set preview fps after recording.Suman Mukherjee2015-08-291-0/+12
| | | | | | | | 4k DCI recorded FPS is getting picked up from profile and not getting reset to preview FPS after stop recording. Fix made to set the preview FPS range after stop recording. Change-Id: I4892e6fcee3eefbcbd6ca9426e56e2303cdad844
* Camera2: Disable SeeMore feature during 4K videoShwetha Kotekar2015-08-291-2/+13
| | | | | | | If the video resoultion is 4K, disable SeeMore and show a toast message Change-Id: Ieb947f889d92fb8f9af5bf52c865555dce7eb1c4
* SnapdragonCamera: honor video duration limit in intentLikai Ding2015-07-231-10/+8
| | | | | | | The video duration limit read from intent is later overwritten by the value from preference. Change the order to honor the intent value. Change-Id: I833b1fbcecbbaeff48ff51144f5e584e91fb1838
* SnapdragonCamera: Don't disable the cameraWei Ding2015-07-221-1/+1
| | | | | | | | 1) Don't disable the camera activities if atleast one camera is detected. 2) Pass CameraID to know profile is supported or not. Change-Id: I307bf0c5ca228eef2ae69596f648fbdabff83398
* Merge "SnapdragonCamera: Customize camera video quality"Linux Build Service Account2015-04-151-1/+7
|\
| * SnapdragonCamera: Customize camera video qualitylikaid2015-04-151-1/+7
| | | | | | | | | | | | | | | | | | | | | | SnapdragonCamera's default video quality value was set to highest supported video resolution whitch was "720P" Add the default video quality value string "pref_video_quality_default" and overlay it to "VGA" CRs-Fixed: 815638 Change-Id: I5013880a42028e0663a3d22ffa3cddf87990146b
* | SnapdragonCamera: customize camera picture qualitylikaid2015-04-091-1/+1
|/ | | | | | | regional feature Change-Id: I4c80b4970ff4f628080cad20980aa545add6fdcf CRs-Fixed: 815630
* SnapdragonCamera: Handle CAMERA_ERROR_SERVER_DIED message gracefully.Sai Kumar Sanagavarapu2015-03-201-1/+1
| | | | | | | | | Handle CAMERA_ERROR_SERVER_DIED message from lower layers by finishing the activity and there by closing camera session and app gracefully. In all other error cases, raise exception and kill app as exists already. Change-Id: I86c4caf174356148bd4725329ea13ec82e944b94
* SnapdragonCamera: Fix app FC when time lapse and HFR is set to ONlikaid2015-03-111-3/+0
| | | | | | | | | | | After HFR and time lapse both are on, the ListMenu is initialize again and mListMenu is set null which lead to NullPointerException happened. Don't initialize listmenu when it's showing, move toast to VideoMenu reference similar code in PhotoModule. Change-Id: I9eaa308cc1b5eccb7bc86a3da6ae99f09b280be9 CRs-Fixed: 796135
* Merge "SnapdragonCamera: Set highest supported video resolution by default."Linux Build Service Account2015-02-271-11/+3
|\
| * SnapdragonCamera: Set highest supported video resolution by default.Sai Kumar Sanagavarapu2015-02-271-11/+3
| | | | | | | | | | | | | | Instead of defaulting to CIF, set the highest supported video resolution as the default video profile. Change-Id: I6cb1eab905d193cbc03f528d0fbc81f5af49ab89
* | SnapdragonCamera: Throw error popup for unsupported video profile.Sai Kumar Sanagavarapu2015-02-271-0/+14
|/ | | | | | | Check if the quality selected has a matching camcorder profile associated and show error popup if not supported. Change-Id: If3e1e3d62b4e2e9c8c16b9e4a346cbfa93c0f92b
* SnapdragonCamera: circular thumbnail iconLikai Ding2015-02-171-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 (cherry picked from commit ac714ea974b4bd0ef99403def5aa7d8a3deecc5d)
* SnapdragonCamera: Disable LPM if DIS/Flip are enabled.Sai Kumar Sanagavarapu2015-02-131-6/+26
| | | | | | | Low power mode has to be disabled if DIS or Flip are enabled, because we need pproc to process these. Change-Id: I00cc015f23f8e16d3acadc995ad2f6839c2d8333
* Merge "SnapdragonCamera: Improve app stop latency"Linux Build Service Account2015-02-061-2/+3
|\
| * SnapdragonCamera: Improve app stop latencyShalaj Jain2014-12-091-2/+3
| | | | | | | | | | | | | | | | | | Disable shutter button before starting/stopping recording on a shutter button click and enable it after without any delay. Add logs to know when shutter button is disabled/enabled. Change-Id: Ibca1e964d2e2fc1c1bd47c104f87289eb2a507bf
* | SnapdragonCamera: fix portrait orientationLikai Ding2015-02-021-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "SnapdragonCamera: Set low power mode by default."Linux Build Service Account2015-01-181-0/+5
|\ \
| * | SnapdragonCamera: Set low power mode by default.Sai Kumar Sanagavarapu2015-01-111-0/+5
| | | | | | | | | | | | | | | | | | If low power mode is supported, set it ON by default. Change-Id: If51754220a333be1d2733bf97a5adedc94d9fd5a
* | | SnapdragonCamera: Quick icon disappear after stop record by home keykaiyiz2015-01-071-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Color effect and switch camera icons disappear if re-launch camera after press home key during recording video. The icons are hided when start record video, but show icons aren't called after stop video record by press home key. Show and hide icons should always be called when stop and start record video, so move the functions to stopVideoRecord and startVideoRecord. Change-Id: Ie4fe9102e226452502fcc382329cc0e01799b0cf CRs-Fixed: 777114
* | SnapdragonCamera: Enable video recording pause/resume from applicationSanthosh Kumar Thimmanna Bhattar2014-12-231-2/+2
| | | | | | | | | | | | | | | | | | - Video recording pause/resume feature is not working as it is disabled by commenting out the pause/resume function call from snapdragon camera application. - Fix is to enable the pause/resume function call from application Change-Id: If75ab41000d0c62259a46135246fafe3398f5fd9
* | SnapdragonCamera: Enable CPP duplication by defaultRajaram Gudivada2014-12-101-7/+13
|/ | | | | | | | | | | Set NV12_VENUS for preview stream, when both the below conditions are met 1. setprop "persist.camera.cpp.duplication" is enabled(Default value is enabled) 2. If both preview & video resolution's are exactly same Change-Id: I2b58091071c36a624d986f14bbe1abe9c95a4c18
* SnapdragonCamera: Fix compatibility issues with KK.Sai Kumar Sanagavarapu2014-11-261-3/+3
| | | | | | | | | 1. Remove openLegacy call to open camera. 2. Use generic camcorder profile query mechanism instead of hardcoding profile enums in app. 3. Fix NPE during startpreview if mParameters is null. Change-Id: I7bfc00f68f512c3029ca8ba75863583f1b376094
* SnapdragonCamera: Add preview thumbnail buttonByunghun Jeon2014-11-191-0/+4
| | | | | | Add preview thumbnail button and touch it to go to gallery Change-Id: Ib80ef94c677c204d7f0826356792aba2aa11d4d1
* Merge "SnapdragonCamera: Use MDP composition instead of GPU"Linux Build Service Account2014-11-191-5/+7
|\
| * SnapdragonCamera: Use MDP composition instead of GPUByunghun Jeon2014-11-171-5/+7
| | | | | | | | | | | | Use MDP composition instead of GPU Change-Id: I4f47d26365bd611242a21e66b232d7521b502b04
* | Merge "SnapdragonCamera: Modify SnapdragonCamera UI"Linux Build Service Account2014-11-191-2/+5
|\|
| * SnapdragonCamera: Modify SnapdragonCamera UIByunghun Jeon2014-11-171-2/+5
| | | | | | | | | | | | Modified SnapdragonCamera setting menus with new icons Change-Id: I726296dfb100ac81ad6f1cd84420ae27c0ae1201
* | Merge "SnapdragonCamera: Fix shutter button is disable after stop record video"Linux Build Service Account2014-11-171-0/+1
|\ \ | |/ |/|
| * SnapdragonCamera: Fix shutter button is disable after stop record videokaiyiz2014-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The shutter button is disable before take a snapshot, and shutter button will be enable when called onPictureTaken, but enable shutter code will not be run when onPictureTaken is called after stopVideoRecording and sometimes onPictureTaken still not called. Enable shutter button when stopVideoRecording. CRs-Fixed: 703000 Change-Id: I4e7e2d17cfee33c7b91091f5c47ae85718054912
* | SnapdragonCamera: enable cpp duplication using system propertyVijay kumar Tumati2014-11-121-4/+10
|/ | | | | | | | This changes allows user to enable 1080P and 720p mirroring conditionally based on a system property (persist.camera.mirroring.enable) Change-Id: I7ec2cf7140682e496622c5874bc6667c33b03ad8
* Merge "SnapdragonCamera: To enable duplication for 720p"Linux Build Service Account2014-11-061-3/+11
|\