summaryrefslogtreecommitdiff
path: root/src/com/android/camera/VideoModule.java
Commit message (Collapse)AuthorAgeFilesLines
...
* SnapdragonCamera: Add face detection icon to videoJay Wang2016-03-021-0/+52
| | | | | | | Add video face detection to developer option CRs-Fixed: 978207 Change-Id: I9308573a5a1004fc3803a955bc96f495ecbfc6c7
* SnapdragonCamera: Disable NR when SeeMore is enabledJay Wang2016-02-191-9/+21
| | | | | | | | - Add condition to disable NR when SeeMore is enabled - Clean up the SeeMore conditional checking logic Change-Id: I191794c034e0c70818cee785516575d5642497ca CRs-Fixed: 972044
* SnapdragonCamera: Fix flickering Video previewByunghun Jeon2016-02-191-1/+2
| | | | | | | Fix flickering Video preview when pause/resuming Change-Id: I7e20cfdc06fc940f4fc96f408ce6ab570b0d8e64 CRs-Fixed: 971394
* SnapdragonCamera: Fix blank preview issue during pause & resumeJay Wang2016-02-031-1/+3
| | | | | | | | | | | | | | | Continuous pause & resume operation by pressing the power button can cause the blank preview. The application close the camera when there is onPause or screen off intent. Sometimes the resume comes after screen off intent when user resumes the device quickly after pausing the device. Because of this race-condition, the camera is closed unintentionally. To resolve the issue, re-structure the code to receive screen-off intent only during video recording and stop the recording when intent is received. Change-Id: Ic993b83527b41dbbf53f63ef8ca25fa3a12fb77e CRs-Fixed: 970172
* SnapdragonCamera: Fix the memory leak on view.Jack Yoo2016-01-301-1/+7
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* SnapdragonCamera: Register media status listenerJack Yoo2016-01-301-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-01-201-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
* SnapdragonCamera: Introducing mute buttonCamera Software Integration2015-12-221-0/+28
| | | | | | | Introducing audio mute button on video recording Change-Id: I69ff6fe97c4b8d76a890b5e41667dab534d69ba8 CRs-Fixed: 937239
* SnapdragonCamera: Moving Image Stabilization option to the menuCamera Software Integration2015-12-221-1/+2
| | | | | | | Moving Image Stabilization option to the menu Change-Id: I7fb025a3d1909af436e7a52ee9d602b2ce2dc68b CRs-Fixed: 937237
* SnapdragonCamera: fix screen flash on resuming for videoCamera Software Integration2015-12-221-1/+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. Register the callback before calling startPreview. Change-Id: Ide0dd4b2eebe7cb73a2192f11c4ea3a471718c05 CRs-Fixed: 911138
* SnapdragonCamera: Handle cam switch icon if numOfCams less than 2Sanjeev Garg2015-11-181-4/+8
| | | | | | | | | While generalizing SnapdragonCamera app for any number of cameras we have to handle a special case if number of camera's are less than 2. If there is only 1 camera in the app then there is no camera switch option and hence the corresponding switch icon object is null Change-Id: I672708bb98a30054adaf916bb272b50cdd8d0091
* SnapdragonCamera: add video snapshot size optionByunghun Jeon2015-10-291-7/+20
| | | | | | | | Add developer option to choose video snapshot size. The "Auto" option will revert back to old behavior of choosing the largest size with the same aspect ratio as the preview. Change-Id: Ice68aef1963c1199d30e1edde4cccf7203f8fbbf
* Revert "SnapdragonCamera: fix screen flash on resuming"Byunghun Jeon2015-10-291-7/+1
| | | | | | This reverts commit 1ab897565fa4d7543af44d263d7039a32cce2666. Change-Id: Id5c0d5e7015ed656bb9f2190b1d9e408379392a5
* Revert "SnapdragonCamera: Use floating components during video record."Byunghun Jeon2015-10-291-5/+0
| | | | | | This reverts commit 59b05fd1d75943f037aec41def16cdceb6443ecf. Change-Id: I807bdbf0fe669a989d58484ab11451c891acaf5b
* SnapdragonCamera: Fix QUALITY_4KDCI variable name for M upgradeByunghun Jeon2015-10-291-1/+1
| | | | | | Fix QUALITY_4KDCI variable name to be proper for M upgrade Change-Id: Iab3c884b784bdd8652a2755fee4f70fbea7fa7ed
* SnapdragonCamera: Enable audio for HSR and fix video encoder bitratePraveen Chavan2015-10-291-10/+24
| | | | | | | | | Enable audio for HSR (stays disabled for HFR). Scale the video-bitrate based on what the profile says and the target-framerate being set on the encoder. Change-Id: I93206bf56409ab053bfbde463f8deb8c84f7c844 CRs-Fixed: 899460
* SnapdragonCamera: Enable camcorder pauseJaimin Bhise2015-10-291-1/+1
| | | | | | | Enable camcorder pause, as MediaRecorder support has been added. Change-Id: I0b710145134a2bccf52c5e76525ff187d83905e5
* SnapdragonCamera: re-enable H265 encodingPraveen Chavan2015-10-291-2/+1
| | | | | | Enable H265 video format Change-Id: Id307c98ad9cf09b71194dc38f2fbdfd11328a241
* SnapdragonCamera: Query encoder capabilities for unsupported profiles.Sai Kumar Sanagavarapu2015-10-291-74/+68
| | | | | | | Query encoder capabilities like max fps, width, height ,etc and based on this result enable/disable certain profiles/hfr modes. Change-Id: Ib5adf74eaa8d50f9ed8337a88932527624727cd4
* SnapdragonCamera: Add support for high-speed video recordingSurajit Podder2015-10-291-13/+69
| | | | | | | | | | | | | | | | | | | | | | [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 (ersolution, fps) to indicate target capabilities TODO: check against high-speed profile to check if a given {resolution, fps} is supported Add conversion routines in CameraSettings to convert from normal quality level to time-lapse/high-speed quality. Also, add back 4KDCI and VGA support Change-Id: Ic1d5ed8ef52348cab2383abe304056e0401f7069
* SnapdragonCamera: Fix compilationJaimin Bhise2015-10-291-5/+10
| | | | | | | | | | | | 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. 6. Revert "camera: override shutter sound volume" commit 8a50cda8f72738e943904fdf7cae189b2b0a8ea8. Change-Id: I167ab5ff399c4f1d306a1a7ddf94896565c9625a
* VideoModule: Removing tmpPath and use pathJack Yoo2015-10-211-2/+1
| | | | | | | Not necessary to have tmpPath as it won't be accessed together Change-Id: I0a97e2b114bf7a554b21c4ccb20d620a01a3c579 CRs-Fixed: 877959
* Merge "SnapdragonCamera: limit video file size on SD card"Linux Build Service Account2015-10-181-0/+6
|\
| * SnapdragonCamera: limit video file size on SD cardlikaid2015-09-101-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
* | Merge "SnapdragonCamera: Add noise reduction modes."Linux Build Service Account2015-10-011-0/+37
|\ \
| * | SnapdragonCamera: Add noise reduction modes.Neelam Abhinav Karthik2015-09-281-0/+37
| | | | | | | | | | | | | | | | | | - Add menu for noise reduction modes Change-Id: Ie5cd6590e08938fb8fbb668ac1b48aac5fe801c3
* | | Merge "SnapdragonCamera: Adding support for any number of cameras in app."Linux Build Service Account2015-09-301-27/+33
|\ \ \ | |/ / |/| |
| * | SnapdragonCamera: Adding support for any number of cameras in app.Sanjeev Garg2015-09-161-27/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present the SnapdragonCamera App can support maximum of 2 cameras. Generalizing SnapdragonCamera App to support any number of cameras exposed to the application. Note - If number of cameras supported is greater than 2 then we need to add corresponding entries in media_profiles.xml so that recording can work fine on more than 2 cameras supported. Change-Id: Ic20667e29e0541d71c764bfd51a9c7a4d2ea83cd
* | | Merge "SnapdragonCamera: Enable SeeMore option for 4k."Linux Build Service Account2015-09-211-37/+26
|\ \ \
| * | | SnapdragonCamera: Enable SeeMore option for 4k.Sanjeev Garg2015-09-211-37/+26
| |/ / | | | | | | | | | | | | | | | | | | Currently SeeMore option for 4k recording is disabled. As per requirements, enabling the same. Change-Id: I69e84e0c20c199d80fc819f8aa6be62605bfbd79
* / / SnapdragonCamera: Use floating components during video record.Jay Wang2015-09-161-0/+5
|/ / | | | | | | | | | | | | | | During recording, there are only 2 widgets on UI. Directly attaching them to window manager and making main UI layer fully transparent can reduce power consumption. Change-Id: I8c4f4768ab91d50fc72080f0f6d7316ee2e60ef4
* | Merge "SnapdragonCamera: Set default video resolution to 1080p"Linux Build Service Account2015-09-101-4/+7
|\ \ | |/ |/|
| * SnapdragonCamera: Set default video resolution to 1080pJay Wang2015-09-031-4/+7
| | | | | | | | | | | | | | Previously, default video recording resolution was largest available. This has been changed to be 1080p by default. Change-Id: I29b4d7d8d80af1472315fdacb9c1672403247f7f
* | SnapdragonCamera: Fix the 4K video relative toast issuelikaid2015-09-011-2/+16
|/ | | | | | | | | | | The toast "Enable 4k video quality will disable IS" was shown every time when update the camera parameters, that made user confused. Move the toast to onSharedPreferenceChanged, show it only when set video quality as 4K and IS is ON. CRs-Fixed: 886568 Change-Id: I3246feada6eaf2097278e04b835ad1bc7ff811b8
* Merge "SnapdragonCamera: Fixing NullPointerException in onCreate of VideoModule"Linux Build Service Account2015-08-171-1/+1
|\
| * SnapdragonCamera: Fixing NullPointerException in onCreate of VideoModuleSanjeev Garg2015-08-131-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
* | SnapdragonCamera: fix screen flash on resumingLikai Ding2015-08-141-1/+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
* Merge "SnapdragonCamera: fix video duration issue"Linux Build Service Account2015-07-151-26/+10
|\
| * SnapdragonCamera: fix video duration issueLikai Ding2015-07-151-26/+10
| | | | | | | | | | | | | | Duration calculated from recording start and end time does not always match that in video file. Use video metadata instead. Change-Id: Iab4f6b7030579bb78cc86effe6dd7d6993fa5918
* | Merge "SnapdragonCamera: honor video duration limit in intent"Linux Build Service Account2015-07-151-10/+8
|\ \
| * | SnapdragonCamera: honor video duration limit in intentLikai Ding2015-07-151-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
* | Merge "SnapdragonCamera: Hide the preview cover when preview has started"Linux Build Service Account2015-07-151-0/+1
|\ \
| * | SnapdragonCamera: Hide the preview cover when preview has startedlikaid2015-07-151-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 failedlikaid2015-07-151-10/+14
|/ | | | | | | | | | | | 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
* Snapdragon Camera: disable CPP duplication by defaultVijay kumar Tumati2015-07-011-15/+2
| | | | | | | | Disabling the CPP duplication feature default at app and HAL will take care of using this feature based on preview/video height and format constraints Change-Id: Iaa2ca7c173dad0322abe2224258957d15dbec0b4
* SnapdragonCamera: Don't disable the camera.Wei Ding2015-04-271-3/+3
| | | | | | | | 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: Fix app FC when time lapse and HFR is set to ON"Linux Build Service Account2015-04-241-3/+0
|\
| * SnapdragonCamera: Fix app FC when time lapse and HFR is set to ONlikaid2015-03-201-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: Customize camera video quality"Linux Build Service Account2015-04-151-1/+7
|\ \
| * | SnapdragonCamera: Customize camera video qualitylikaid2015-04-091-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