summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Update camera state immediately after start preview.Santhosh Kumar H E2016-01-081-2/+21
| | | | | | | | | | | | | | 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
* Consider fractional value in zoom circle calculation.Santhosh Kumar H E2016-01-081-6/+6
| | | | | | | | Fractional value was lost while rounding off zoom circle size to integer value. Due to this user was not able to zoom upto max zoom level. Change-Id: I99888075f4a484320939f813164bbca9c94dc11a
* Enable extended face detection feature.Santhosh Kumar H E2016-01-081-3/+2
| | | | | | | Enable extended face detection support since it was commented out during basic bringup. Change-Id: Iea1549f770dffb119f1ebe94262ad7ba74323c14
* SnapdragonCamera: notify focus manager about surface changeLikai Ding2016-01-081-0/+4
| | | | | | | | | | If device and preview have different aspect ratio, preview doesn't occupy full screen. So SurfaceView's dimensions including margins need to be considered for transformation matrix. Otherwise touch focus area set to HAL won't match with actual user touch point on screen. Change-Id: I6b7bfa6e3cb831592615dc5dfc45622f106c99d0
* SnapdragonCamera: fix screen flash on resumingLikai Ding2016-01-081-0/+7
| | | | | | | | | 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. Change-Id: I81fabf2d97c32fc2112cf4fceef4edd0872439e2 CRs-Fixed: 889021
* SnapdragonCamera: fix screen flash on resumingLikai Ding2016-01-083-1/+19
| | | | | | | | | 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
* SnapdragonCamera: Hide the preview cover when preview has startedlikaid2016-01-082-3/+8
| | | | | | | | | | | The preview cover was shown when onPause, but didn't hide after resume. That caused the video preview turned to black screen. After the camera preview starts, hide the preview cover if it is still showing. Change-Id: I79fdcd45d46d7c083a132e864bbf42649b100ae4 CRs-Fixed: 865933
* PhotoUI: Calling layoutPreview on holdersize become validJack Yoo2016-01-081-1/+3
| | | | | | | Need to ensure calling layoutPreview on max size change Change-Id: I8c49397c85c592879c38585ff66d1d24bde72d86 CRs-Fixed: 927240
* SnapdragonCamera: Improvement in open camera latencySanjeev Garg2016-01-081-34/+36
| | | | | | | | | setContentView(R.layout.camera_filmstrip) call in the app takes ~40 msec before actual openCamera call is made. This is adding to the total APP camera open latency. So Opening camera in parallel to the call to setContentView(R.layout.camera_filmstrip) to save this time. Change-Id: I8e3797e65d17021853e0e04873178a372f12f195
* SnapdragonCamera: Make camcorder switcher icon invisible.likaid2016-01-082-1/+9
| | | | | | | | | | | When take photo for contact and back from setting ,the camcorder switcher icon will show. When take photo from contact,then set the camcoder switcher icon invisible. Change-Id: If0153650d131c5b1ee78a79c255c637aab410d8e CRs-Fixed: 884351
* SnapdragonCamera: Fix the icons disappeared when start recording failedlikaid2016-01-081-9/+13
| | | | | | | | | | | | The camera switch icon and color effect icon are hidden when start recording, they will be shown again in onStopVideoRecording. But if the start recording failed, the onStopVideoRecording will not be called, that causes the icons disappeared. Show the icons if start video recording failed. Change-Id: I05f64d6fc4928adbd6d8e43e0b31e21e8cb6ea9e CRs-Fixed: 863790
* Snap: fix typo in PhotoModulecodeworkx2016-01-091-1/+0
| | | | Change-Id: Ied37999553d04dcc970da23ccce4dd7c9abf3b48
* Snap: 100 chars!codeworkx2016-01-081-1/+2
| | | | Change-Id: Ia48f48fcd8b8546ca68969198a60f568bae805d6
* Snap: restart preview when shutter-speed gets disabledcodeworkx2016-01-081-1/+13
| | | | Change-Id: I3884b23f1c855cfffeb20ca6e2a760732370d772
* tests: fix class nameDan Pasanen2016-01-082-2/+2
| | | | | | * fixes compile, we are not camera2 Change-Id: Ia7c463745e91ee02aa12f77c9e9d06b602692c4c
* SnapdragonCamera: Fix incorrect viewfinder ratio for 13.1MP shotsSultanxda2016-01-081-1/+1
| | | | | | Set the aspect tolerance to 0.02 to compensate for 13.1MP (4208x3120) shots. 13.1MP will now be properly registered as a 4/3 resolution when the viewfinder ratio is calculated. Change-Id: I41540a0d5fbe11f59d776a6e70e82baa463fff59
* Snap: Fix NPE when switching flash modesmyfluxi2016-01-071-3/+5
| | | | | | If device does not support AE bracketing. Change-Id: I6ec89518addbc786a01291e9f7dd3be3d83cb588
* SnapdragonCamera: Add support for high-speed video recordingPraveen Chavan2016-01-072-66/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | [1] Use combination of MediaRecorder.setCaptureRate and setVideoFrameRate API to achieve HFR/HSR ------------------------------------------------------------ CaptureRate videoFrameRate Recorded-video ------------------------------------------------------------ 120 30 slow-mo @30fps 120 120 high-speed-video @120fps ------------------------------------------------------------ Deprecate usage of custom fields added to media-profiles for checking max-capabilities. Instead, introduce high-speed profiles and advertize correct values (resolution, fps) to indicate target capabilities. Add conversion routines in CameraSettings to convert from normal quality level to time-lapse/high-speed quality. Also, add back 4KDCI and VGA support TODO: Implement bitrate scaling if AOSP does not implement in native. Change-Id: Ic1d5ed8ef52348cab2383abe304056e0401f7069
* Snap: add fallback for invalid video qualitiescodeworkx2016-01-071-0/+7
| | | | | | Might happen when updating from previous versions of Snap Change-Id: Ib52a2daff5a45c33ede1effd7cb7bed2fe61e5cc
* SnapdragonCamera: Query camcorder profiles before usageSai Kumar Sanagavarapu2016-01-074-31/+47
| | | | | | | | 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
* Revert "SnapdragonCamera: Filter out unsupported video encoders inSusmitha Gummalla2016-01-071-33/+0
| | | | | | | | | | | | app" This reverts commit bac24e32cc1d2ff2fd5150e304b0898f449628ef. This is removing H265 encoder from the UI options, which is a FR requirement on 8994. We need to add H265 in media profiles and then commit this change. Change-Id: Id67fe2c83b12011ae82a14183ecc1ef34a38e8fb
* SnapdragonCamera: fix messy photo in Panorama modeLikai Ding2016-01-071-1/+1
| | | | | | | | | | If camera is kept still in panorama mode, the result looks messy. The root cause is that, when calculating and comparing distance in Blend::ComputeMask, double numbers are compared directly. Comparing them against a small negative number fixes the problem. Change-Id: I713f59b4e21c508e20eb4dabc5edb1652b3ddb1a CRs-Fixed: 794974
* SnapdragonCamera: Correct AutoHDR callback data size checkEmilian Peev2016-01-071-1/+1
| | | | | | | | | | | | | | | | | | 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
* SnapdragonCamera: Make direct shutter callbacks configurableEmilian Peev2016-01-071-3/+17
| | | | | | | | | | | | | | | | | | | | Calling shutter callbacks directly decreases the delay with which 'takePicture' calls are triggered during continuous burst capture. As such more time is spent processing and starting next snapshots resulting in a less responsive UI thread. The preview doesn't actually hang or stop but only the UI is not be able to update it as frequently as before. In order to avoid this but also have the burst perfomance enhancement as well a configurable Android property is added: "persist.camera.direct.cb -> 0/1" which when disabled will post shutter event callbacks like before on the UI thread and when when enabled will trigger them directly. Change-Id: Id6fd747eeb19026791faa1ce9db20302767a7695 CRs-Fixed: 794460
* SnapdragonCamera: Enable the TNR option in camera modeTanmaya Godbole2016-01-071-1/+0
| | | | | | | | | | | The TNR option was previously greyed out in the menu for camera mode, so it was not possible to enable temporal denoise. Now, the TNR option is no longer greyed out, and users may enable or disable this feature as they wish. Change-Id: Id6c0f613982e954ecb1410f1290a10608cbfc675 CRs-Fixed: 791534
* Snapdragon Camera: fix face blinking during caf scanGjorgji Rosikopulos2016-01-071-1/+1
| | | | | | | | | Focus overlay should be cleared only when focus scan is started without face present. Currently is cleared every time on lens movement and face flickering during scan is present. Change-Id: I7f4fb1b6032b9b65e13d902b8348ba07333d67f9
* SnapdragonCamera: Don't display metadata in paused stateEmilian Peev2016-01-071-1/+4
| | | | | | | | | | | | | | | | The media metadata retrieval is executed in separate 'async' thread. Once done an UI dialog is generated using the resulting data. A race condition is possible when the query thread is triggered and the activity itself is paused. If the task finishes after the application is no longer running, then the UI dialog box sequence can lead to a runtime exception. To resolve this an additional check is needed which will skip the metadata display step in case the applicaiton is already paused. Change-Id: I8ed5f9b54575278f337d720f997ee649cee3f2f6
* Snapdragon Camera: Call shutter callbacks directlyEmilian Peev2016-01-071-7/+2
| | | | | | | | | | | | Currently shutter callbacks are triggered by posting a 'Runnable' task on the application main handler thread. In some cases when the handler thread is busy, the processing of the shutter event can take significant time, which during longshot will lead to an overall slow down. Change-Id: Ie79f7a7be61e92f82e6d4ed177a4785aceeb811b CRs-Fixed: 759621
* Camera: Avoid 'takePicture()' in preview ready stateEmilian Peev2016-01-071-1/+4
| | | | | | | | | | | | | 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
* Snapdragon Camera: Unlock AE&AWB before snapshotEmilian Peev2016-01-071-6/+7
| | | | | | | | | | | | | | 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
* Snapdragon Camera: Check mosaic preview dimensionsEmilian Peev2016-01-071-3/+8
| | | | | | | | | The preview dimensions used during the Mosaic libray initialization should be verified. Using invalid values like "0x0" could result in a crash of the JNI library. Change-Id: I812b9d1cb3cf6e664eaa582ee553d3af08d02bcb
* Snapdragon Camera: Unlock AE&AWB during longshotEmilian Peev2016-01-071-0/+7
| | | | | | | | | 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
* Snapdragon Camera: Avoid null pointer exception during shutter focusEmilian Peev2016-01-071-2/+4
| | | | | | | | | 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
* Snapdragon Camera: Override flash mode to off during non-auto sceneEmilian Peev2016-01-071-5/+4
| | | | | | | | | | | 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
* Snap: add support for mw_continuous-picture focus modecodeworkx2016-01-074-12/+31
| | | | Change-Id: If165370b52d7454c69e2cdeb9d837d049010b0e8
* Snap: add support for shutter speedcodeworkx2016-01-066-0/+112
| | | | Change-Id: Id3393280c7c1c2f292d71587ba099e8dbafd1340
* Get rid of Holo...LuK13372016-01-061-4/+4
| | | | Change-Id: I7f350882e828a4e4829ecd794c75f05e8a80f627
* add options to restart preview onPictureTakencodeworkx2016-01-052-0/+23
| | | | Change-Id: I7ce9d6f2323e367743e6d4c9662b846d3052f2a4
* add support for luminance-condition parametercodeworkx2016-01-053-0/+29
| | | | Change-Id: Idf845a5f55abf9b72f61ac4bac59ee2258043482
* option to set manufacturer specific parameters on startupcodeworkx2016-01-052-7/+14
| | | | Change-Id: If734a7f4c25465876e657926700763b9169d786e
* make openLegacy an optioncodeworkx2016-01-052-4/+28
| | | | Change-Id: Ia4142288ef0fafa62fa0ab855dc342b363b640cd
* add support for non-standard iso keys and valuescodeworkx2016-01-053-9/+83
| | | | Change-Id: I3a948495cdf84dae3c1734d50ff91b4a5d3d9fc0
* add support for lge-camera parametercodeworkx2016-01-053-1/+30
| | | | Change-Id: Ib31557eb15c37bc928fa259bb098924f72f39da2
* add additional ISO valuescodeworkx2016-01-052-0/+22
| | | | Change-Id: I373457adfa7c6808a1b0303f2f6b10e0b27a1ecb
* init SDCard, fix nullptrcodeworkx2016-01-051-0/+5
| | | | Change-Id: I250664867c54a880bad63275b3c0300d8733c5af
* SnapdragonCamera: Use StorageManager for SDCardDivya Sharma2016-01-051-20/+13
| | | | | | --Use StorageManager instead of MountService for SDCard Change-Id: Ia5fd63a48c8ae79bfe44b7f5291e485ff7ced0af
* SnapdragonCamera: Fix compilationShuzhen Wang2016-01-0213-41/+42
| | | | | | | | | | 1. Address compilation due to compiler upgrade. 2. Comment out video dependencies to enable camera. 3. Fix compilation issue due to IMountService interface change. 4. Comment out ExtendedFace. 5. Remove non-standard video resolutions. Change-Id: I167ab5ff399c4f1d306a1a7ddf94896565c9625a
* Camera2: Prevent propogating CancelAutoFocus during Video Recordingcm-12.1Dheeraj CVR2015-09-201-1/+0
| | | | | | | | | | When AutoFocus is started during Video Recording, CancelAutoFocus is called after KEY_FOCUS_TIME seconds. CancelAutoFocus has the side effect of resetting the sensor AF position and will result in instant loss of focus which is not a desired event when AF is manually triggered in case of Video Recording. Change-Id: Icee7f6dfd4ad083c9b383ee2a4df6a34e4668de6
* Camera2: Prevent autofocus when video snapshot is in progressDheeraj CVR2015-09-201-1/+1
| | | | | | | | | During video recording if screen is tapped repeatedly, autofocus is started while the snapshot is taken. This would either result in an out of focus snapshot which would also disturb the focus in the recorded video or crash the sensors that can't handle autofocus during snapshot. Change-Id: If2763094f5ab7536e4409469276de54580e803c8
* camera: Touch focus support for camcorderSteve Kondik2015-09-205-10/+198
| | | | | | | | | * Available when video snapshots are not supported. * Original from CodeAurora Forum. Sultanxda: Adapted to Snapdragon Camera Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d