summaryrefslogtreecommitdiffstats
path: root/libcamera
Commit message (Collapse)AuthorAgeFilesLines
* camera: RGB565 preview formatPaul Kocialkowski2014-01-031-39/+7
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Fix for save_postview changesRobert Burns2012-12-091-1/+2
| | | | | | - Add mode to file creation Change-Id: I6100bae274798c7793ba1bf83af708a9c08e37a6
* Replace LOG by ALOGKalimochoAz2012-07-231-3/+3
| | | | Change-Id: I7897574a2df30fd88edb6fa58b20fd6a5436ecd7
* Merge remote-tracking branch 'github/ics' into 23072012KalimochoAz2012-07-235-4/+148
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Android.mk BoardConfigCommon.mk board-info.txt device_base.mk egl.cfg factory-images/generate-factory-images-package.sh kernel overlay/frameworks/base/core/res/res/values/config.xml Change-Id: If153de549a1a3b5145f856de6c55c825d3124a11
| * Modified Libcamera to allow Touch to focusKalimochoAz2012-01-095-4/+148
| | | | | | | | Change-Id: I7f1cdc2ce64d60da97cb7d829f51bb4bb1b07c89
* | Camera: Fix crash when cancelling autofocus outside of preview.Eino-Ville Talvala2012-06-051-0/+5
| | | | | | | | | | | | | | | | Cancelling autofocus should be possible outside of preview. Make it a no-op, since the lens is re-initialized on preview start in any case. Bug: 6579941 Change-Id: I3d7444becf052e1ca2593937bee494c637715cb6
* | libcamera: remove unused fimc_v4l2_s_ext_ctrl functionDima Zavin2012-04-091-20/+0
| | | | | | | | | | Change-Id: I393a30310e2768931be7468f5f6f506d1658d655 Signed-off-by: Dima Zavin <dima@android.com>
* | Switched to use header files from /frameworks/nativeJames Dong2012-03-122-1/+2
| | | | | | | | | | | | o related-to-bug: 6044887 Change-Id: If4a56cd53bf910d2db7a30e836bdafb7837bdba4
* | Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-082-216/+216
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I03a60758c6dad0d9ecbce42f092a0fe757bd7184
* | Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-052-6/+6
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I6d2e59149c2f007d6ba8f1d2990837a37f712ffe
* | Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-042-25/+25
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: I61ce15c87baa38e1f88857e30b549d513a54b724
* | Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-033-17/+17
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: If4249034e0a90a502aba69c199173c8ad4af93b3
* | resolved conflicts for merge of 98591897 to masterJames Dong2011-11-222-34/+27
|\ \ | |/ | | | | Change-Id: I98e9ae59b25243c0dd94d42e8066c906e7e6e128
| * 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
* | Fix broken build due to transition to ALOGV instead of LOGVJames Dong2011-11-151-1/+1
| | | | | | | | Change-Id: Ie2412b58f58e7989fc972cc20c3db334ca56e22d
* | resolved conflicts for merge of c62dbe3e to masterJames Dong2011-11-152-16/+4
|\ \ | |/ | | | | Change-Id: Id9e1b41c46f26f3926a52834f4643898f6bafaa4
| * libcamera: Remove 16 bytes paddingJames Dong2011-11-152-15/+3
| | | | | | | | | | Change-Id: I94588d876cab16299175cdab0f63617bb14bcea4 related-to-bug: 5575648
* | resolved conflicts for merge of 77143165 to masterSimon Wilson2011-11-152-3/+39
|\ \ | |/ | | | | Change-Id: Ic30c853d7f9898206699c3c0e648a54362ed4824
| * 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>
* | am f9a8cbcf: Merge "5PC11X: CAMERA: Fix CTS fail list Fix Issue 4905016 - ↵James Dong2011-11-041-1/+1
|\ \ | |/ | | | | | | | | | | android.hardware.cts.CameraTest.testPreviewCallbackWithBufferByCamera fails Signed-off-by: kyoungho.yun <kyoungho.yun@samsung.com>" into ics-mr1 * commit 'f9a8cbcfffd293acfe6621338377f076e2960599': 5PC11X: CAMERA: Fix CTS fail list Fix Issue 4905016 - android.hardware.cts.CameraTest.testPreviewCallbackWithBufferByCamera fails 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,
* | Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block2011-10-262-200/+200
|/ | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I73e1ab4f4eadb55e747b3b2be4b6c1824dce7b2c
* 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