summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Disable CDS and TNR if SeeMore is enabledShwetha Kotekar2016-07-304-31/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Snap: Unbreak auto-HDRSteve Kondik2016-07-301-1/+1
| | | | Change-Id: Id93d5807fb4c4d14eeea33be0776a6f705a6c435
* Snap: Fix incorrect default ISO values parameterZhao Wei Liew2016-07-181-1/+1
| | | | | | | | | | | | This is a typo introduced by commit: c544747c2892b3984357a86b4116e1faa2be2210 We intend to default the ISO values parameter to "iso-values", but we are currently setting the ISO parameter instead. Fix the typo. Change-Id: Icea4771767c04b08e2b888bc8fb55a05fc69fa91
* Snap: Always allow 100% JPEG quality to be setZhao Wei Liew2016-07-181-15/+10
| | | | | | | | | | Previously, we were checking if the selected JPEG quality was 100% and not setting the JPEG quality if some conditions were met. There isn't any history nor explanation on why we weren't setting the JPEG quality to 100%, so just remove the redundant check. Change-Id: Ie0ab555ad35942bd115751fd10e4f4c11fa7a76d
* Snap: Tighten openLegacy() try-catch blockZhao Wei Liew2016-07-121-13/+14
| | | | | | | | 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
* Snap: Check photo orientation when creating thumbnailZdrowy Gosciu2016-06-081-1/+1
| | | | | Change-Id: I839b20a3b8a7a52a4c8005dce4b37732d4f43f75 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
* Snap: Only override power keyScott Mertz2016-05-311-2/+2
| | | | | | | | Partially revert "Snap: Use new window manager flag for prevent system keys." CYNGNOS-2958 Change-Id: I1e726aa77a6db17c8586c19ddc3b9b31b4077194
* Snap: Update comment to reflect audio focus changesMichael Bestas2016-05-261-4/+2
| | | | Change-Id: I60655aa3a42be218dac5062932692a49a596bedf
* SnapdragonCamera: Release audio focus when video recording is doneJay Wang2016-05-261-1/+13
| | | | | | | | When video capturing is finished, release the audio focus so music application can resume the playback. Change-Id: I5c425b7717e9a31ec9c839ed2689d9b1da852428 CRs-Fixed: 1012070
* SnapdragonCamera: request audio focus before starting video recordingJay Wang2016-05-261-7/+12
| | | | | | | | Use audio focus API to stop other music streams when starting video recording. Change-Id: I0097d0c2bd7157bc1936b9120bbe7c917b9707ee CRs-Fixed: 1005855
* SnapdragonCamera: Recording screen to be dynamicJack Yoo2016-05-261-4/+3
| | | | | | | Let the recording rotate layout to be removed by default and added when it's needed. Change-Id: I2b910897956b914c150941276b299160e9147055
* SnapdragonCamera: Fix the memory leak on view.Jack Yoo2016-05-268-29/+138
| | | | | | | | Keep using modules instead of creating. Don't remove the view without cleaning it. Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0 CRs-Fixed: 958510
* Snap: Use new window manager flag for prevent system keys.Adnan Begovic2016-05-231-2/+2
| | | | | Change-Id: I94ed12ddd33729a4fb486f7fb68f1bbab788b239 TICKET: FEIJ-522
* Snap: Extend user menu, disable dev menucodeworkx2016-05-142-15/+31
| | | | Change-Id: Iaa64372e5d196fd0117a32a386686bdb1fd51e45
* Snap: force enable zsl for lge hdrcodeworkx2016-05-091-0/+5
| | | | | | LGE HDR needs ZSL enabled Change-Id: I563b7f7cd49fcf8aad35ca4b93f839dc0a591f01
* Snap: Only set preferred preview sizes if they are validEthan Chen2016-05-021-2/+6
| | | | | | * Check if a preferred photo preview size is valid before using it. Change-Id: Ia9580b68b60df9784f657df16b317748ff40a696
* Snap: Support override maker and model exif tagKetut Putu Kumajaya2016-05-011-1/+15
| | | | | | Camera HAL not always return proper values Change-Id: Id81fe40ac84b0ffb70560e55077d90544139e463
* Improve RTL layout behaviour.Danny Baumann2016-04-256-307/+173
| | | | | | | | | | - Swap top menu items order in RTL - Swipe in menu from the right in RTL - Make it possible to select scene/filter items in RTL - Remove/clean up some nonsense code Change-Id: I884a06f5cc6e72a1d2ee19dbdf32ce511c8466ec JIRA:NIGHTLIES-2849
* Snap: Add support for focus distanceSteve Kondik2016-04-205-2/+127
| | | | | | * Hook up available metadata to the new focus manager. Change-Id: I793df67a2682d8bb2dee994193111227dd8c8d5a
* Revert "Snap: Improve focusing"Ethan Chen2016-04-205-176/+28
| | | | | | This reverts commit 57799db3c1757618e00d331fe659ac4058624352. Change-Id: I6027d853c9791a1b14c0dffcce038b450019735a
* Snap: Add missing return for SET_ONESHOT_PREVIEW_CALLBACK caseSultanxda2016-04-181-0/+1
| | | | | | Don't fall-through here. Change-Id: I38324b3182a01ab6269998971802f69e3c2cd286
* Snap: Improve focusingSteve Kondik2016-04-145-28/+176
| | | | | | | * Don't needlessly break touch-to-focus during various modes * Set focus parameters immediately for better UX Change-Id: I39b287562c3d2b62a1d5c8953577e366b11b8e15
* SnapdragonCamera: Fix crash issue when changing TNR settingJay Wang2016-04-111-3/+14
| | | | | | | | Move the UI setting change to the UI thread instead of in Camera thread. CRs-Fixed: 931802 Change-Id: Ia38d0adf426c4ef7b3424df9649392ead9b0e604
* Fix view index tracking.Danny Baumann2016-04-041-6/+4
| | | | | | | As we have a header and a footer view now, the assumption 'pref list size == child count' doesn't hold anymore. Change-Id: I1b4ab16907eea758921ccce64af01d2a73e82459
* Properly respect navigation bar size when laying out menus.Danny Baumann2016-04-037-98/+170
| | | | | | | | For top level menus, add padding so all menu items can be scrolled to not be covered by the navigation bar. For sub menus, place them to not be covered by the navigation bar. Change-Id: I22961c19b7bf80a26eec03b5feabfda10e910669
* snap: rearrange top view iconsjrizzoli2016-04-031-4/+4
| | | | | | | | * menu icon should go to the left since it opens a menu that slides in from the left * arrange other icons to not give odd empty spaces when switching modes or hdr is not supported Change-Id: Ia5099f2eac47e0aad4ab1419e6d490347976162d Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* Fix histogram not being hidden after disabling it.Danny Baumann2016-03-292-1/+2
| | | | Change-Id: I55aef506f2cc5c142964c7e90714a2c56aa3de89
* Beautify and optimize histogram view.Danny Baumann2016-03-291-62/+64
| | | | | | | Make it semi-transparent, draw a predictable number of grid lines and drop the unneeded drawing to a bitmap. Change-Id: I07e3cb8507f5bebbd06730ccc28acb8053bc1d1a
* Protect against multiple shutter callbacks per frame in longshot mode.Danny Baumann2016-03-281-0/+8
| | | | | | | | | | 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
* Re-enable processing of drawable state.Danny Baumann2016-03-281-2/+2
| | | | | | | The pressed state change detection provided by it is required for properly ending longshot mode. Change-Id: Ie8fd76f0bd76f47dfa7cda28fe6401ac2d2e0607
* Snap: Fall back to REVIEW intent before VIEW intentEthan Chen2016-03-251-1/+15
| | | | Change-Id: Ie8f1dac602957cb871d0f8c7043ac0f434f4bfac
* Snap: Do not crash when cur-focus-scale is nullLuK13372016-03-091-2/+10
| | | | | | | * Some cameras simply don't set this parameter. * Also set cur-focus-diopter to 0 if it's null. Change-Id: Ib1049012de9a58279560c14ed77f83f52c07fe30
* Snap: Fix incorrect preview layout surface size in landscape modeNikita2016-02-291-4/+9
| | | | | | If height is smaller than width it means that orientation sets to horizontal and we should decrease width instead height to get normal preview size. Change-Id: Ifa211ad2604fb730fb85b01ae1d7c93c9b7aa2ce
* Snap: Remove face detection option if not supportedArne Coucheron2016-02-261-0/+14
| | | | | | | Removes the face detection option from preference list if the "face-detection" camera parameter is blank/doesn't exist. Change-Id: I2ec82ae38505b6674f1a34e98d1b1fb2dbc2a714
* Snap: fix camera hang on LGE G4 when flash got usedcodeworkx2016-02-211-3/+10
| | | | Change-Id: I23e53333a0bbe2a12e64e87ec8594aeaa503e9fc
* Snap: Remove video snapshot size when not supportedMichael Bestas2016-02-201-2/+6
| | | | Change-Id: I3f4dd8b76044389ee4d0d257e47b4ac90262ccc1
* Snap: Remove auto HDR option when not supportedMichael Bestas2016-02-201-3/+8
| | | | Change-Id: Iaff1bee5ad6d48df2efe189955ba91bca8ec5c32
* camera: Keep touch focus intact during back-to-back ZSL shotsSteve Kondik2016-02-202-3/+13
| | | | | | | | * 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
* Snap: Fix filtering of unsupported HFR/HSR modesMichael Bestas2016-02-171-3/+25
| | | | Change-Id: I7721613f10a24cbd36eb0a3c5b0a46a98e828679
* SnapdragonCamera: Fix HSR recordingSultanxda2016-02-171-6/+0
| | | | | | Needed after recent framework changes upstream. Change-Id: Iedee3cf32216eb4cea663a5518d5dfa62725203f
* SnapdragonCamera: Remove bitrate and framerate scaling for HFRSultanxda2016-02-171-12/+4
| | | | | | This is done in the framework now. Change-Id: I3d35de5099db4f1e4b9a29d4a6c8c9e6ccdf5af7
* SnapdragonCamera: Fix timelapse recordingSultanxda2016-02-171-16/+12
| | | | | | | | | 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>
* SnapdragonCamera: Enable audio recording for HSR videosSultanxda2016-02-171-5/+10
| | | | | | | | | 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>
* SnapdragonCamera: Scale up bitrate for HSR recordingsSultanxda2016-02-171-1/+2
| | | | | | | | | | 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>
* Snap: Don't crash if user saved preference is not validGabriele M2016-02-171-2/+10
| | | | | | | | If the user sets some preference value that is later removed, Snap will crash because of on an ArrayIndexOutOfBoundsException. Make sure this doesn't happen. Change-Id: I629acebaf762f49f05dc1bfa0542f11979ae269d
* SnapdragonCamera: Implementing SelfieFlash featureCamera Software Integration2016-02-175-1/+153
| | | | | | | Introducing SelfieFlash feature. Change-Id: I7b73d9db585038640b715092b01e037538ef68aa CRs-Fixed: 937232
* SnapdragonCamera: Calculate in top bottom margin for the previewJack Yoo2016-02-161-2/+7
| | | | | | | | Subtract top and bottom margin from the max height of the preview Let it be aligned correctly to the top and center horizontally. Change-Id: I6c5b3fde57c1a514725a6316dbe8e0c799a928d0 CRs-Fixed: 965033
* SnapdragonCamera: Fix highlight after rotating deviceByunghun Jeon2016-02-161-0/+6
| | | | | | | Fix highlight disappear after rotating device in settings Change-Id: Ic51d95cd07dfb33d846c24cbc265177330542b7a CRs-Fixed: 956111
* SnapdragonCamera: fix the incorrect aspect ratio calculationCamera Software Integration2016-02-161-26/+30
| | | | | | | | | | | For square size picture, the function that calculates the closest aspect ratio, forced it to use 4:3 ratio and caused the preview stretched from 1:1 to 4:3. Fix the issue by skipping the logic that forces it to 4:3 aspect ratio when the picture size is square. Change-Id: Ia7d8250152ce37f4444f7db7c752eeb8489d9a2f CRs-Fixed: 955824
* SnapdragonCamera: Adjust margin on PhotoUICamera Software Integration2016-02-161-7/+9
| | | | | | | Adjust top and bottom margin on every ratio. Change-Id: I755c15039e355d13bcc08e6463f38deba668a234 CRs-Fixed: 951525