| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
When onError is called from media recorder, re-draw the video
control icons after stopping the recording session.
Change-Id: If7a38ff4c12ec90018fe0d1a89d08fd94bf89f6f
CRs-Fixed: 982804
|
|
|
|
|
|
|
| |
Reset the settings menu when the device is rotated
Change-Id: I6c4fed7207a4d26a9d7c29d18f6a7af17ef3d4f9
CRs-Fixed: 981504
|
|
|
|
|
|
|
| |
Register sd card media status listener on resume.
Change-Id: I7b3b7e3104b7729c83d83926bb794e0d7ec237d2
CRs-Fixed: 960865
|
|
|
|
|
|
|
|
| |
Adding toast message to be shown to the user when media recording
is failed due to permission issue.
Change-Id: I5392b41b97c73ade8df7b5d70647361306c4f695
CRs-Fixed: 944657
|
|
|
|
|
|
|
| |
Not necessary to have tmpPath as it won't be accessed together
Change-Id: I0a97e2b114bf7a554b21c4ccb20d620a01a3c579
CRs-Fixed: 877959
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I60655aa3a42be218dac5062932692a49a596bedf
|
|
|
|
|
|
|
|
| |
When video capturing is finished, release the audio focus so
music application can resume the playback.
Change-Id: I5c425b7717e9a31ec9c839ed2689d9b1da852428
CRs-Fixed: 1012070
|
|
|
|
|
|
|
|
| |
Use audio focus API to stop other music streams when starting
video recording.
Change-Id: I0097d0c2bd7157bc1936b9120bbe7c917b9707ee
CRs-Fixed: 1005855
|
|
|
|
|
|
|
|
| |
Keep using modules instead of creating.
Don't remove the view without cleaning it.
Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0
CRs-Fixed: 958510
|
|
|
|
|
|
| |
* Hook up available metadata to the new focus manager.
Change-Id: I793df67a2682d8bb2dee994193111227dd8c8d5a
|
|
|
|
|
|
| |
This reverts commit 57799db3c1757618e00d331fe659ac4058624352.
Change-Id: I6027d853c9791a1b14c0dffcce038b450019735a
|
|
|
|
|
|
|
| |
* Don't needlessly break touch-to-focus during various modes
* Set focus parameters immediately for better UX
Change-Id: I39b287562c3d2b62a1d5c8953577e366b11b8e15
|
|
|
|
|
|
| |
Needed after recent framework changes upstream.
Change-Id: Iedee3cf32216eb4cea663a5518d5dfa62725203f
|
|
|
|
|
|
| |
This is done in the framework now.
Change-Id: I3d35de5099db4f1e4b9a29d4a6c8c9e6ccdf5af7
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
* java.lang.Integer.valueOf(string) method can't parse
hexadecimal values
Change-Id: I42706db72fc9c1093a7aa16440af449f731e5176
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Change-Id: I5432554a40d7375ed7893c38cb2741a12cc8cc80
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
User can now control the focus mode used while recording video.
Change-Id: I340c01a3f88314de67ca024279672276eff453ed
Signed-off-by: Sultanxda <sultanxda@gmail.com>
|
|
|
|
| |
Change-Id: I0ce48da277a532b46fdde15027f636de4d7585b7
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I9c2c7a74b5816b3f930e22ee1fce625e7ad768e3
|
|
|
|
|
|
| |
* Not all devices support this resolution
Change-Id: I42d2037b4e32c7f5c88a60b5da1895dcb761d176
|
|
|
|
|
|
|
| |
Old parameters are used when grabbing focus mode.
Camera parameters should be set to FocusOverlayManager before starting preview.
Change-Id: I908559e1c2003be47b486996b0ec016b78107468
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[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
|
|
|
|
|
|
| |
Might happen when updating from previous versions of Snap
Change-Id: Ib52a2daff5a45c33ede1effd7cb7bed2fe61e5cc
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
* Available when video snapshots are not supported.
* Original from CodeAurora Forum.
Sultanxda: Adapted to Snapdragon Camera
Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* Set maximum screen brightness while the user is inside the camera app
Change-Id: I8b16ba47a933bc7d6b0c1cd62bfd6ca54875ce1e
|
|
|
|
|
|
|
| |
Use play button on headset to take a picture/video/panorama
Use media next/previous for zoom
Change-Id: I25c22646b041e5e0941fbe361eccfe77a2a1e42f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|