summaryrefslogtreecommitdiffstats
path: root/libcamera
Commit message (Collapse)AuthorAgeFilesLines
* Modified Libcamera to allow Touch to focusKalimochoAz2012-01-095-4/+148
| | | | Change-Id: I7f1cdc2ce64d60da97cb7d829f51bb4bb1b07c89
* libcamera: record GPS coordinates with greater precision.James Dong2011-11-212-34/+27
| | | | | | | | | | | | | | | Record latitude and longitude to 7 decimal places (~5 cm) and altitude to 1 cm. The previous behaviour was to record lat/long to 1 arcsecond (~15 m), which was rounded down, so the potential error was up to ~30 m. Addresses AOSP issue 16626. Original author: Vernon Tang <vt@foilhead.net> Suggested by: Wu-cheng Li Reviewed by: jubeam@samsung.com Change-Id: I031858972b939f82f40c0f7299d8eff48bc4f4c5 related-to-bug: 5550852
* libcamera: Remove 16 bytes paddingJames Dong2011-11-152-15/+3
| | | | | Change-Id: I94588d876cab16299175cdab0f63617bb14bcea4 related-to-bug: 5575648
* Camera: move AF polling code from driver into HALkyoungho.yun2011-11-142-3/+39
| | | | | | | | Preview is paused during auto focus. To fix this, move polling code from driver to HAL. Change-Id: Id46d9ccd2aad1a269806f4fddf8ad39c3c87bae9 Signed-off-by: kyoungho.yun <kyoungho.yun@samsung.com>
* 5PC11X: CAMERA: Fix CTS fail listkyoungho.yun2011-11-031-1/+1
| | | | | | | | | Fix Issue 4905016 - android.hardware.cts.CameraTest.testPreviewCallbackWithBufferByCamera fails Signed-off-by: kyoungho.yun <kyoungho.yun@samsung.com> Change-Id: Iab8ed4b79379c148c106b00c4966c5f72f3ded33 related-to-bug: 5550399,5550524,5550858,5550860,5551018,5550902,
* Fix cancelAutoFocus failure if native window is not set.Wu-cheng Li2011-10-181-0/+5
| | | | | | | | | cancelAutoFocus should be allowed after preview is started. But if the preview is deferred, cancelAutoFocus will fail. Ignore it if that is the case. bug:5397951 Change-Id: I59a73add90bd057d7f44d88518b74d932991f21a
* Fix the bug that jpeg size is always 6.8MB.Wu-cheng Li2011-08-311-7/+9
| | | | | | | | Allocate an exact size of jpeg heap before passing to camera service. bug:5160482 Change-Id: Id78f60b03a90533cb62f0c6489c9680692583c23
* Send RawPictureCallback when CAMERA_MSG_RAW_IMAGE_NOTIFY is enabled.Wu-cheng Li2011-08-251-31/+31
| | | | | bug:4967771 Change-Id: I1e77ed60cb741dd5e82ed8a6de92bd06f23f5f87
* 5PC11X: CAMERA: Fix Issue 5143943(SceneMode Fail)kyoungho.yun2011-08-161-0/+17
| | | | | | | | | Fix android.hardware.cts.CameraTest#testSceneMode fail Signed-off-by: kyoungho.yun <kyoungho.yun@samsung.com> bug:5143943 Change-Id: Ia91725ff154a6450fe36393878e7f3e7c49d9a1b
* Merge "5PC11X: CAMERA: Fix issue 5032708 - Native crash"Wu-cheng Li2011-08-111-1/+1
|\
| * 5PC11X: CAMERA: Fix issue 5032708 - Native crashkyoungho.yun2011-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fix Native crash observed in Camera app while taking pictures There are no need to make exif information in encode func. Because we make exif in getExif func. Signed-off-by: kyoungho.yun <kyoungho.yun@samsung.com> bug:5032708 Change-Id: I8e07dc6252a4a959a9319eda402f14ff892a5467
* | Add support NV21 preview callbackJames Dong2011-08-091-114/+45
|/ | | | | | | | o always force to use YV12 for gralloc buffer, regardless preview color format (NV21 or YV12) o for NV21 preview callback, a color conversion is performed before the preview frame is returned via the callback Change-Id: I7e5fb4de40e5f615585465f9b9c50eb3521c1c57 related-to-bug: 5121691,5122253
* Use new camera data callback.Wu-cheng Li2011-07-291-3/+3
| | | | | bug:4460717 Change-Id: I8d60a5cd1b7630075dc04dad0083c4abc2770cf4
* crespo: implement method put_parameters in camera halIliyan Malchev2011-07-271-0/+7
| | | | | Change-Id: I3546b542ab8cb1cf1454d4a44c7c77ea988228e9 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Remove the hack for Camera hal since now the encoder support YV12 and NV12James Dong2011-07-261-1/+1
| | | | Change-Id: Ie17d1ee752b3cbf9fee49c0a044839ead71ca72a
* Change SEC_OMX for Video EditorSeungBeom Kim2011-07-252-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Support Google ExtensionIndex. 2. Decode Component - Decode component return real YUV output data. - Video decode component support two output port color format. They are OMX_COLOR_FormatYUV420SemiPlanar(NV12) and OMX_COLOR_FormatYUV420Planar. Choose one of them under negotiation. - output port default color format is OMX_COLOR_FormatYUV420SemiPlanar(NV12). - Turn off the gralloc/graphic buffer since gralloc/graphic buffer allocator is unavailable 3. Encode Component - Encode component support real YUV input data. - Video encode component support two input port color format. They are OMX_COLOR_FormatYUV420SemiPlanar(NV12) and OMX_COLOR_FormatYUV420Planar. Choose one of them under negotiation. - input port default color format is OMX_COLOR_FormatYUV420SemiPlanar(NV12). - gralloc buffer is not support yet. (store meta data mode use physical address.) 4. Camera hal - Support metadata buffer mode TODO: 1. enable grallco/graphic buffer once the allocator is available 2. add support for gralloc-based metadata buffer support in video encoder component Change-Id: Ic8ba4f0230d6de77ffde7ddf1e2c9a3a5aeb806f Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
* Merge "Fix black preview in Goggles."Wu-cheng Li2011-07-241-14/+1
|\
| * Fix black preview in Goggles.Wu-cheng Li2011-07-111-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Goggles uses the following call sequence and that should be valid. 1. setPreviewCallback 2. startPreview 3. setPreviewDisplay The problem is preview was stopped in setPreviewWindow. No matter CAMERA_MSG_PREVIEW_FRAME or CAMERA_MSG_VIDEO_FRAME is enabled or not, defer the startPreview if preview window is not set. Change-Id: I332a6393f9923a9a1910e53e8da3b2783bfabff7
* | libcamera: Fix a synchronization bugWu-cheng Li2011-07-152-31/+40
|/ | | | | | | | | | | It is valid for the app to call setParameter from jpeg callback. But mCaptureInProgress may still be true. Now startPreview, takePicture, and setParameters wait for mCaptureInProgress up to 5 secodns. bug:3362253 Change-Id: If1935fdbba29e49be8334e2dd92f7ae9ac93ac4a
* libcamera: for checking invalid parametersJeong-Seok Yang2011-06-282-3/+38
| | | | | | | | | | | | | | | bug:4353744 android.hardware.cts.CameraTest#testInvalidParameters fails must fix android.hardware.cts.CameraTest#testInvalidParameters was failed when checking focus mode with invalid parameter because if the camera didn't set scene mode, libcamera didn't check if the focus mode is valid or not. Add checking the parameter at that time. Change-Id: I22fb02b7fcfcdb7f5638adf91d5bfd881c0d89e1 Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* libcamera: for preventing to open camera before releasing another cameraJeong-Seok Yang2011-06-192-2/+15
| | | | | | | | | | | bug:4363159 Opening some camera was successful before releasing another camera. Thus it has been fixed. It will return error if the situation is happened. Change-Id: Id177f7dd0a14b1f7bb72751f432f9b1afee77ede Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* Merge "libcamera: Increase memory buffer"Wu-cheng Li2011-06-191-1/+1
|\
| * libcamera: Increase memory bufferJeong-Seok Yang2011-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | bug fix : libcamera is crashed when capturing picture on back camera sometimes. It is caused by overflow the memory buffer. So, we increase the size of buffer to 5M. Change-Id: If72c06a77e8eaa9544d685c452121eefaa488db1 Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* | libcamera: Change camera.herring.so from camera.s5pc110.soJeong-Seok Yang2011-06-141-1/+1
|/ | | | | | | | | crespo: libcamera is for only herring not boards what are based on s5pc110. So the module name is changed to camera.herring.so from camera.s5pc110.so Change-Id: Ie2231ecfd4c97dd72fba8258e489f90df27b9f51 Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* crespo camera: software work-around to enable camcorderIliyan Malchev2011-06-112-53/+112
| | | | | | | | | | | | | | | | | | | | This hack does two things: -- it sets preview to NV21 (YUV420SP) -- it sets gralloc to YV12 The reason being: the samsung encoder understands only yuv420sp, and gralloc does yv12 and rgb565. So what we do is we break up the interleaved UV in separate V and U planes, which makes preview look good, and enabled the encoder as well. FIXME: Samsung needs to enable support for proper yv12 coming out of the camera, and to fix their video encoder to work with yv12. FIXME: It also seems like either Samsung's YUV420SP (NV21) or img's YV12 has the color planes switched. We need to figure which side is doing it wrong and have the respective party fix it. Change-Id: Ib300b560ecce969c68105ad5e2abe88a5e33ae1f Signed-off-by: Iliyan Malchev <malchev@google.com>
* crespo: enable camera (wip)Iliyan Malchev2011-06-075-462/+789
| | | | | Change-Id: I2884f34700cd1cd66f0604378cf12b713263a9d1 Signed-off-by: Iliyan Malchev <malchev@google.com>
* am b069d589: am f6512678: libcamera: for supporting QVGA and QCIF on front ↵Jeong-Seok Yang2011-03-161-1/+1
|\ | | | | | | | | | | | | camera * commit 'b069d589df044d1241af32d5179955a7ce82fda1': libcamera: for supporting QVGA and QCIF on front camera
| * libcamera: for supporting QVGA and QCIF on front cameraJeong-Seok Yang2011-03-161-1/+1
| | | | | | | | | | | | | | | | | | Feature: Supporting QVGA is Google's request for gtalk. Additionally, QCIF is supported because device driver already support it. Change-Id: I702e433cadf216c7fda141a6703d64c3dd1dc420 Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* | am 4faec6c9: am 069108e8: Merge "Add 176x144 preview size for front camera." ↵Wu-cheng Li2011-03-141-1/+1
|\ \ | |/ | | | | | | | | | | into gingerbread * commit '4faec6c9b21ca66a9c99d305a263662dd9eeb122': Add 176x144 preview size for front camera.
| * Add 176x144 preview size for front camera.Wu-cheng Li2011-03-111-1/+1
| | | | | | | | | | | | bug:4083696 Change-Id: I2e3a8ad17770680f02d1f708bd704fc299a7bd98
* | am 2d6a6037: am 28e8633c: Merge "libcamera: Fix setParameters crash when ↵Wu-cheng Li2011-03-083-37/+16
|\ \ | |/ | | | | | | | | | | opening front camera." into gingerbread * commit '2d6a603741d29c692b46b4828a9a43b9af434bfe': libcamera: Fix setParameters crash when opening front camera.
| * libcamera: Fix setParameters crash when opening front camera.Wu-cheng Li2011-03-073-37/+16
| | | | | | | | | | | | | | | | | | | | | | bug fix: Duplicated setting of cameraid is caused that setParameters fail. So, operations about setting of camera id are moved for setting once. bug:3512875 Change-Id: I48d0847644525a658b4415fffcf2910a83a65e43 Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* | am 8164eaba: am d9e21463: Add additional statements to accept the crespo4g ↵Maarten Hooft2011-03-011-1/+2
|\ \ | |/ | | | | | | | | | | product * commit '8164eaba5b4846431997aa545f44bd158916b9e3': Add additional statements to accept the crespo4g product
| * Add additional statements to accept the crespo4g productMaarten Hooft2011-02-281-1/+2
| | | | | | | | Change-Id: I0e410d7b641c19a773c3bc57cb78e8aa3e27a3ff
* | am 5efdae1f: am fcba3707: Merge "libcamera: Add checking of preview sizes on ↵Wu-cheng Li2011-02-242-1/+28
|\ \ | |/ | | | | | | | | | | setting parameters" into gingerbread * commit '5efdae1f12dd66b9a93ce27953bab8b77927e3b7': libcamera: Add checking of preview sizes on setting parameters
| * Merge "libcamera: Add checking of preview sizes on setting parameters" into ↵Wu-cheng Li2011-02-242-1/+28
| |\ | | | | | | | | | gingerbread
| | * libcamera: Add checking of preview sizes on setting parametersJeong-Seok Yang2011-02-152-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug fix: If it try to set invalid preview sizes, driver will be stuck in an unrecoverable state. Thus, It is fixed to return error when setting parameters bug:3429909 Change-Id: If51b47439c140410fa03e3a0b66492633f194e53 Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* | | am 5c24b742: am 2c6102e3: Fix the bug that the month of gps timestamp exif ↵Wu-cheng Li2011-02-221-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | is off by 1. * commit '5c24b7425b8bf3580189b98b5b8bd8ab50bff1b1': Fix the bug that the month of gps timestamp exif is off by 1.
| * | Fix the bug that the month of gps timestamp exif is off by 1.Wu-cheng Li2011-02-201-1/+1
| |/ | | | | | | | | bug:3468433 Change-Id: Iab4132bdf6515a4fb93e56c2ec31b04ea260f7be
* | am 2f969b94: am 2083387f: libcamera: for setting fixed frame rate on only ↵Jeong-Seok Yang2011-01-291-0/+8
|\ \ | |/ | | | | | | | | | | camcording mode * commit '2f969b94c12bac9cee7c001c041c1532f1a25cf2': libcamera: for setting fixed frame rate on only camcording mode
| * libcamera: for setting fixed frame rate on only camcording modeJeong-Seok Yang2011-01-271-0/+8
| | | | | | | | | | | | | | | | | | Camera sensor change its frame rate by brightness. It makes video that have too low fps in the dark. So it use fixed frame rate on camcording mode. Change-Id: I293c480ffdc4daed138ad9a11231f16c6c2b2f8b Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* | am ff93a1bc: am 68733d59: libcamera: Add lock for recording videoJeong-Seok Yang2011-01-292-0/+6
|\ \ | |/ | | | | | | * commit 'ff93a1bc8935a649893782d24bffa940ba450a2f': libcamera: Add lock for recording video
| * libcamera: Add lock for recording videoJeong-Seok Yang2011-01-272-0/+6
| | | | | | | | | | | | | | | | bug fix: Flag about recording video was used without locking. So, It was occured a error when recording stops. Change-Id: Ie19ec12d17a5a70e44f5ca8743e8ae5672c16a34 Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
* | am 15580c57: am b446deb3: libcamera: Increase buffer to 11 from 8 for fixing ↵Jeong-Seok Yang2011-01-211-1/+1
|\ \ | |/ | | | | | | | | | | tearing * commit '15580c57be18962cc6451c3be2b90aad66afab3e': libcamera: Increase buffer to 11 from 8 for fixing tearing
| * libcamera: Increase buffer to 11 from 8 for fixing tearingJeong-Seok Yang2011-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | Bug fix: Camcording video has tearing issues on low resolution or in daylight condition. It is caused overwriting buffers before processing recording. So we increase number of buffers. Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com> Change-Id: I2a02183174a18472df2506c5f20f324644161c32
* | am 395193b9: am 050e57e0: S5PC11X: libcamera: buffer cleanupMike J. Chen2011-01-214-244/+283
|\ \ | |/ | | | | | | * commit '395193b9992fa3ebed47700446d9d2ccf4428a45': S5PC11X: libcamera: buffer cleanup
| * S5PC11X: libcamera: buffer cleanupMike J. Chen2011-01-194-244/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup how buffers are managed. Before, buffers for preview and capture and record were mixed together, with one thread cleaning up buffers for another. Now, each mode cleans up its own buffers. Implement asychronous buffer release for record case to fix a bug where we allowed FIMC to update a buffer that was still in use by encoder, resulting in encoding a frame that was part one image and part another. Change-Id: I42d0032cea61197a1f3a665a7248b700599d5a6a Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* | am 39eb0ad9: am 0bd85d7b: SP5C11X: libcamera: #ifdef/#defines cleanupMike J. Chen2011-01-215-739/+26
|\ \ | |/ | | | | | | * commit '39eb0ad9be2c0db48ba56bab3b99273c36be428b': SP5C11X: libcamera: #ifdef/#defines cleanup
| * SP5C11X: libcamera: #ifdef/#defines cleanupMike J. Chen2011-01-195-739/+26
| | | | | | | | | | | | | | | | | | | | Remove a bunch of #ifdef conditionals to cleanup the code. The #else cases have generally not been tested for months now and we don't use them, and this makes it easier to follow for the next round of logic cleanup coming up. Change-Id: I4a78901916ed9393ef9b904a1e8037cd645be3b4 Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* | am 75270b4b: am c755f3cd: libcamera: change shutterspeed units to microsecondsSimon Wilson2010-12-201-1/+2
|\ \ | |/ | | | | | | * commit '75270b4b5bcbb573c13f117c68373cbc7b9bc16a': libcamera: change shutterspeed units to microseconds