| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Don't use hardware.camera.CameraInfo any more
Change-Id: I2d0dacc0b597c05df9eacd2fee1e26a33d4de8e7
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using openLegacy on QCamera3 forces it to use QCamera2
and fall back to api v1 which is not what we want on v2 devices.
Author: codeworkx <codeworkx@cyanogenmod.org>
Date: Tue Jan 5 23:02:12 2016 +0100
make openLegacy an option
Change-Id: Ia4142288ef0fafa62fa0ab855dc342b363b640cd
Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date: Sun Jul 10 15:11:43 2016 +0800
Snap: Tighten openLegacy() try-catch block
We only have to enclose the openLegacy() call in a try-catch block.
This prevents us from re-calling open() when open() fails and
throws a RuntimeException.
Change-Id: I81396e453f57215338a0c4da41c4116f2b4d42ca
Change-Id: Ic392a4ae9403ebae36940ddf0727237d9cb9e8f0
|
| |
|
|
|
|
| |
This reverts commit e7c3825c2ef5fca2ed70d753ea32f2c042a3fa50.
Change-Id: Id18176046c657ea084eaec3ab3c1f0e51aeb12f0
|
| |
|
|
|
|
| |
Since it's for camera1 which is not supported in camx, remove it.
Change-Id: If20ca6b63044722efbbfa3893baa7d1b039138e5
|
| |
|
|
|
|
|
|
|
| |
1. Wrapper for Parameters
2. Wrapper for CameraInfo
3. Wrapper for CamcorderProfile
4. Wrapper for Camera
5. Wrapper for ExtendedFace
Change-Id: I8c8605db3696bffc4d975c0bb6f74944ed23a6bd
|
| |
|
|
|
|
|
|
| |
app will crash when failed to call API from HAL,
catch the RuntimeException from HAL to avoid crash
Change-Id: Ie4c234e57da79eb2042b71001b6cde30093ec307
CRs-Fixed: 2036768
|
| |
|
|
|
|
|
| |
Reset the AF mode to CAF when zoom has changed
CRs-Fixed: 2020171
Change-Id: Icb056481952708815f06d470fe3ff6be60e8a6e7
|
| |
|
|
|
|
|
|
|
|
| |
when setPreviewDisplay is called, maybe the surface
is destoried and this will cause IOException and app
crash, catch this exception and notify the callback
to avoid this.
Change-Id: I964d3f8921c83444362d6835d553273fa97284e6
CRs-Fixed: 1105734
|
| |
|
|
|
|
|
|
|
| |
Camera app stop preview when leave camera app to gallery, and may
take a long time and block the main thread in extreme cases.
Set a timeout to avoid blocking the main thread long time and cause ANR.
Change-Id: I403b4248f6cbeb7e97b6e5704dd29b8b8b911363
CRs-Fixed: 1091688
|
| |
|
|
|
|
|
|
|
| |
When set param failed, it will throw runtime exception and
app will crash, but camera can stil work when set param failed.
So catch exception when set param failed.
Change-Id: Ie0bb7f453c8749068ce0c4b80b1e913e7191b714
CRs-Fixed: 1082632
|
| |
|
|
|
|
|
|
|
|
|
| |
There is an issue that shutter sound is disabled when taking
continuous shot, right after starting the application. This is
due to a missing “break” keyword in SET_ONESHOT_PREVIEW_CALLBACK
case statement and causes program to continue to the next case
statement which disables the shutter sound.
Change-Id: I00fda74a362191591a9cdaa266271a96bba7f66d
CRs-Fixed: 989918
|
| |
|
|
|
|
|
| |
Adding null check on potential race condition case.
Change-Id: Ia837acbdf5fbef824d55b318d9cbddf8a8faf7ef
CRs-Fixed: 961548
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Issue:
In a corner case, when we switch between front/rear camera
quickly, then currentCamera can be null which leads to null
pointer exception and results in exit camera
Fix:
To avoid the null pointer exception added the null check
on currentCamera.
Change-Id: I0e7dbc91c06bd5b0da7f1e645f2aba156b2fd1a5
|
| |
|
|
|
|
|
|
|
|
| |
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: Ia9910c4302a598bd1faef87eb630c5c838e12d3b
CRs-Fixed: 909772
|
| |
|
|
|
|
| |
This reverts commit 37856d6b3bcede0eb514e83d168d24b5f66d21c5.
Change-Id: Ie16e324fb66b07deedf74dc2d3abefea607d92a0
|
| |
|
|
|
|
|
|
|
|
| |
If any exception occurs in start preview then camera app
should handle this exception and should display error pop-up
and exit gracefully.
CRs-Fixed: 919778
Change-Id: I80b60224d5d47a96dad78c40f8a23e3e9be45e65
|
| |
|
|
|
|
|
|
|
| |
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.
CRs-Fixed: 881290
Change-Id: I5d93e57f0b9aa338c6b34461d5e3ee31806b6706
|
| |
|
|
|
|
|
|
|
| |
openLegacy() API doesn't exist in older versions (<KK) of Android.
So, we cannot compile the app. To avoid this, use java reflection
to check whether this API exists in the Camera package or not
and then call it or revert back to regular open() call accordingly.
Change-Id: I01b29e52ca5ba1f90c5367f29c62959ab13eb53f
|
| |
|
|
|
|
|
|
| |
When HAL 3 module is enabled by default, use .openLegacy with
api version CAMERA_HAL_API_VERSION_1_0 to get the HAL1 device
instead of the regualar open call.
Change-Id: I4637b1f03c56b461fcfa2d29fe8f1064c5cbb6b1
|
| |
|
|
|
|
| |
CRs-Fixed: 788421 788422 788437 788445
Change-Id: Ie77a53a73182b6642ce2e9f7de7c4c127e192f51
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
When HAL 3 module is enabled by default, use .openLegacy with
api version CAMERA_HAL_API_VERSION_1_0 to get the HAL1 device
instead of the regual .open call.
Change-Id: Iec16c0b4e30f431bff4f4ad8bb83533f328c12b4
|
| |
|
|
|
|
|
| |
- Fix race condition for calling camera callbacks
with old data after camera switch
Change-Id: If63e7903f3e7821220397b1b8cea4d9478ba3c94
|
| |
|
|
|
|
|
|
| |
Adding support for Auto HDR for camera application.
CRs-fixed: 629556
Change-Id: I02cdc2accb3e9fd4a9039b7f632ba3eb04fcc798
|
| |
|
|
|
|
|
|
|
|
| |
In current code, handler will still try to execute command even
camera is closed, so add null point checker to skip these commands
( cherrypicked from commit 63ae64c56b00f44956502822a0ddb96307ae7270 )
Change-Id: I71c30a5293364e084de650e92d9d0926e7e3d7c1
CRs-Fixed: 598600
|
| |
|
|
|
|
|
|
|
|
|
| |
Without this, multiple threads are
trying to access same data and
resulting in crash.
( cherrypicked from commit d11040c561e9add30768947aa93235ff08de03b1 )
Change-Id: Ib09950d6640afcd7962cba9ea5385d778f022abe
CRs-Fixed: 542706
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Delay onResume tasks to speed up lockscreen onResume->onPause->onResume launch sequence.
Import translations. DO NOT MERGE
gcam: Clean up placeholders, and add deletion robustness.
Fix issue of focus indicator staying on without being hidden
Ensure view size gets updated after phone decors change.
Show the 100% state of the progress at least one frame.
Add parameters and deduplicate parameter changes
Revert parallel opening camera in photo mode.
Differentiate the InProgressData from the normal PhotoData.
Close mode menus if another control is touched
Start gcam module directly when handling capture intent.
Import translations. DO NOT MERGE
Add a null check to fix NPE
Add logging to various actions
Ensure mOpenCameraThread has been setup before dereferencing.
Add logging to various actions
Ensure mOpenCameraThread has been setup before dereferencing.
Add GCam progress indicator.
hide preview cover on arrival of new preview data if hidden
Fix photo mode is getting stuck in a single CameraState.
...
Conflicts:
res/layout/photo_module.xml
res/values/arrays.xml
src/com/android/camera/CameraActivity.java
src/com/android/camera/PhotoUI.java
src/com/android/camera/Storage.java
src/com/android/camera/WideAnglePanoramaModule.java
src/com/android/camera/ui/FilmStripView.java
Change-Id: Ic41b4e7e07b2b0ed7936b78a6c5f05270d05985f
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
In this case, another app is using the Camera, such that the camera.open will
hit an exception. We should show an dialog here.
bug:11258139
Change-Id: I0bd2d05fe4d4d9c5e4b87b39f3ef48910cfb7111
|
| | |
| |
| |
| |
| |
| |
| |
| | |
To keep the existing interface, we just overwrite the handler here.
bug:11336965
Change-Id: I77b2f577279244439ee9f81344f47bf5773e527b
|
| | |
| |
| |
| |
| |
| | |
Bug: 11021188
Change-Id: Idfc1cf5c50ac1f3f46956079c3231cbdda32e1a4
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- The longshot/burst pipeline mode uses an
optimized path for triggering 'takePicture()'
on each shutter callback. This should improve
the shot-2-shot time. In addition to this
there is also support for jpeg callbacks
that only contain a jpeg file path. The
callback in this case will only move the
file stored by the lower layers in the
correct directory.
- The longshot burst pipeline can be enabled
via this property:
"persist.camera.longshot.enable"<-"0/1"
- This change will allow longshot mode to
be triggered in non-zsl mode as well.
(Cherry picked from: I693366a7d06d3b386a8d96f86ee9a0574749c50b)
(Cherry picked from: Id630b2033f18d1c04a636597e910e695a8692ac8)
Change-Id: Idda8d58fc6d889128c1812c9c5ddadca3993c246
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added keys and APIs for enabling QC features from UI.
(cherry picked from commit a0fdd6924374635711ea6a554f3a59a087cf4b21)
Change-Id: Id50b7cebe2d33eaf7bb6a8e51fecded50ac6dcf8
Conflicts:
src/com/android/camera/CameraSettings.java
src/com/android/camera/PhotoMenu.java
src/com/android/camera/PhotoModule.java
src/com/android/camera/VideoModule.java
Conflicts:
src/com/android/camera/CameraSettings.java
src/com/android/camera/VideoModule.java
(cherry picked from commit 93cd1cdb59449ccb2b9594c9d8e3978a25d7f376)
(cherry picked from commit af04f9d621183addee0f7cdd7c1a41c8d0e65cfe)
|
| |/
|
|
|
|
| |
Bug: 11021188
Change-Id: Idfc1cf5c50ac1f3f46956079c3231cbdda32e1a4
|
| |
|
|
|
|
|
|
|
| |
Bug: 10821545
As we're targeting ICS there are a lot of checks and code paths
that are no longer in use. This CL cleans them up.
Change-Id: Ic3dd26628a94e134e25e2c496ccec1f1f957216d
|
| |\
| |
| |
| | |
gb-ub-photos-carlsbad
|
| | |
| |
| |
| |
| |
| | |
Bug: 10747001
Change-Id: I8a4e302a9b458c73901776a95a0118da0e4e8b6c
|
| |/
|
|
|
|
| |
bug:10726516
Change-Id: I3d3433d0b2eced54027b19910473fd55135d0e1c
|
| |
|
|
|
|
| |
bug:10263696
Change-Id: I3a16dba3aabe52b8103a2c591cfa39907265a263
|
| |
|
|
|
|
|
| |
Note: Camera2 is a clone of Gallery2 right now.
Note 2: I will bring .mk files back later.
Change-Id: Ida958654296f5ebaacb6bb0ff59d52a7c37ce6fc
|
| |
|
|
|
|
| |
bug:10113532
Change-Id: I01dc051d7b25cb97153b5e3e4cf06744dccb9fd4
|
| |
|
|
|
|
| |
bug:10110830
Change-Id: I1adcefc229ce4a245880bc037a086c949c73da55
|
|
|
1. CameraManager should be the only class accessing android.hardware.Camera.
2. For potential future upgrade in Camera HAL and android.hardward.Camera API
upgrade, CameraManager should be just an interface instead of concrete
implementation.
3. waitDone() in CameraProxy is removed.
4. ShutterCallback, PreviewCallback, PictureCallback and AF Callbacks are
wrapped by our own interfaces.
Change-Id: I595da17a1a9c6d476ee805b71c7f45ebb609e465
|