| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a new Longshot feature where in the snapshot frames
captured at ISP is @ 3fps and output JPEG encoded rate is @ 1.2 fps.
This can be enabled by setting following setprop with
the maximum number of snapshots.
adb shell setprop persist.camera.longshot.max <max_number>
e.g.:adb shell setprop persist.camera.longshot.max 10
If the number is -1, then the existing Longshot will be used.
Main changes:
1) The number of Snapshot/Preview/Metadata buffers are increased to
make sure no frames will be dropped @ ISP and to maintain burst fps.
e.g.: For max number of 10 snapshots, Snapshot buffers are increased to 9
from existing 6.
This buffer numbers are derived considering snapshot YUV frames @ 3 fps
and JPEG encoding @ 1.2 fps.
2) Shutter will be played after receiving YUV frame instead of reprocess frame.
3) New Longshot stop command is sent after receiving all the required YUV
callbacks or releasing the shutter before reaching Max number.
4) Existing Longshot off command is sent after receiving all JPEG CB.s for the issued
TakePictures() and also shutter button will be disabled until all the JPEG
callbacks are received.
Change-Id: Id0c21aeb67245530768bf3ab859d39dea7e2bc40
|
|
|
|
|
|
|
|
|
|
|
| |
Camera open thread initializes the focus overlay manager
after opening camera. In a rare scenario above background
thread had not initialized focus overlay manager by the
time UI thread start acessesing it, so we see a crash.
Initialize focus overlay manager from UI thread if it is
not initialized already.
Change-Id: I1635c8759d0e0647fe61fe975a0cc24df40df529
|
|
|
|
|
|
|
|
|
|
|
| |
Since commit 87b4a40d588a7ae8a61cb353c4cff8df37f7b483 moved camera
initialization (and focus manager initialization with it) to a
background thread, the focus manager initialization now races against
the onPreviewRectChanged() call triggered by SurfaceView initialization
in the main thread, potentially leaving the focus manager in an
uninitialized state that prevented taking pictures.
Change-Id: I8cf650d6a67768acd131b3cddad175ed198e0838
|
|
|
|
| |
Change-Id: I0ce48da277a532b46fdde15027f636de4d7585b7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
User can now control the focus mode used while recording video.
Change-Id: I340c01a3f88314de67ca024279672276eff453ed
Signed-off-by: Sultanxda <sultanxda@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Change-Id: Id93d5807fb4c4d14eeea33be0776a6f705a6c435
|
|
|
|
|
|
| |
Camera HAL not always return proper values
Change-Id: Id81fe40ac84b0ffb70560e55077d90544139e463
|
|
|
|
|
|
|
| |
* Some cameras simply don't set this parameter.
* Also set cur-focus-diopter to 0 if it's null.
Change-Id: Ib1049012de9a58279560c14ed77f83f52c07fe30
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Change-Id: Ib2c2c152a52b2616dd0da6f071f572d34fe64065
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author: codeworkx <codeworkx@cyanogenmod.org>
Date: Mon Jan 16 00:10:40 2006 +0100
Snap: Add options to restart preview onPictureTaken
Change-Id: I7ce9d6f2323e367743e6d4c9662b846d3052f2a4
Author: LuK1337 <priv.luk@gmail.com>
Date: Mon Jan 11 17:40:58 2016 +0100
Move mApplicationContext to init()
Fixes following NPE:
01-11 17:36:42.607 4329 4391 E AndroidRuntime: FATAL EXCEPTION: Thread-235
01-11 17:36:42.607 4329 4391 E AndroidRuntime: Process: org.cyanogenmod.snap, PID: 4329
01-11 17:36:42.607 4329 4391 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.updateCameraParametersPreference(PhotoModule.java:3492)
01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.setCameraParameters(PhotoModule.java:3714)
01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.startPreview(PhotoModule.java:2715)
01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule.-wrap14(PhotoModule.java)
01-11 17:36:42.607 4329 4391 E AndroidRuntime: at com.android.camera.PhotoModule$OpenCameraThread.run(PhotoModule.java:265)
Change-Id: I6ca0dfe402cab46dd7b6f102921062f3c7ec8d43
Author: codeworkx <codeworkx@cyanogenmod.org>
Date: Fri Jan 22 17:17:53 2016 +0100
Snap: Do not restart preview during longshots
Change-Id: I6ad439dc0be7c6e0d13ac7c22aacdc0ad559d051
Author: LuK1337 <priv.luk@gmail.com>
Date: Sun Mar 19 10:43:33 2017 +0100
Snap: Add overlay for restarting camera preview for additional cameras
Change-Id: I95eb7237b101b73d66fe231a11d0c8d5156bfe47
Change-Id: I49312aef5331bf549e38a0534b95f76a0b8bb8da
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author: codeworkx <codeworkx@cyanogenmod.org>
Date: Tue Jan 5 23:54:52 2016 +0100
add support for luminance-condition parameter
Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482
Author: codeworkx <codeworkx@cyanogenmod.org>
Date: Sun Feb 21 11:17:12 2016 +0100
Snap: fix camera hang on LGE G4 when flash got used
Change-Id: I23e53333a0bbe2a12e64e87ec8594aeaa503e9fc
Change-Id: If1c2cd9dd253d6342de241b381152a759e8d3f05
|
|
|
|
| |
Change-Id: I3a948495cdf84dae3c1734d50ff91b4a5d3d9fc0
|
|
|
|
|
|
|
|
| |
mCameraState gets stuck to SNAPSHOT_IN_PROGRESS after taking a picture using autofocus/not ZSL, thus breaking camera capture.
Properly reset the camera state after taking a picture to fix this.
Change-Id: Ie4bd629d9e1db1ed3e5b5f80c5b02fd000d88c8e
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
Thanks to Lars Greiss (SlimRoms)
Change-Id: I63f757d25260fba4683f494f8b4daf178a2b4e13
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author: Su Liu <suliu@codeaurora.org>
Date: Wed Sep 4 18:16:50 2013 +0800
Camera: Change volume hard key button to zoom function
Able to capture image through volume hard key
button in camera application, change the function
to zoom function.
Change-Id: Iab9fc2492b2e2ff89cd58c21bac2f147f47b77e2
Author: jt1134 <jt1134@gmail.com>
Date: Sat Jan 4 20:52:27 2014 -0600
Camera2: implement volume key zoom in video mode
Change-Id: I140e8cfb3e39700f60e40c35b38e92c83a3c26de
Author: Lars Greiss <kufikugel@googlemail.com>
Date: Sun Feb 2 03:09:22 2014 +0100
Camera2: tweak volume key zoom and cleanup
- cleanup unused code
- cleanup codestyle
- add more zoom steps for smother zooming
- show zoom circle indicator during zoom
Change-Id: I5214fc2620a0c5167bfdc8e85f7115966c3b8bcf
Change-Id: I99dd2fffc92985156eece67c19435a71d14cd928
|
|
|
|
| |
Change-Id: Idcecfc6399421bd5dc25dcf79548949cdd14621f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author: Steve Kondik <shade@chemlab.org>
Date: Sat Dec 7 06:07:02 2013 -0800
Camera: Cleanup and compatibility fixes
* Don't crash for unavailable integer parameters
* Kill logspam
Change-Id: I6dbcf5560f96ce6173a847501721f589766889bc
Author: Ryuinferno <ryuinferno.xda@gmail.com>
Date: Thu Dec 26 19:11:23 2013 +0100
Camera2: More thorough compatibility fixes
Certain chipsets (such as omap) have contrast, sharpness and saturation
set, but no max integer given for those
Change-Id: I58efaef4d0a511aefc803a440e0c3aa3dbdc9483
Author: Ethan Chen <intervigil@gmail.com>
Date: Wed Feb 5 23:02:17 2014 -0800
Camera: Fix saturation, contrast, sharpness parameters
* Old-style QCOM HALs use <setting>-max, new style HALs use
max-<setting> for these parameters.
Change-Id: I3b0dbd04f072cb69d09c44b5b3af1097560205b3
Author: Steve Kondik <shade@chemlab.org>
Date: Wed Feb 26 07:43:28 2014 +0100
camera: Make some parameter lookups safer
* Unsupported parameters that return int values will throw an exception
at the framework level if they aren't supported. Handle this
better and prevent crashes.
Change-Id: If5a3807dba33167ef95e4ec9e9cbeb15ed4ed591
Change-Id: Id1a3e360474f0a8aebe150918d13b0a825715789
|
|
|
|
|
|
| |
* Not useful for any hardware I have encountered.
Change-Id: I93cca2b3bf907cc01946a55111de9eb883475d24
|
|
|
|
| |
Change-Id: Ifc1653f0046af169ba36d94796b4d9a3055c6798
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author: Sultanxda <sultanxda@gmail.com>
Date: Sun Aug 2 20:16:09 2015 -0700
SnapdragonCamera: Re-enable ZSL after exiting HDR mode
* Make sure to check that HDR was changed before forcing ZSL back on.
Change-Id: Ifb76263c3a50b919762fd2a313d6013295c0619f
Author: Gabriele M <moto.falcon.git@gmail.com>
Date: Tue Jan 19 16:45:25 2016 +0100
Snap: Don't enable ZSL when disabling HDR
Instead, restore the default value. This prevents issues on devices
that don't support ZSL.
Change-Id: I9c456cd6503df29800e2bc7ccaa691cb3fb42681
Change-Id: I66c9e31f37ef09c2437fcacac6c04246dab7df3c
|
|
|
|
|
|
| |
This reverts commit e73e717b8be1ba834161914af4debc61c1feb8be.
Change-Id: Iee719f34f6016f89ec0bb1c078bfa25c2f718436
|
|
|
|
|
|
| |
This reverts commit e7c3825c2ef5fca2ed70d753ea32f2c042a3fa50.
Change-Id: Id18176046c657ea084eaec3ab3c1f0e51aeb12f0
|
|
|
|
|
|
| |
Since it's for camera1 which is not supported in camx, remove it.
Change-Id: If20ca6b63044722efbbfa3893baa7d1b039138e5
|
|
|
|
|
|
|
|
|
|
| |
Request ACCESS_FINE_LOCATION permission
instead of ACCESS_COARSE_LOCATION permission
to avoid permission issue when enable GPS
recording
Change-Id: Ife8cdbc5be84eba1ae191ad91ffd01cfa074813c
CRs-Fixed: 2293929
|
|
|
|
|
|
| |
Move property to PersistUtil
Change-Id: I0735d8215ba302ef4c632d6a15ad95a04cd259a0
|
|
|
|
|
|
|
|
|
| |
1. Wrapper for Parameters
2. Wrapper for CameraInfo
3. Wrapper for CamcorderProfile
4. Wrapper for Camera
5. Wrapper for ExtendedFace
Change-Id: I8c8605db3696bffc4d975c0bb6f74944ed23a6bd
|
|
|
|
|
|
|
| |
Reset the AF mode to CAF when zoom has changed
CRs-Fixed: 2020171
Change-Id: Icb056481952708815f06d470fe3ff6be60e8a6e7
|
|\
| |
| |
| | |
camera.lnx.1.0-dev.1.0
|
| |
| |
| |
| |
| |
| |
| |
| | |
When set persist.camera.zzhdr.enable to 1, zzHDR mode is set,
allow use HDR and continous shot at the same time.
Change-Id: I6aec7ecfeb7a024350327a3030fba6be4e39ef89
CRs-Fixed: 2012715
|
|\ \
| | |
| | |
| | | |
camera.lnx.1.0-dev.1.0
|
| |/
| |
| |
| |
| |
| |
| | |
Print the picture name when capture success
Change-Id: Ia928197bc597ef09b40bb90e1297c7edb19fa4cd
CRs-Fixed: 1113482
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Fix sometimes parameters is not set,
slider bar is showed when bokeh is not enabled
and slider bar is at the bottom.
Change-Id: Ief346442c94d2cbbcdf7a14e11ebd43316b15b05
|