summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Camera: Change volume hard key button to zoom functionnextSu Liu2013-10-184-6/+80
| | | | | | | | Able to capture image through volume hard key button in camera application, change the function to zoom function. Change-Id: Iab9fc2492b2e2ff89cd58c21bac2f147f47b77e2
* Gallery2: camera: Invoke camera UI functions only after initialization.Kiran Kumar H N2013-10-182-5/+25
| | | | | | | | | | | | | | | | | | | | | When switching from Panorama mode to Camera mode, the CameraActivity invokes two functions openModule and onOrientationChanged. openModule initializes PhotoModule. As part of the PhotoModule initialization, the PhotoUI and PhotoMenu are initialized. But this is acheived by posting a message to the handler. When the message is read by the Handler, the PhotoUI's onCameraOpen is invoked which initializes the PhotoMenu. But sometimes before this message is read by the Handler, the onOrientationChanged is invoked, which invokes couple of functions from PhotoUI class acting on the PhotoMenu. But since the PhotoMenu is still not initialized, it throws up error in the form of NullPointerExceptions. Fix this by checking if the PhotoUI and PhotoMenu have been initialized. If they have not yet been initialized, send a message to the Handler to invoke these PhotoUI functionalities after the PhotoUI has been initialized completely. CRs-Fixed: 519055 Change-Id: I06ea54aa56da96459db6cacea92b02d0f8c23bcd
* Revert "Camera: Request for 2 snapshots in HDR Mode."Steve Kondik2013-10-181-5/+0
| | | | This reverts commit 3fd51b1e22d0d9e8816ba56ca10ab609214920a4.
* camera: VideoModule: fix NPE while trying to set HFR video parameterChirayu Desai2013-10-181-1/+1
| | | | | | | | * getSupportedVideoHighFrameRateModes can return null on a device which doesn't support it, so check if it's not null rather than checking if it's size is > 0. Change-Id: Ie5be1f8a0f885ea913be5fb1eb44a97e648756d6
* Camera: Prevent callling of resize before camera is initializedNikola Georgiev2013-10-181-0/+4
| | | | | | | Prevent callling of resizeForPreviewAspectRatio before camera is initialized Change-Id: If8595cd26f4b0e131aa97f6f1f14b2c98e7a21ad
* Camera: Draw smile indicator based on display orientationVijay kumar Tumati2013-10-181-4/+12
| | | | | | | | | Without this, smile indicator is always drawn horizontally which is a vertical line in 90 and 270 degree cases CRs-Fixed: 539887 Change-Id: I320b90a7a8981075565171e69b64e7d3dc832a6f
* Camera App: FaceView: Fix for no smile drawingSunid Wilson2013-10-181-2/+2
| | | | | | | In case of 'no smile' indicator, center the line without any offsets. Change-Id: I3992b6be2cf20d19bdb7c9cee85691cff3ce2feb
* Camera: Fix panorama preview/snapshot rotation issueKerong Sui2013-10-181-12/+12
| | | | | | | | Remove earlier hardcode and use unified solution to solve Panorama preview and snapshot rotation issue by using sensor mount angle and angle compensation in panorama postprocessing. Change-Id: If68c6500c41c7cb3c461352826f1fec45db0a5b0
* Camera: fix panorama rotation issues on 8226.Vijay kumar Tumati2013-10-181-4/+12
| | | | | | | | | | | preview and snapshot are rotated unexpectedly on 8226 but is fine on 8974. Need to change rotation angles in panorama based on sensor mount angle. Change-Id: I0eff35e574b57b787683722bb16762b7b9b0ee2a CRs-Fixed: 495787 (cherry picked from commit 7c0e1e546ac903268a16df6a1823743711e396e4)
* Camera: Fix camera crash when post picture taken in message appwenbinw2013-10-182-3/+12
| | | | | | | | | | | When post the picture taken in message, the gestures should be disabled, that's to say, you can not touch screen to AF or show the preference menu. 1. Disable gestures. 2. Disable keyevent. Change-Id: I70d478979b0738334886dc3ca6534ca428159339 CRs-Fixed: 520918
* Camera: Fix swiping disabled after unsupported video promptwenbinw2013-10-181-2/+3
| | | | | | | | | Before recording starts, some parameters will be checked. If failed, the recording will not run. So the swiping disable should be done after this check. Change-Id: I3e6b0bf1f5d5eb8eef333dac79e56e01bd51b43d CRs-Fixed: 523885
* Camera: Do not create start preview thread if one thread is aliveKerong Sui2013-10-181-1/+1
| | | | | | | | | It will have exception if two same threads tried to manipulate same UI component, check the thread status before create a new one. Change-Id: I6f9a5c03f46360d15fdcebcd52c48b924f5b42ad CRs-fixed: 545574
* Camera: Fix for stretched preview in camera and camcorder.Monika Alekhya2013-10-186-8/+99
| | | | | | | | Stretched preview is observed due to camera sensor's mount angle. So resize the preview frame using aspect ratios to avoid this. Change-Id: Ie8a9e062782aa6caaa80ddab705c937da6b0761e CRs-fixed: 510295
* Camera: Add camcorder pause featureYu Yang2013-10-184-7/+155
| | | | | | | Add Camcorder pause/resume feature, recording can pause, then resume to go on recording. Change-Id: I64840a982535f481655723bc7e03302d8b765132
* camera: fix VideoModule memory leakchiz2013-10-182-0/+5
| | | | | | | | Layout change listener should be removed when module onpause, otherwise the VideoModule will not be able to release. Change-Id: I929526cae01b549044fef305d5af247b41420b0a CRs-Fixed: 549757
* Camera: Avoid the crash if fail to find valueYu Yang2013-10-181-1/+7
| | | | | | | | If fail to find value, set index to 0, which can Avoid camera crash. Crs-fixed: 540594 Change-Id: Iedad101b8f065dbacac4b1203a378cad9c4bc62c
* Camera: Add facial processing featuresIvan Evlogiev2013-10-181-12/+114
| | | | | | | Add smile, gaze and blink detection features CRs-fixed: 531927 Change-Id: I7e710e6d9038b14d00d77ea87f9b4c65baa74fc0
* Camera: change to fix camera preview stretched issuesatyavaraprasad yerramsetti2013-10-183-5/+5
| | | | | | | | | | | | When change camera preview size between 16:9 and 4:3, we need update the CamereScreenNail size, but this size will never update the size of mRenderWidth and mRenderHeight, this cause the function getWidth and getHeight get a wrong size, and cause the camera preview stretched change the method to fix this issue. CRs-Fixed: 507577 Change-Id: I00744851e0ecc393b13e907423ac6ec27230ff49
* Camera: Fix for the AF brackets issues in Face Detetcion.Pavan Chikkala2013-10-181-1/+1
| | | | | | | | | | Also disable the FD start flag from stopPreview. CRs-Fixed: 453944 modified: src/com/android/camera/PhotoModule.java Change-Id: I7ab17154f461d90db2744dbae7aeff518ccd7cc8 (cherry picked from commit e1b82c95910d783cb531c81b5f23552bf26e6cc6)
* camera: DepurpleatorSteve Kondik2013-10-183-1/+13
| | | | | | | * One particular camera has a filter which must be enabled to reduce purple artifacting in certain lighting conditions. Change-Id: I6fe8e0878c0e52459a15cea8802614f76148ba98
* camera: Touch focus support for camcorderSteve Kondik2013-10-183-4/+203
| | | | | | | * Available when video snapshots are not supported. * Original from CodeAurora Forum. Change-Id: I232c178430db08e7366aa9f91b4926d07e7c225d
* camera: Video HDR modeSteve Kondik2013-10-185-0/+44
| | | | | | | | * Add option for video HDR mode. * Some cameras claim to support it, but spontaneously combust when enabled, so we'll disable it by default. Change-Id: Ib17ff4cbb0007440ddc994889b8c2242d4d07e43
* camera: Enable face detection parameter if requiredSteve Kondik2013-10-171-1/+6
| | | | Change-Id: Iecb982a7634390b486cc51ab05937e5928891745
* camera: Add support for high frame rate videoSteve Kondik2013-10-172-1/+19
| | | | | | * If the camera supports HFR for the WVGA profile, use it. Change-Id: I3ba03239b66482af36010b75f6827ad9a5b28d30
* camera: Add workaround for broken video snapshotsSteve Kondik2013-10-161-11/+18
| | | | | | | | | * A certain device requires careful handling of this parameter so that the hardware is configured properly and the memory is freed after a video is recorded. * Add workaround until bug is fixed. Change-Id: I027bd16ecd76f85157cb8bf9dfc8d94c0d25fb76
* camera: Set extra ZSL parameterSteve Kondik2013-10-161-0/+1
| | | | Change-Id: Idca1814659575368c69bd9706239e1c2999e6c13
* camera: Add parameter debugging supportSteve Kondik2013-10-163-6/+25
| | | | Change-Id: Ifc1653f0046af169ba36d94796b4d9a3055c6798
* Camera: Add checker for null pointer exception during camera releaseKerong Sui2013-10-161-0/+3
| | | | | | | In current code, handler will still try to execute command even camera is closed, so add null point checker to skip these commands Change-Id: Idc407b31bedbf5e879673cb2ca4011dbb006587a
* Gallery2: Clear the undefined buffer for the first 15 framesYang Yu2013-10-161-2/+15
| | | | | | | | | | | | | | The view is undefined before the first frame of camera preview data come up. This makes the UI has random corruption when open camera and exit quickly. However, we have no way to know the timing of the first frame. It will take about 700~800ms before first camera preview data comes up, and the time of drawing one frame is about 50ms, so need to clear 15 frames before first camera preview data comes up. Change-Id: Ibc9a5662a15ad58919384ce00cb3a7557b17cae8
* Gallery2: Recycle the image when activity is about to closeMaunik Shah2013-10-161-0/+1
| | | | | | | | | By calling recycle() on fullImage object, the destructor of the SkPNGImageIndex class (libskia) will get called which releases all the memory resources related to that images. Change-Id: Ic74d9469cabeb07018b76e183f28115c4a93775a CRs-Fixed: 551617
* Gallery2: fix the size displayed error of livesnapshot exifKerong Sui2013-10-161-0/+1
| | | | | | | The exif size info of livesnapshot picture should be right, aka., the same as the actual picture. Change-Id: I7415de4fb4b017f681048319ad2a849fa5b29fe9
* Camera: Request for 2 snapshots in HDR Mode.Roja Rani Yarubandi2013-10-161-0/+5
| | | | | | | | Request for 2 snapshots(1x exposure, HDR Processed) images to be stored on the SD Card. Change-Id: Ie7b553e7dd7bf8e03edcf9eb7c09c5e28bacc1ab (cherry picked from commit 1eebfba9e64ce6800209933063bc50336102dfd8)
* Camera: set default focus and metering areas to null.Vijay kumar Tumati2013-10-161-6/+3
| | | | | | | Earlier, default values were not null which is not compatiable with our HAL. Change-Id: I317836b3289b9976bf281c8c74308969cbab626c
* Gallery: Fix filmstrip with no camera tileJorge Ruesga2013-10-081-2/+5
| | | | | Change-Id: I85f1a6ee2c9587a2071234a1754e03886c351f09 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Merge "Revert "camera: improve snapshot KPI"" into cm-10.2Steve Kondik2013-10-051-8/+8
|\
| * Revert "camera: improve snapshot KPI"Steve Kondik2013-10-051-8/+8
| | | | | | | | | | | | This reverts commit 1a0e156ed8e9fb80e4fdd5160d710fe7775f0516. Change-Id: Ie02a04f60af4d6896057890ef81fa058494605e8
* | Gallery: Fix filmstrip source indexJorge Ruesga2013-10-012-13/+15
| | | | | | | | | | Change-Id: I0213871f47fb386ddce5728f0079eb7884e6d9d4 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | camera: Fix camera startup racing with orientation changeSteve Kondik2013-10-011-7/+3
|/ | | | | | | | | | | * When launching the camera via the lock screen widget on some devices, the orientation change shows up late, and we get an onConfigurationChanged in the middle of setting up the textures, causing an infinite wait in the UI thread. * Ignore these events until the preview is up and running, orientation will be checked later. Change-Id: Icf5013e039324d617acd1c1108d37c655776c1c3
* camera: improve snapshot KPIWang Wenbin2013-10-011-8/+8
| | | | | | | | In camera snapshot, thunbnail slide animation is start in JPEG callback, make it start in raw data callback so that it can make use of JPEG encode time which in turn shorten the snapshot time. Change-Id: I1ce8a768a1cb54e8244725bdcb1e49d3ca5a914b
* Camera: reduce the camera button animation duration to 100msYu Yang2013-10-011-1/+1
| | | | | | | It is too long for the animation duration when touch the button which costs 600ms. Reduce it to 100ms to enhance the KPI. Change-Id: I9a105c561419594e5a81e83f7ae3786e4eb86b8d
* Gallery2: reduce the latency between cam&camcorder switchKerong Sui2013-10-011-3/+3
| | | | | | | | | There are animations of fadeIn and fadeOut effect when switching from camera to camcorder or vice-versa which all last 300ms, thus the black UI observed too long. Set the animator duration to a tiny value for reducing this latency. Change-Id: I9cee228e641ad82e7001e091944a30515f96ab2e
* Camera: Block shutter button during mode switchKerong Sui2013-10-011-1/+1
| | | | | | | | | | Video recording will crash if start recording before startpreview is done, so we need to disable shutter button before preview is ready. Move the function which block shutter button after showVideoSnapshotUI as the button will be enabled inside this function. Change-Id: I9b7c4e352bd1f15742a4bdb7494a2e53f25d7a99 CRs-fixed: 545612
* Camera: Do not create start preview thread if one thread is aliveKerong Sui2013-10-011-1/+1
| | | | | | | | | It will have exception if two same thread tried to manipulate same UI component, check the thread status before create a new one. Change-Id: I6f9a5c03f46360d15fdcebcd52c48b924f5b42ad CRs-fixed: 545574
* Camera: Fix crash during open and close camerachiz2013-10-011-0/+3
| | | | | | | | | | When we open camera for the second time after opening camera, switching to camcorder and exit camcorder rapidly, crash will be observed. It's due to the assertion of double open. When app receives pause event, it should cancel the switch animation, as we as it's listener. Change-Id: Id351d3e5db63c54646d592b728a4624e3d6e1211
* Camera: Fix concurrency issues with camera messagesVijay kumar Tumati2013-10-011-4/+10
| | | | | | | | | Without this, multiple threads are trying to access same data and resulting in crash. Change-Id: I1de6f6b85e257f40a4426c7684227606f81c720a CRs-Fixed: 542706
* Gallery2: reduce the camera switch animation duration to 200msKerong Sui2013-10-011-1/+1
| | | | | | | | It is too long for the animation duration when switching from the back sensor to front or vice-versa which costs 400ms. Reduce it to 200ms to enhance the KPI. Change-Id: I0ef532aa88104de3ea0ea859b36f8d8cbf457194
* stop recording from camcorder app in case of error.Guruprasad Gaonkar2013-10-011-1/+1
| | | | | | | This change makes sure that stopvideoRecording is called for all error returns to the video recording app. Change-Id: I70a942dab24e2665d76b3ff060e7ccf3d134e429
* Camera App: return after synchronized blockVijayashree Channiah Sondekoppa2013-10-011-3/+11
| | | | | | | | | | | For some boundary condition when surface allocated is null, due to return within synchronization block it is giving ANR. This change will ensure that return take place outside synchronization block. It will also ensure to notify an object if already in wait state before invoking wait on it. CRs-Fixed: 529666 Change-Id: I8532aa410840785923388a879701be9e98b0154f
* Gallery2: fix the display error of camera manu when rotate itKerong Sui2013-10-011-1/+2
| | | | | | | including: manu of native camera and camcoder Crs-fixed: 529692 532833 Change-Id: I302358fcf9fbde722d8b032b89ee6c0d39d76a8b
* Camera: Fix camcorder crash during pause and resumewenbinw2013-10-012-13/+55
| | | | | | | | | | | | | | | | | When camcorder is suspended in background, if it receives resume and pause event in very short interval, crash will happen. After receiving resume event, the onresume method will be called, and it will start another thread for starting preview. And soon, the main thread receives pause event, the onpause method which will close camera is called. There will be a racing between the main thread and start preview thread. If close camera get done first, crash will be observed. To avoid the racing, the close camera operation should wait for the start preview operation, and the join method is used here for synchronization. CRs-Fixed: 526007 Change-Id: Idf6a8660378bf1a65af1f5194a35d30822f1dcf6