| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Some devices send multiple shutter callbacks for one captured frame in
longshot mode. As this causes mismatch between the calculated number of
captured frames and the calculated number of JPEGs received for those,
which in turn leads to longshot mode never being ended properly,
protect against that scenario by discarding all but the first callback.
Change-Id: I0c3a270f664a0cd16354fb0a13c5941a52001650
|
|
|
|
|
|
|
| |
* Some cameras simply don't set this parameter.
* Also set cur-focus-diopter to 0 if it's null.
Change-Id: Ib1049012de9a58279560c14ed77f83f52c07fe30
|
|
|
|
| |
Change-Id: I23e53333a0bbe2a12e64e87ec8594aeaa503e9fc
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
Introducing SelfieFlash feature.
Change-Id: I7b73d9db585038640b715092b01e037538ef68aa
CRs-Fixed: 937232
|
|
|
|
|
|
|
|
| |
On layout change, need to call preview size change again
as it's not guaranteed it's called first always.
Change-Id: I8a687fbf162924f36f2ff7be2a3ba1c6304b27f6
CRs-Fixed: 893423
|
|
|
|
|
|
|
|
|
| |
There is a corner case that onShutterButtonClick() is called before
camera device is configured. The change will make sure the camera
device exists before continuing the operation.
Change-Id: I2212572ea5c6073c3f62bdd38e83716b2427c87d
CRs-Fixed: 962579
|
|
|
|
|
|
|
| |
* java.lang.Integer.valueOf(string) method can't parse
hexadecimal values
Change-Id: I42706db72fc9c1093a7aa16440af449f731e5176
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
After user changes the scene mode back to "AUTO", making sure
the flash mode is restored back to the correct value. Previously,
the flash mode is forced to "OFF" if the scene mode is changed
from others to "AUTO".
Change-Id: I648ecc6945abb108c7bafa00c8e3e6d0cdd8f086
CRs-fixed: 927985
Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
|
|
|
|
| |
Change-Id: I6ad439dc0be7c6e0d13ac7c22aacdc0ad559d051
|
|
|
|
| |
Change-Id: I61f93c68b52d81c5e19919a5b0b894cf51dd35c4
|
|
|
|
| |
Change-Id: I0ce48da277a532b46fdde15027f636de4d7585b7
|
|
|
|
|
|
|
| |
Instead, restore the default value. This prevents issues on devices
that don't support ZSL.
Change-Id: I9c456cd6503df29800e2bc7ccaa691cb3fb42681
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
Camera setting including module switcher scene mode filter mode and
front/back camera switcher should not be used during countdown timer,
since it may cause unexpected concurrent errors.
Hide all the camera settings when countdown timer starts, show them
again after countdown.
Change-Id: I79c2add63c61d304fe0948e1c9fefe3a8c1a6fee
CRs-Fixed: 900086
|
|
|
|
|
|
|
|
|
|
| |
Some color effects has special tone, if do HDR for specific color
effects like Negative, we'll get unreasonable pictures.
Disable the color effect when HDR on and set it as none effect.
Change-Id: I8dca19b081504abaa85728b6d67b85699a184abb
CRs-Fixed: 894360
|
|
|
|
|
|
|
|
| |
For capture intent, preview stops as soon as first jpeg callback
arrives, but Macro+ has 7 callbacks. Make preview stop after all
jpeg callbacks.
Change-Id: Id29cc745aa2030edb60bc15da10d9123fa95bfd0
|
|
|
|
|
|
|
|
|
|
| |
NumberFormatException occurred when converted the invalid input values,
for example, user only input "." for some float values.
Catch the NumberFormatException and show invalid input toast.
Change-Id: Ie10b204950d43cca22a06532f04b9569fa545cbb
CRs-Fixed: 862960
|
|
|
|
|
|
|
| |
* Drop the use of the touchaf-aec parameter entirely. No camera needs
this anymore.
Change-Id: I83154a75e5375901dc6c0fc93aef23637cfdf425
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Change-Id: Iefee1f15f5649c2f93c59fcbdedcf953e9e0bc54
|
|
|
|
|
|
|
|
|
|
| |
Issue was twofold:
- Preview size was updated from the root view instead of the preview
surface view. As the preview rect is already correctly updated from
the surface view, remove the redundant size update code.
- Touches outside of the preview rect weren't discarded properly.
Change-Id: I1c9a4398aa51a828b5362fcd7bcd5a7a7e4691db
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I14c17aec6e5d582cc1f884eba40868a58cab1d03
|
|
|
|
| |
Change-Id: I27ee6f3b6b6bec95661741a0907708e6ebd79752
|
|
|
|
| |
Change-Id: I52b0f7aab55d0a001fc1149fbd82c8188f57be9d
|
|
|
|
|
|
|
| |
Just for initial ship
Change-Id: I8d6c0d71d1b94e6eb2f43ab962fb92de0e6c7093
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
|
|
|
|
|
|
|
|
|
|
|
| |
Issue:
If user sets feature.restart flag as 1, turn off ZSL,HDR 1x and capture
an image with HDR, then after capture preview is not getting restarted.
Fix:
Set the needRestartPreview flag based on above condition.
Change-Id: I4e2c9db20d5148de2b6b63288dc0d3eb75ee5a9c
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Camera open thread opens the hardware and triggers preview.
State of preview is updated over a handler message to UI thred.
In between this surface window re-creation happens in UI thread.
To set new window to HAL, preview should be in stopped state.
Since state updation hasn't completed yet, UI thread reads old
state and sets window while HAL is in previewing state. This lead
to crash. To avoid the error read the camera state from HAL
through framework API rather local state variable.
Change-Id: Ieee86edc601f43b85773392a9a44853b4a56cde8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When user delete all the images in gallery to come back to
camera, surface view gets created, destroyed and recreated.
Since camera state is updated over handler message after
start preview, by the time handler thread updates the state
background thread would have stopped the preview. So during
surface recreation, state variable is read wrong and it doesn't
allow start preview. This change makes sure state variable is
updated immediately after start preview and only UI updation
is moved to main thread through handler message.
Change-Id: I289814821d5c3652b06301d1d4a854e9e40670b6
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ied37999553d04dcc970da23ccce4dd7c9abf3b48
|
|
|
|
| |
Change-Id: Ia48f48fcd8b8546ca68969198a60f568bae805d6
|
|
|
|
| |
Change-Id: I3884b23f1c855cfffeb20ca6e2a760732370d772
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently the AutoHDR functionality which handles
metadata callbacks always assumes that the length
of the callback data buffer will be equal to 12
bytes. It will always try to read and convert 3
32-bit integers. The check before this processing
is incorrect as it allows buffers which are less
than 12 bytes to be processed as well. This can
lead to array out of bounds exceptions, which are
also possible during FD snapshot metadata
callbacks that don't contain any faces. In this
particular scenario the metadata callback buffer
size will be 8 bytes.
Change-Id: I4094aaa56aa4135d2d806861353d49c8d7f9985c
CRs-Fixed: 799110
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Depending on timing 'takePicture()' could be
triggered while the preview surface holder is
still not available. The camera preview in such
scenario can be started but will not run
without a valid surface holder. Triggering
snapshot in this case is not allowed and
can lead to runtime exception.
CRs-Fixed: 769441
Change-Id: I6c4f013e9ca8b5903abbfe69394dc0871669d7c2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently the application contains logic which
will lock AE&AWB before snapshot if AF didn't
get triggered. Unlocking happens during image
capture though and will get ignored because
the camera state is already set to
'SNAPSHOT_IN_PROGRESS". This sequence of events
can have side effects w.r.t. flash. To avoid
this AE&AWB should always be unlocked before
snapshot.
Change-Id: Ie72bb7f5721419e448b2d1976f5873327dd3ada4
|
|
|
|
|
|
|
|
|
| |
Both AWB&AE are currently locked during longshot.
This can have side effects for cases which utilize
torch flash.
CRs-Fixed: 770028
Change-Id: Ie6b547d2863c8fb1ff0b9124082a6fb6144cbac9
|
|
|
|
|
|
|
|
|
| |
An additional check needs to be added for the
focus manager initialization during handling
of the shutter button focus event.
Change-Id: Icc12bd47b52af36e2ec5c1415d1147ba925a585b
CRs-Fixed: 766843
|
|
|
|
|
|
|
|
|
|
|
| |
Currently the flash mode on application side will
be set to 'auto' during scenes different from
'auto'. Due to the manual white balance modes used
in these scenes it makes more sense to actually
have flash mode set to off.
Change-Id: Ief40a76de2f6481eb27b0e47e28ac8b4573429df
CRs-Fixed: 765000
|
|
|
|
| |
Change-Id: If165370b52d7454c69e2cdeb9d837d049010b0e8
|
|
|
|
| |
Change-Id: Id3393280c7c1c2f292d71587ba099e8dbafd1340
|
|
|
|
| |
Change-Id: I7ce9d6f2323e367743e6d4c9662b846d3052f2a4
|
|
|
|
| |
Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482
|
|
|
|
| |
Change-Id: I3a948495cdf84dae3c1734d50ff91b4a5d3d9fc0
|