summaryrefslogtreecommitdiffstats
path: root/camera
Commit message (Collapse)AuthorAgeFilesLines
* camera: espresso: revert "add Pixel{X,Y}Dimension and Orientation EXIF tags"Andreas Blaesius2017-06-092-0/+8
| | | | | | - fixes images cropped to square when shooting in portrait Change-Id: I533ab769f61baebbf7f1eedc9b41c85425aacb9f
* camera: fix large tiler memory leakagesLuden2016-04-221-0/+11
| | | | | | | | This should fix large (>10M) tiler memory leakages that often occur when the camera is closed. There are still smaller leaks left (several 4K pages per run), but these are much less damaging. Change-Id: Icc442407d357eeff4a1bce9edeff0f186f5646d1
* camera: add Pixel{X,Y}Dimension and Orientation EXIF tagsMichael Gernoth2016-01-072-3/+33
| | | | | | | | These tags are needed by the CM13 camera to not crop images to square when shooting portrait. As the camera HAL already rotated the picture, always set orientation to 0. Change-Id: Id8b6aac5369ae3adfdfec0ec7528edc849bd3b10
* camera: fix build for recent 6.0 releasesZiyan2015-11-071-3/+3
| | | | | | | | | | Frameworks/native commit e2806cb4456e3815e979f333ed23ec7df591a9ff made SensorManager(const android::String16&) private. Let's use SensorManager& getInstanceForPackage(const String16& packageName) instead. Change-Id: I15a582a7a6919c341958188da0c9168045de57e7
* camera: fix build for MMZiyan2015-10-132-0/+16
| | | | Change-Id: I1bdd4510dc54517e70b2bc196b6e371520665661
* camera: add support for espressoZiyan2015-08-152-0/+23
| | | | | | Adds support for camera on the Galaxy Tab 2. Change-Id: I8580dac218593b31e789f372ebb1f294d66cd5c3
* camera: fix build when TI_CAMERAHAL_DONT_USE_RAW_IMAGE_SAVING is setDániel Járai2015-04-011-0/+4
| | | | Change-Id: I5d055f7da992c9c0fd71823c6ca0f18c95fc3be8
* camera: fix front-facing cam on Motorola Omap4Michael Gernoth2015-02-271-0/+4
| | | | | | | Missed this bit when migrating to hardware/ti/omap4. Without it, the front-facing camera can't be used. Change-Id: I1a47d2991afa71840225f0cab9f27a155eaed780
* camera: Add support for camera on motorola devicesMichael Gernoth2015-02-2111-1/+453
| | | | | | | This adds flash-support for motorola devices and disables unsupported functionality. Change-Id: Ib1107d78641ca1ded61e8adb88ab7e8951e4ec74
* camera: add 1280x720 camera size for KFire HD'sHashcode2015-02-161-0/+2
|
* camera: fix capabilities framerates for Jem (KFire HD 8.9)Hashcode2015-02-161-8/+22
|
* camera: fix compile warningHashcode2015-02-031-2/+2
|
* camera: add OV9726 sensor definesHashcode2015-02-033-1/+5
|
* camera: clean up build for when OMAP_ENHANCEMENT_CPCAM is not definedHashcode2015-02-034-11/+10
|
* camera: don't hang while taking pictures in VIDEO_AF_STATEMichael Gernoth2015-02-032-7/+22
| | | | Change-Id: I6ef62da68b82ece315cfb5c6101d8e8c5776b29c
* camera: don't start AF again in VIDEO_AF_STATEMichael Gernoth2015-02-031-1/+1
| | | | Change-Id: I148ab5bd10276b6a9e4ce852435a731e1e500554
* camera: don't drop focus-callback in VIDEO_AF_STATEMichael Gernoth2015-02-031-0/+1
| | | | Change-Id: If580892f35bdfb4ae7071d34b6194fff3773f30a
* camera: handle CAMERA_QUERY_BUFFER_SIZE_IMAGE_CAPTURE in VIDEO_AF_STATEMichael Gernoth2015-02-031-0/+7
| | | | Change-Id: Ib6b7cd411858674f4b9b96076ac71c551687b918
* camera: handle switch from AF_RUN to CAMERA_START_VIDEOMichael Gernoth2015-02-031-0/+6
| | | | Change-Id: I642aab8e69c90121d565ea76071ec73555102377
* camera: Handle capture request in AF runAlex Ray2015-02-031-0/+6
| | | | | | | camera: Handle capture request in AF run Bug: 8140969 Change-Id: I1e1889434d57714cdb0c10929609eade299c1ea9
* camera: add flag USE_LIBION_TI and adjust checks in camera HALHashcode2015-02-033-2/+7
| | | | Make sure we use modified TI ion calls when this is set
* camera: add TI_CAMERAHAL_USES_LEGACY_DOMX_DCC board flag to enable legacy DCCHashcode2015-02-032-2/+11
|
* camera: link against libjhead on 5.0+Michael Gernoth2015-02-031-2/+5
| | | | | | | | Change-Id: If682f40ca99dc13a1243cb391422d98803914a72 Signed-off-by: Michael Scott <michael.scott@linaro.org> Conflicts: camera/Android.mk
* camera: Add 4.4.4 to versions using libjheadMichael Gernoth2015-02-031-2/+2
| | | | Change-Id: I9053b5b632d36a8eedc12d20df833ef106e2c023
* camera: libexif is now libjheadloosethisskin2015-02-031-1/+15
| | | | | | | | | | Fixes undefined reference errors when building jem on 4.4.3. See also https://github.com/CyanogenMod/android_hardware_ti_omap4xxx/commit/0fbe7ecfb0a526c02b774208fa00e0cba19d13a4 [hashcode0f@gmail.com: re-added libexif with PLATFORM var checks so repo can be used to build 4.4.x still] Signed-off-by: Hashcode <hashcode0f@gmail.com> Change-Id: I51ec616010228ae2c9217f47b9a6a243e5b20b3f
* camera: bugfixes for updated camera HALHashcode2015-02-034-0/+16
| | | | | | | | | | - Add MAX_CAMERAS board config to limit scanning of omx cameras (Jem has 2 extra configs which don't exist) - Add TREAT_FRONT_AS_BACK board config to pass the front camera off to the framework as a back camera to fix Panorama modes - ifdef VT slices code which is only used in CPCAM mode Change-Id: I273ec01403e216c544722e681c96ae7e1220b8d7
* camera: add include-path to OMXCameraAdapterMichael Gernoth2015-02-031-1/+2
|
* CameraHAL: Correctly calculate frame ref counterAndriy Chepurnyy2015-02-033-50/+75
| | | | | | | | | | | | This patch fix reference calculation during AV record usecase. Previously there was some logic that counts reference depends what type of frame passed. That leads to race condition in case of video snapshot. Now all possible types of subscriptions will be counted for particular frame. Change-Id: If183fdc425a25424fdb3ca5d31a0030c3669f322 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* CameraHAL: Snapshot buffers reference counter fixAndriy Chepurnyy2015-02-032-3/+3
| | | | | | | | Use CameraBuffer* instead of uint for key in snapshot subscribers map. Change-Id: I1fc800840e120e535c3197b9856d6a1da48c4e7a Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* CameraHal: Remove obsolete codeAndriy Chepurnyy2015-02-032-31/+0
| | | | | | | | Remove obsolete code that trying to mask current and use unsupported resolution. Change-Id: Ia6e96b8d6d23bfef6a139b3f85f1c0651f9f23e1 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* CameraHal: Skip AF callback in non-AF stateAndriy Chepurnyy2015-02-031-1/+8
| | | | | | | | | There is no real need to deliver AF callbacks if autofocus is not triggered from client(i.e. adapter in non AF state). Change-Id: Ie724922c705d749820b6984144bd5390dcd3ff03 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* CameraHal: Avoid to call OMX_Deinit() twiceNanako Baba2015-02-031-3/+3
| | | | | | | | | | | | | | | | In the destructor of OMXCameraAdapter, OMX_Deinit() is called after OMX state is switched to Loaded via switchToLoaded function. But if some error happens during the state change, OMX_Deinit() is called in switchToLoaded function. As the result, OMX_Deinit() is called twice in swtchToLoaded and the destructor. This causes the ducati crash. This patch adds checking for the mOmxInitialized after switchToLoaded() to avoid double deinitialization. Change-Id: Ie30170de2bf032a1861a00b2ca370266fe12d339 Signed-off-by: Nanako Baba <baba@ti.com> Signed-off-by: Daniel Levin <dendy@ti.com>
* CameraHal: Fix double OMX_Deinit() callDaniel Levin2015-02-031-0/+1
| | | | | | | | | | In case performCleanupAfterError() is called without further HAL crash OMX component will be in deinitialized state. Thus it must be marked as uninialized to avoid double deinitialization attempt in OMXCameraAdapter destructor. Change-Id: I65bf7e6ca0acef4b3740d967b6846b5e91136874 Signed-off-by: Daniel Levin <dendy@ti.com>
* CameraHAL: Fixed Image capture when using V4L cameraAndriy Chepurnyy2015-02-032-23/+79
| | | | | | | | | | | - Added correct stop of the preview thread when doing image capture - Added WA that propose ability to skip some frames count if case of use buggy camera driver that do distortions of first frames after stream on Change-Id: I49b7708f4596499142bface731fbccd43cac6ec7 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* CameraHal: Correctly set preview framerateAndriy Chepurnyy2015-02-037-82/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Camera API supports 2 mechanisms that used to set FPS : setPreviewFpsRange and setPreviewFrameRate HAL should correctly handle situation when only one of that call were made. CameraHAL should not modify fps range or fps that was set by client, but it should inform camera adpter somehow what exactly was modified and what value should be used for configuration of preview port. So therefore new paramter KEY_PREVIEW_FRAME_RATE_RANGE was added. Now it will be used by camera adapters for preview configuration and camera hal will be capable for value of this parameter. Possible situations: 1) User had changed FPS range and HAL will use it for fps port value (don't care about changed or not const FPS). 2) User had changed single FPS and had not changed FPS range - will be applyed single FPS value to port. 3) Both FPS range and const FPS are unchanged - FPS range will be applied to port. This patch also fixed several CTS tests from android.media.cts.MediaRecorderTest : testRecorderCamera, testRecorderVideo, testSetMaxFileSize. Change-Id: I31badcdc62a1a33474cb8e0e893f50378e9f6114 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* CameraHAL: Fix for Autofocus callback timeout expiredDmytro Vasylenko2015-02-031-1/+2
| | | | | | | | Prevent waiting for callback of failed AF in ducati. Just retriggering it. Change-Id: Ie7305bc98a6391adbdc410f60bfe23222b0d1e39 Signed-off-by: Dmytro Vasylenko <x0178436@ti.com>
* CameraHal: Correctly handle sendCommand call inside CameraHalAndriy Chepurnyy2015-02-031-31/+28
| | | | | | | | | | | | | There is no restriction for stopFaceDetection API call. So theoretically it can be executed when preview disabled (this patch correctly handle this situation). Also do not return error on unknown commands, since this will break potential API extensions. Change-Id: I7567f680a70cecbcce6e5bb0df830159350adb31 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com> Signed-off-by: Daniel Levin <dendy@ti.com>
* CameraHAL: Forcibly off VSTAB on 4430/60 while 1080p AV rec (TEMP HACK)Dmytro Vasylenko2015-02-032-23/+77
| | | | | | | | | | | 4430/4460 AV Record on Video Format 1080p + Video stabilization On causes the Camera app crash. This is known HW limitation of sgx core on 4430/4460 due to unsupported texture sizes larger than 2k Ideally should be fixed in the Ducati, marked as TEMP HACK. Change-Id: Iea8727077d8eed736e4944e126f1c4586bf50d6b Signed-off-by: Dmytro Vasylenko <x0178436@ti.com>
* CameraHal: Correctly set H264 stream mode using K3.4 and laterAndriy Chepurnyy2015-02-031-2/+1
| | | | | | | | Since in Kernel 3.4 now defined V4L2_PIX_FMT_H264 - we will use it to enable H264 stream mode in V4LCameraAdapter. Change-Id: I963131f5d740d60815bdca99e5a8b0cdc17ab161 Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
* OMAP5: Check TARGET_BOARD_PLATFORM in the root Android.mkDaniel Levin2015-02-031-3/+0
| | | | | | | | | | | | | | | | | The omap4xxx projects are supposed to be buildable only for OMAP4 and OMAP5 but not OMAP3. This patch adds checking for the proper TARGET_BOARD_PLATFORM to the root Android.mk and removes useless double checking from subprojects. Change-Id: Ic103304d24c2ffdbb82b3a277d0b66e0e44e4bc0 Signed-off-by: Daniel Levin <dendy@ti.com> Conflicts: Android.mk security/smc_pa_ctrl/Android.mk security/tee_client_api/Android.mk security/tf_daemon/Android.mk
* CameraHal: Disable picture rotation in stereo mode.Ivaylo Todorov2015-02-031-1/+5
| | | | | | | In stereo mode picture rotation is always set to 0. Change-Id: Ia71ddce063c90ac66eea1b2b0b5cc2ad58fbed79 Signed-off-by: Ivaylo Todorov <x0177393@ti.com>
* Camera: Implement build without neonDaniel Levin2015-02-033-37/+69
| | | | | | | | | | | | - Added macro ARCH_ARM_HAVE_NEON in armv7-a-neon arch - Implemented software conversion NV12 -> NV21 and NV12 -> YV12 - Made non aligned frame conversion YUYV -> NV12 and UYVY -> NV12 to be generic in neonless build Change-Id: I118dcb394999f937e83fd07882a090034cb1de89 Signed-off-by: Daniel Levin <dendy@ti.com>
* fix hardware/ti/omap4xxx referencesHashcode2015-02-031-2/+2
|
* Add liblogYing Wang2015-02-021-0/+1
| | | | | Bug: 8580410 Change-Id: Ie88b9489c314cad95246be5b8f3ff3d0963cbb63
* domx: remove duplicate OMX headers and refer to originals where neededHashcode2015-02-021-0/+2
|
* Merge branch 'd-jb-mr0-release-camera' into p-jb-mr1-releaseDaniel Levin2012-12-052-2/+10
|\ | | | | | | | | Change-Id: I3feec53fce7f847398420b89e2e8cc2b1045cca3 Signed-off-by: Daniel Levin <dendy@ti.com>
| * CameraHAL: Add burst flag to ECaptureParamSettingsGeorgi Georgiev2012-12-051-1/+1
| | | | | | | | | | Change-Id: Ie54c27fc00994e1d9617e144396b23b12a380f65 Signed-off-by: Georgi Georgiev <x0154504@ti.com>
| * CameraHal: Update profiling argument passingEmilian Peev2012-12-051-1/+9
| | | | | | | | | | Change-Id: Icbca29fb3af86cd0e4e454ad87add5f5561dceab Signed-off-by: Emilian Peev <epeev@mm-sol.com>
* | Merge branch 'd-jb-mr0-release-camera' into p-jb-mr1-releaseDaniel Levin2012-12-0440-928/+4810
|\| | | | | | | | | | | | | | | | | | | Conflicts: camera/OMXCameraAdapter/OMXCameraAdapter.cpp test/CameraHal/camera_test_bufferqueue.h test/CameraHal/camera_test_surfacetexture.cpp Change-Id: I1f13c6a5b6369e943773d04a650406a79eb95750 Signed-off-by: Daniel Levin <dendy@ti.com>
| * CameraHal: Don't try to de-queue reprocess input buffersEmilian Peev2012-11-261-2/+4
| | | | | | | | | | | | | | | | | | - Currently the CPCam implementaion in CameraHal doesn't support continuous reprocess. Trying to dequeue further buffers from the tapin is not needed. Change-Id: I4674b513bfe5b659f6827e4e7e39d71f82cab082 Signed-off-by: Emilian Peev <epeev@mm-sol.com>