summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Fix missing icon issue in error conditionJay Wang2016-08-031-0/+1
| | | | | | | | When onError is called from media recorder, re-draw the video control icons after stopping the recording session. Change-Id: If7a38ff4c12ec90018fe0d1a89d08fd94bf89f6f CRs-Fixed: 982804
* SnapdragonCamera: Reset menu when device is rotatedByunghun Jeon2016-08-031-0/+1
| | | | | | | Reset the settings menu when the device is rotated Change-Id: I6c4fed7207a4d26a9d7c29d18f6a7af17ef3d4f9 CRs-Fixed: 981504
* SnapdragonCamera: Register media status listenerJack Yoo2016-08-031-3/+5
| | | | | | | Register sd card media status listener on resume. Change-Id: I7b3b7e3104b7729c83d83926bb794e0d7ec237d2 CRs-Fixed: 960865
* SnapdragonCamera: Adding toast for media recording failure.Jack Yoo2016-08-031-1/+1
| | | | | | | | Adding toast message to be shown to the user when media recording is failed due to permission issue. Change-Id: I5392b41b97c73ade8df7b5d70647361306c4f695 CRs-Fixed: 944657
* VideoModule: Removing tmpPath and use pathJack Yoo2016-08-031-2/+1
| | | | | | | Not necessary to have tmpPath as it won't be accessed together Change-Id: I0a97e2b114bf7a554b21c4ccb20d620a01a3c579 CRs-Fixed: 877959
* SnapdragonCamera: Fix the issue that IS is not disabledJay Wang2016-07-301-1/+2
| | | | | | | | | | IS needs to be disabled when 4K video is captured. However, 4K video checking logic doesn't include the time lapse 4K profile and reports the incorrect state. This causes the video module fails to disable the IS. Change-Id: I15bfb2e9e6022e367a68819a436e3296d085d33b CRs-Fixed: 997368
* SnapdragonCamera: Disable CDS and TNR if SeeMore is enabledShwetha Kotekar2016-07-301-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If seeMore is enabled, send a disable command to HAL to disable the CDS and TNR features. Change-Id: I91bac0a01c58cb13ba32296739b47f74dc296003 SnapdragonCamera: Enable SeeMore option for 4k. Currently SeeMore option for 4k recording is disabled. As per requirements, enabling the same. Change-Id: I69e84e0c20c199d80fc819f8aa6be62605bfbd79 SnapdragonCamera: Turning off CDS and TNR while SeeMore is on. Ensuring turning off of CDS and TNR while see more feature is on. Change-Id: I74c76f8b07046b8dca9db2be162b7ef20ba2d96d CRs-Fixed: 937242 Camera2: Add StillMore option in Camera app menu Add menu item for StillMore feature under the Advanced Features item during camera preview. Change-Id: I89ae260339896878ff4f1c5099885c6f3b05a18b SnapdragonCamera: Changes to enable TNR processing by default. TNR was disabled by default from UI. Change configures TNR for camera stream to improve image quality. CDS is disabled as TNR is enabled by default from now. Change-Id: I7c1bf9533c52b8642fb15f79625cec57cc85b6cf Crs-fixed: 890243 SnapdragonCamera: Checking whether SeeMore is available Checking if the preference is available. Change-Id: Ie885b9312f2fe054e272d15b9a38e2cedf756632 CRs-Fixed: 957117
* Snap: Update comment to reflect audio focus changesMichael Bestas2016-05-261-4/+2
| | | | Change-Id: I60655aa3a42be218dac5062932692a49a596bedf
* SnapdragonCamera: Release audio focus when video recording is doneJay Wang2016-05-261-1/+13
| | | | | | | | When video capturing is finished, release the audio focus so music application can resume the playback. Change-Id: I5c425b7717e9a31ec9c839ed2689d9b1da852428 CRs-Fixed: 1012070
* SnapdragonCamera: request audio focus before starting video recordingJay Wang2016-05-261-7/+12
| | | | | | | | Use audio focus API to stop other music streams when starting video recording. Change-Id: I0097d0c2bd7157bc1936b9120bbe7c917b9707ee CRs-Fixed: 1005855
* SnapdragonCamera: Fix the memory leak on view.Jack Yoo2016-05-261-0/+7
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* Snap: Add support for focus distanceSteve Kondik2016-04-201-0/+16
| | | | | | * Hook up available metadata to the new focus manager. Change-Id: I793df67a2682d8bb2dee994193111227dd8c8d5a
* Revert "Snap: Improve focusing"Ethan Chen2016-04-201-39/+12
| | | | | | This reverts commit 57799db3c1757618e00d331fe659ac4058624352. Change-Id: I6027d853c9791a1b14c0dffcce038b450019735a
* Snap: Improve focusingSteve Kondik2016-04-141-12/+39
| | | | | | | * Don't needlessly break touch-to-focus during various modes * Set focus parameters immediately for better UX Change-Id: I39b287562c3d2b62a1d5c8953577e366b11b8e15
* SnapdragonCamera: Fix HSR recordingSultanxda2016-02-171-6/+0
| | | | | | Needed after recent framework changes upstream. Change-Id: Iedee3cf32216eb4cea663a5518d5dfa62725203f
* SnapdragonCamera: Remove bitrate and framerate scaling for HFRSultanxda2016-02-171-12/+4
| | | | | | This is done in the framework now. Change-Id: I3d35de5099db4f1e4b9a29d4a6c8c9e6ccdf5af7
* SnapdragonCamera: Fix timelapse recordingSultanxda2016-02-171-16/+12
| | | | | | | | | Audio should not be encoded when the timelapse feature is used. This fixes the force close when attempting to record a timelapse video. Change-Id: I376372b316a7a75b0883e6c93eb1d827e4007a04 Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Enable audio recording for HSR videosSultanxda2016-02-171-5/+10
| | | | | | | | | Unlike HFR (slow-mo), HSR (high-speed) supports audio encoding at the normal rate (as HSR videos are full speed, and are thus not slowed to 30 FPS). Change-Id: I7b699ebb12fd1d84fc79979669a42c608e1aa7dd Signed-off-by: Sultanxda <sultanxda@gmail.com>
* SnapdragonCamera: Scale up bitrate for HSR recordingsSultanxda2016-02-171-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: Fix crash when set infinite touch-focus durationMichael Bestas2016-02-101-1/+1
| | | | | | | * java.lang.Integer.valueOf(string) method can't parse hexadecimal values Change-Id: I42706db72fc9c1093a7aa16440af449f731e5176
* Snap: Separate default focus time between camera/videoSultanxda2016-02-071-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 focus time support in camcorderMichael Bestas2016-02-071-0/+5
| | | | Change-Id: I5432554a40d7375ed7893c38cb2741a12cc8cc80
* SnapdragonCamera: Lock AE and AWB for tap-to-focus in camcorderSultanxda2016-02-071-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: Add focus-mode option to camcorderSultanxda2016-02-071-2/+5
| | | | | | | User can now control the focus mode used while recording video. Change-Id: I340c01a3f88314de67ca024279672276eff453ed Signed-off-by: Sultanxda <sultanxda@gmail.com>
* Remove unused menu indicators code.Danny Baumann2016-01-201-7/+0
| | | | Change-Id: I0ce48da277a532b46fdde15027f636de4d7585b7
* SnapdragonCamera: Add option to control antibanding in camcorderSultanxda2016-01-191-16/+7
| | | | | | | 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
* Revert "Camera: Propagate power mode selection from UI to lower layers."Ricardo Cerqueira2016-01-161-40/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 5302d2e099de0ae1c3cb4a9cda993fe28b0e8c46, runtime power-mode changes are causing stability issues in camcorder Change-Id: I118f7c47bea2d07296dc18ed8a3a790eef592ca2 Revert "SnapdragonCamera: Disable LPM if DIS/Flip are enabled." This reverts commit 6cd860119a45b4a44d3e1314981862d9dac47955. Revert "SnapdragonCamera: Set low power mode by default." This reverts commit d4fccc04331a6a5a7038a542f7d17ecefa4ac95a. Revert "SnapdragonCamera: Enable low power mode in Camera." This reverts commit 195fccbe69e92b0312822aa762bb53d301c0f56f. Change-Id: I623626e60efc850fe182e54d9e9997ca41275579 [mikeioannina]: Remove the now obsolete power mode setting and unhide the video snapshot size setting Change-Id: I118f7c47bea2d07296dc18ed8a3a790eef592ca2
* Drop new focus indicator into Camera2.Paul Rohde2016-01-151-1/+1
| | | | | | | * 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: Actually select the highest quality video by defaultChristopher R. Palmer2016-01-151-1/+1
| | | | | | | | | | | 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
* SnapdragonCamera: limit video file size on SD cardlikaid2016-01-141-0/+6
| | | | | | | | | Videos over 4GB on SD card cannot be played correctly. Set a limit if video is stored on SD card. Change-Id: I9f658527c2f6ee4408b6f9c8c0b45e2b9ea9bf8b CRs-Fixed: 902533
* SnapdragonCamera: Fixing NullPointerException in onCreate of VideoModuleSanjeev Garg2016-01-141-1/+1
| | | | | | | | | | As per new open camera optimization, setContentView is called after init. But VideoModule has a dependency in initialization on setContentView as if setContentView is not called before using mFilmStripView then its value is null. To avoid this changed the location of using mFilmStripView from initialization to onResume. Change-Id: I6f0116fa82554b11b06d733b3952e6596daa50d3
* Fix mismerge of "SnapdragonCamera: fix screen flash on resuming"Arne Coucheron2016-01-111-1/+0
| | | | Change-Id: I9c2c7a74b5816b3f930e22ee1fce625e7ad768e3
* Snap: Fall back to default quality instead of 352x288Michael Bestas2016-01-111-9/+2
| | | | | | * Not all devices support this resolution Change-Id: I42d2037b4e32c7f5c88a60b5da1895dcb761d176
* Snap: Set parameters before starting previewlion07382016-01-101-5/+6
| | | | | | | Old parameters are used when grabbing focus mode. Camera parameters should be set to FocusOverlayManager before starting preview. Change-Id: I908559e1c2003be47b486996b0ec016b78107468
* SnapdragonCamera: fix screen flash on resumingLikai Ding2016-01-081-0/+7
| | | | | | | | | Currently preview cover will be hidden shortly after preview started, but if the actual first frame comes late, the main screen will flash. Register a oneshot preview callback to hide preview cover. Change-Id: I81fabf2d97c32fc2112cf4fceef4edd0872439e2 CRs-Fixed: 889021
* SnapdragonCamera: Hide the preview cover when preview has startedlikaid2016-01-081-0/+1
| | | | | | | | | | | The preview cover was shown when onPause, but didn't hide after resume. That caused the video preview turned to black screen. After the camera preview starts, hide the preview cover if it is still showing. Change-Id: I79fdcd45d46d7c083a132e864bbf42649b100ae4 CRs-Fixed: 865933
* SnapdragonCamera: Fix the icons disappeared when start recording failedlikaid2016-01-081-9/+13
| | | | | | | | | | | | The camera switch icon and color effect icon are hidden when start recording, they will be shown again in onStopVideoRecording. But if the start recording failed, the onStopVideoRecording will not be called, that causes the icons disappeared. Show the icons if start video recording failed. Change-Id: I05f64d6fc4928adbd6d8e43e0b31e21e8cb6ea9e CRs-Fixed: 863790
* SnapdragonCamera: Add support for high-speed video recordingPraveen Chavan2016-01-071-61/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | [1] Use combination of MediaRecorder.setCaptureRate and setVideoFrameRate API to achieve HFR/HSR ------------------------------------------------------------ CaptureRate videoFrameRate Recorded-video ------------------------------------------------------------ 120 30 slow-mo @30fps 120 120 high-speed-video @120fps ------------------------------------------------------------ Deprecate usage of custom fields added to media-profiles for checking max-capabilities. Instead, introduce high-speed profiles and advertize correct values (resolution, fps) to indicate target capabilities. Add conversion routines in CameraSettings to convert from normal quality level to time-lapse/high-speed quality. Also, add back 4KDCI and VGA support TODO: Implement bitrate scaling if AOSP does not implement in native. Change-Id: Ic1d5ed8ef52348cab2383abe304056e0401f7069
* Snap: add fallback for invalid video qualitiescodeworkx2016-01-071-0/+7
| | | | | | Might happen when updating from previous versions of Snap Change-Id: Ib52a2daff5a45c33ede1effd7cb7bed2fe61e5cc
* SnapdragonCamera: Query camcorder profiles before usageSai Kumar Sanagavarapu2016-01-071-2/+3
| | | | | | | | 1. Use generic camcorder profile query mechanism instead of hardcoding profile enums in app. 2. Fix NPE during startpreview if mFocusManager is null. Change-Id: I7bfc00f68f512c3029ca8ba75863583f1b376094
* SnapdragonCamera: Fix compilationShuzhen Wang2016-01-021-4/+9
| | | | | | | | | | 1. Address compilation due to compiler upgrade. 2. Comment out video dependencies to enable camera. 3. Fix compilation issue due to IMountService interface change. 4. Comment out ExtendedFace. 5. Remove non-standard video resolutions. Change-Id: I167ab5ff399c4f1d306a1a7ddf94896565c9625a
* 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