summaryrefslogtreecommitdiffstats
path: root/src/org
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Abort capture on failed reproc and timeoutJay Wang2016-09-281-45/+160
| | | | | | | | Abort capture when encountering an idle period with no frame or result for 300ms. Abort capture when reprocess or encoding request fails. Fix type cast exception. Change-Id: Ie1fbd2a66107ab2daf54585642ba2ebdd88dd0ed
* SnapdragonCamera: Fix cropping issues with CS outputJay Wang2016-09-271-3/+12
| | | | | | | Fix cropping issues with CS output for scenes +6ft. CRs-Fixed: 1058843 Change-Id: I03f9dda175cbba2cdbb5ec1d4933136525feef4a
* SnapdragonCamera: Ensure smooth quit during cs processingJay Wang2016-09-271-35/+71
| | | | | | | | | | Ensure a smooth quit transition during Clearsight processing. Move image reader/writer disposal to after handler quit. Don't toast Clearsight success/fail until after all tasks are complete. CRs-Fixed: 1058833 Change-Id: I6cf6733051d1947ea65a003b9bacb9d575c6ef67
* SnapdragonCamera: support lower resolutions for ClearsightJay Wang2016-09-271-11/+114
| | | | | | | | | | Support different resolutions when capturing in Clearsight mode. Also downscale the mono image to 2MP resolution when bayer size is greater than 2MP. If bayer size is less than 2MP, mono size will match with bayer. CRs-Fixed: 1058843 Change-Id: I8f9ddd81dd640b4efc316dd9ff05c26f339396a5
* SnapdragonCamera: Rewind ByteBuffer before readingJay Wang2016-09-271-3/+9
| | | | | | | Rewind ByteBuffer objects before reading to ensure we start at beginning. CRs-Fixed: 1057799 Change-Id: I5effd7cac6606c286a8bfaa472229aaab66cda98
* SnapdragonCamera: Implement circular buffer for CSJay Wang2016-09-272-96/+113
| | | | | | | | | | Implement a buffer cache system for Clearsight registration. Pre-allocate required number of buffers and re-use. Remove loading bitmaps to CameraDataAdapter after capture as we no longer are using FilmStripView. CRs-Fixed: 1054487 Change-Id: I6af94b701efa85e8f3848b8c8e508bb688bc2f13
* SnapdragonCamera: Toss leftover frames if we reach quota earlyJay Wang2016-09-271-3/+34
| | | | | | | | If we reach required frame count before burst is finished, disregard remaining frames that come in. CRs-Fixed: 1054524 Change-Id: I6e28ac56d46aeb1298e2d4cdaf684b12e7498587
* SnapdragonCamera: Fix naming issue for frame dumpsJay Wang2016-09-271-16/+20
| | | | | | | | | | Due to switching registerImage to a parallel task, we ran into the issue of overwriting the previous frame with the current frame. Decouple numbering with registered status to avoid overwrites. Also add timestamp in ms to dump filenames. CRs-Fixed: 1054524 Change-Id: I8cc17989c4c72c8f9bed11c2b208df61583c8866
* SnapdragonCamera: Change default burst count for CS to 4Jay Wang2016-09-271-1/+1
| | | | | | | | | Change the default burst count for Clearsight to 4 frames each. This allows us to better guarantee to have 3 valid pairs. Also use 1 less than burst count for actual Clearsight process. CRs-Fixed: 993611, 1019859 Change-Id: I16a5fd1bc31092b5a91c70e637c7559b86b69b3d
* SnapdragonCamera: Split clearsight processImageJay Wang2016-09-271-224/+334
| | | | | | | | | | Split processImage routine into two using new Clearsight API. Unlock and allow user to capture new image after Clearsight finishes processing memory portion. Run the remaining processing in the background while user is allowed to capture new image. CRs-Fixed: 993611 Change-Id: I0213eb6904a9430d26dca681ed6fb653db3f571c
* SnapdragonCamera: Update Clearsight API calls for 2.8.2Jay Wang2016-09-272-30/+47
| | | | | | | | Update the Clearsight API Calls for version 2.8.2 which contains split processImage for better shot to shot performance. CRs-Fixed: 993611 Change-Id: I124cdf7c426ea3b0cfd10a31ce738188faf446c2
* Merge "SnapdragonCamera: Provide correct orientation when adding image" into ↵Linux Build Service Account2016-08-081-2/+9
|\ | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Provide correct orientation when adding imageJay Wang2016-07-261-2/+9
| | | | | | | | | | | | | | | | Read orientation from exif and provide to content provider when adding image. CRs-Fixed: 993611 Change-Id: Ic2079dd1b5e6bdb93f73b4084749b3cbc68b3f86
* | Merge "SnapdragonCamera: Set edge mode to high quality" into ↵Linux Build Service Account2016-08-081-0/+7
|\| | | | | | | camera.lnx.1.0-dev.1.0
| * SnapdragonCamera: Set edge mode to high qualityByunghun Jeon2016-07-261-0/+7
| | | | | | | | | | | | | | Force edge mode to high quality CRs-Fixed: 993611 Change-Id: I51bf69b681dbf58eb04412abad4ba9d067f40aa8
* | SnapdragonCamera: Update API call for clearsight lib upgrade.Jay Wang2016-07-261-3/+11
|/ | | | | | | Update processImage API call to coincide with lib upgrade. CRs-Fixed: 993611 Change-Id: Ie3be9b1a586dcc1e50da626f49349cab617ce27e
* SnapdragonCamera: add jpeg crop parrameter supportJay Wang2016-06-271-0/+10
| | | | | | | Add support for crop data when sending JPEG encode requests. CRs-Fixed: 993611 Change-Id: Icbd960160d651a3422c2b8530608fcd5dba97735
* SnapdragonCamera: Change file naming conventionJay Wang2016-06-062-41/+40
| | | | | | | | | | Change logic to generate common file name to be used for all dumped frames. Decouple YUV and JPEG dump set props so that they can be toggled independently. CRs-Fixed: 993611 Change-Id: I3e985e2fe55e116529929e36fb26c3760f47a536
* SnapdragonCamera: Enable jpeg encoding via reprocessJay Wang2016-05-242-129/+355
| | | | | | | | | | Enable JPEG encoding via reprocess request for ClearSight routine. Add support for dumping images in NV21 format using persist.camera.cs.dumpyuv CRs-Fixed: 993611 Change-Id: I51ff59ec45bb37059a16197186a9f90bc52554f1
* SnapdragonCamera: add OTP calib data support and fix AE stateJay Wang2016-05-172-53/+251
| | | | | | | | | Add support to receive, parse, and send OTP calibration data from HAL to ClearSight library and add check for AE convergence state. CRs-Fixed: 993611 Change-Id: I52d6b71dc7bde4e08342afee7aa9d41bb9a4dde6
* SnapdragonCamera: refactor clearsight code and add persist flagsJay Wang2016-04-292-0/+999
Move out core ClearSight logic to ClearSightImageProcessor.java Move core ClearSight files to new package: org/codeaurora/snapcam/filter Add persist flags: timestamp difference threshold: persist.camera.cs.threshold burst shot count: persist.camera.cs.burstcount dump source frames: persist.camera.cs.dumpframes CRs-Fixed: 993611 Change-Id: Ic8953a72e8697e494c3ae342bebc70f60540474b