summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera
Commit message (Collapse)AuthorAgeFilesLines
* Camera: fix preview for landscape devicesPawit Pornkitprasan2019-10-253-9/+8
| | | | | | | | | | Landscape devices have broken preview because PORTRAIT mode is being abused to check for screen rotation. Use proper rotation check to fix. Ported from cm-10.2 Change-Id: I75588cbce9843e180e4be7591f6a43bcec788506
* camera: Remove ICS hack to stop preview after takePictureSteve Kondik2019-10-251-6/+0
| | | | Change-Id: Idcecfc6399421bd5dc25dcf79548949cdd14621f
* camera: Check if video sizes are availableSteve Kondik2019-10-251-0/+4
| | | | | | | | | * Some drivers don't report video sizes and we should avoid using fine resolution lookup, otherwise a crash results. * Just honor the defined camcorder profiles. Change-Id: I83e8fe2ca9bb489332f37767906bc7c56389f949
* Camera: Add red-eye flash mode supportMichael Bestas2019-10-251-1/+3
| | | | | | Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: I3db982732d15fb4eb83d5e37bff1a123225d4e8e
* camera: Add all focus modes, scene modes, and color effects.Steve Kondik2019-10-251-4/+2
| | | | Change-Id: I255d73b6e221655f9592047ccf848460d985c3b3
* Camera: Cleanup and compatibility fixesSteve Kondik2019-10-254-34/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* camera: Remove the luma-adaptation seekbarSteve Kondik2019-10-251-76/+0
| | | | | | * Not useful for any hardware I have encountered. Change-Id: I93cca2b3bf907cc01946a55111de9eb883475d24
* camera: Add parameter debugging supportSteve Kondik2019-10-253-6/+24
| | | | Change-Id: Ifc1653f0046af169ba36d94796b4d9a3055c6798
* SnapdragonCamera: Hide UI after error-checking video preferencesSultanxda2019-10-251-1/+2
| | | | | | | | | | * Hiding the UI before error-checking the video preferences when video recording starts results in a broken UI when one of the error cases evaluates to be true. * Hide the UI after the error checking to prevent the UI from breaking when an error is found. Change-Id: Ia98798dbf2a33800d47497630714af17865767c6
* Snap: Re-enable ZSL after exiting HDR modeSultanxda2019-10-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | 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
* SnapdragonCamera: Initialize overlay before control-by-intentSultanxda2019-10-251-1/+1
| | | | | | | | * initializeControlByIntent() expects mVideoMenu to not be null and initializeOverlay() initializes mVideoMenu when it isn't null * Change the order the functions are called to prevent possible NPE Change-Id: I6d240892f3bd318031983243760d87ab46b25edb
* Rename SnapdragonCamera to SnapMichael Bestas2019-10-254-4/+4
| | | | Change-Id: I1474550af7f45e53aa97819b42a91c961eeb6684
* Revert "SnapdragonCamera: Reduce number of countdown timer option"Gopal G Goberu2019-10-251-2/+2
| | | | | | This reverts commit 57d77499b09d207187c8a1051bf043ba9fb43c84. Change-Id: I91faf90357f5563e594756c0b7a942c34bbee344
* Revert "SnapdragonCamera: Forbid volume key can take picture"Michael Bestas2019-10-253-14/+2
| | | | | | This reverts commit e73e717b8be1ba834161914af4debc61c1feb8be. Change-Id: Iee719f34f6016f89ec0bb1c078bfa25c2f718436
* Revert "Remove CameraDataCallback."Chippa-a2019-10-253-0/+103
| | | | | | This reverts commit e7c3825c2ef5fca2ed70d753ea32f2c042a3fa50. Change-Id: Id18176046c657ea084eaec3ab3c1f0e51aeb12f0
* SnapdragonCamera: Add SM6250 socid 407 for burstPreview 30fpsxianming wang2019-09-162-1/+5
| | | | | | | Add SM6250 socid 407 for burstPreview 30fps. CRs-Fixed: 2502149 Change-Id: I96094d7adf8e5e9bff674e2ed94e2c69cbc4aa03
* Merge "SnapdragonCamera: Add burst preview request nums control" into ↵Linux Build Service Account2019-08-082-6/+6
|\ | | | | | | camera-SnapdragonCamera.lnx.2.0
| * SnapdragonCamera: Add burst preview request nums controlxianming wang2019-06-202-6/+6
| | | | | | | | | | | | Add burst preview request nums control. Change-Id: I0214b439e49bdf4cd7d229a28ba3f216bf7efa6a
* | Merge "SnapdragonCamera: AEC warm start function completed" into ↵Linux Build Service Account2019-08-082-8/+41
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | SnapdragonCamera: AEC warm start function completedxianming wang2019-06-192-8/+41
| |/ | | | | | | | | | | | | Complete the function AEC warm start. CRs-Fixed: Change-Id: Ic96f617a1cf70bce621ec8dc263ec74579dff245
* / Fix GTS issuesjinwu2019-07-181-0/+7
|/ | | | | | | | | | 1. USE_FRONT_CAMERA If USE_FRONT_CAMERA is true, use the front-facing camera to take a picture. 2. TIMER_DURATION_SECONDS If TIMER_DURATION_SECONDS has values, wait then capture. Change-Id: I09ec71118656c6ad1be41e2fe7a03bde911c14bb
* Merge "Don't show toast of open camera on error." into ↵Linux Build Service Account2019-06-141-2/+0
|\ | | | | | | camera-SnapdragonCamera.lnx.2.0
| * Don't show toast of open camera on error.jinwu2019-06-031-2/+0
| | | | | | | | | | | | | | | | | | Snapcam failed to pause and will show open camera failed when switching to video call during recording. Here is a workaround that not showing this toast until finding why fail to pause. Change-Id: I1917a88b1a6ac51a835ab52819eaa6c2729b1b6c
* | Merge "SnapdragonCamera: Add shutter animation for APP-ZSL mode" into ↵Linux Build Service Account2019-06-142-0/+17
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | SnapdragonCamera: Add shutter animation for APP-ZSL modexianming wang2019-06-022-0/+17
| |/ | | | | | | | | | | | | Add shutter animation for APP-ZSL mode. CRs-Fixed: 2454794 Change-Id: Iecd833877831e9146007690d3d4866b3c538c722
* | Merge "fix camera app cannot handle intent extras.CAMERA_FACING" into ↵Linux Build Service Account2019-06-141-0/+3
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | fix camera app cannot handle intent extras.CAMERA_FACINGzhuw2019-05-311-0/+3
| |/ | | | | | | | | | | init back and front camera id when init CameraHolder Change-Id: I68417bdd0473fe10a96e677978255f626a7d3272
* / SnapdragonCamera: Fix selfie mirror is not work in 3rd appxianming wang2019-06-021-8/+3
|/ | | | | | | | (1) App should use YUV_420_888 when enable selfie mirror. (2) App didn`t use HAL_ZSL when flash is ON. CRs-Fixed: 2457539 Change-Id: Idf87eebe3446b83550fae6856b5168be78757428
* Merge "Update bitrate only for software codecs" into ↵Linux Build Service Account2019-05-291-11/+4
|\ | | | | | | camera-SnapdragonCamera.lnx.2.0
| * Update bitrate only for software codecsManikanta Kanamarlapudi2019-05-061-11/+4
| | | | | | | | | | | | | | Choose minimum of profileBitrate and maxBitRate as bitrate for software codecs. Change-Id: I1220db9e38a415846b743ec71e3d72a4bc96b498
* | Merge changes Ia6047e64,I81d9b2d1 into camera-SnapdragonCamera.lnx.2.0Linux Build Service Account2019-05-292-10/+28
|\ \ | | | | | | | | | | | | | | | * changes: fix confilct on HFR and Time Lapse option fix apply wrong earlyPCR value after HFR
| * | fix confilct on HFR and Time Lapse optionzhuw2019-05-101-10/+27
| | | | | | | | | | | | | | | | | | | | | do not allow set these 2 option at the same time Change-Id: Ia6047e64925385fe1ef13597c1c5040fa18303cc CRs-Fixed:2448987
| * | fix apply wrong earlyPCR value after HFRzhuw2019-05-091-0/+1
| |/ | | | | | | | | | | | | | | set mHighSpeedCapture to flase after recording it will be init again when start recording Change-Id: I81d9b2d11796b4561b05b1c8430417772b1f8c64 CRs-Fixed:2425070
* | Merge "disable settings during recording" into camera-SnapdragonCamera.lnx.2.0Linux Build Service Account2019-05-292-6/+5
|\ \
| * | disable settings during recordingzhuw2019-05-172-6/+5
| |/ | | | | | | | | | | | | don't allow entering settings during recording CRs-Fixed:2425070 Change-Id: I8783ba16448173a1f0f01f5ae44d66aa6d68698c
* | Merge "Add HDR and nonHDR snapshot for HAL ZSL" into ↵Linux Build Service Account2019-05-291-0/+1
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | Add HDR and nonHDR snapshot for HAL ZSLjinwu2019-04-291-0/+1
| |/ | | | | | | Change-Id: I6a04b10382e509c3741e811278fba9781f1f3b82
* | Merge "SnapdragonCamera: Use thread pool executor for AnsyncTask" into ↵Linux Build Service Account2019-05-291-1/+1
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | SnapdragonCamera: Use thread pool executor for AnsyncTaskxianming wang2019-05-151-1/+1
| |/ | | | | | | | | | | | | Use thread pool executor for AnsyncTask. CRs-Fixed: 2452224 Change-Id: I2238f801a7723ed0cc8cfbad267d5ee0edd38f77
* | Merge "SnapdragonCamera: Fix AE state is NULL in some scenarios" into ↵Linux Build Service Account2019-05-291-1/+5
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | SnapdragonCamera: Fix AE state is NULL in some scenariosxianming wang2019-05-071-1/+5
| |/ | | | | | | | | | | | | Fix AE state is NULL in some scenarios. CRs-Fixed: 2441519 Change-Id: Iab8651a57d0108ed4c12e0fb2caa5d94902cebdb
* | Merge "Don't close session after abortCaptures" into ↵Linux Build Service Account2019-05-291-2/+4
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | Don't close session after abortCapturesjinwu2019-04-301-2/+4
| |/ | | | | | | Change-Id: Iac4181dbda903bb4f0b15a30693ff9a672f75482
* | Merge "Fix force close when TAF before repeating" into ↵Linux Build Service Account2019-05-291-0/+1
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | Fix force close when TAF before repeatingzhuw2019-04-231-0/+1
| |/ | | | | | | | | | | | | | | init mOriginalCropRegion when open camera to avoid this. Change-Id: I3f086475cd8bcdf0087ca20993403e698dd87d79 CRs-Fixed:2426830
* / fix force closed if start recording before snapshot finishedzhuw2019-04-231-1/+1
|/ | | | | | | do not allow recording before snapshot finished Change-Id: Idd412b9ab2cba3b867f9d2842885261a24d97d09 CRs-Fixed:2425049
* Merge "SnapdragonCamera: Add get AE/AF state in onCaptureProgressed" into ↵Linux Build Service Account2019-04-182-10/+12
|\ | | | | | | camera-SnapdragonCamera.lnx.2.0
| * SnapdragonCamera: Add get AE/AF state in onCaptureProgressedxianming wang2019-03-112-10/+12
| | | | | | | | | | | | | | | | (1) Add get AE/AF state in onCaptureProgressed(partial meta). (2) Fix NullPointerException when mPreferenceGroup is NULL. CRs-Fixed: 2401109 Change-Id: I2c2828d9a6d93c50457eb1d1a35f3dbd0e08ff4d
* | Merge "SnapdragonCamera: Remove scene mode and deepportrait" into ↵Linux Build Service Account2019-04-183-53/+17
|\ \ | | | | | | | | | camera-SnapdragonCamera.lnx.2.0
| * | SnapdragonCamera: Remove scene mode and deepportraitxianming wang2019-04-103-53/+17
| |/ | | | | | | | | | | | | Remove scene mode only keep HDR mode, and remove deepportrait. CRs-Fixed: 2432037 Change-Id: I3f062dcc952f918dd51ee7fdfeefc8bf9c8d1c0f