summaryrefslogtreecommitdiff
path: root/camera/device/1.0/default/CameraDevice.cpp
AgeCommit message (Collapse)Author
2020-09-02Merge SP1A.200727.001Daniel Norman
Change-Id: Ia3b7d4eba938bb8d176ba2b02a4e194288372de2
2020-04-13Include what you use: <fcntl.h>Tom Cherry
This was transitively included, but no longer is, so it must be explicitly included. Exempt-From-Owner-Approval: Janitorial Test: build Change-Id: I48d318c53cbfb76849f987029b0c8e775f576496
2019-11-17Merge RP1A.191114.001Steven Laver
Change-Id: I079661667e12cd26e2613e3d15a0968a3549ef36
2019-11-01camera: fix two potential null pointer usesGeorge Burgess IV
Caught by the static analyzer: hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp:401:9: warning: Called C++ object pointer is null [clang-analyzer-core.CallAndMessage] Bug: None Test: TreeHugger Change-Id: Ia6d0a2ab4b4d04cfc171629c7dbf60ead181625d
2018-04-12Camed HAL extension: Added support in HIDL for Extended FD.Sauhard Pande
Made changes in camera.device@1.0-impl 1) Included extended HIDL extension files types.hal and IQCameraDeviceCallback.hal. 2) Added mQDeviceCallback to get the interface extended callbacks defined in CameraHardwareInterface. 3) Changes in sDataCb for coppying extra fields of QCameraFrameMetadata, if extended callback is present else do normal callback to support default implementation. CRs-Fixed:2053749 Change-Id: I4f691342d4a0e53a4949c141ed1f7865f5450c8c
2017-09-14Camera: synchronize access to mMemoryMapYin-Chia Yeh
Test: stress test on partner device Bug: 64831570 Change-Id: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47 Merged-In: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47
2017-09-12Camera: synchronize access to mMemoryMapYin-Chia Yeh
Test: stress test on partner device Bug: 64831570 Change-Id: Ib9ece2f876ccb309c4f1bb8f90242a3e91081f47
2017-06-23Camera: fix recursive lock in CameraDevice 1.0Yahan Zhou
Several functions call close() while they are holding a lock, which results in recursive locking. This CL implements close_locked() to avoid such behavior. Bug: 62919192 Test: run vts -m VtsHalCameraProviderV2_4Target, and camera should still work after it Change-Id: Ib38e1de19ed3c927bfb645c0c777c04f157f2b88
2017-05-08Camera: Clean up TODOs that aren't going to be addressed.Eino-Ville Talvala
These TODOs aren't in scope for the wrapper libraries. Leave the few TODOs that have bugs tracking them, and the ones that are from autogenerated metadata. Test: Builds Bug: 34108979 Change-Id: Ib28467a4fbcfaab4a0809334bc62eabb9290797a
2017-04-28Merge "Camera: use framework header for VideoNativeHandleMetadata" into oc-devTreeHugger Robot
2017-04-27Camera: use framework header for VideoNativeHandleMetadataYin-Chia Yeh
Test: build Bug: 35625849 Change-Id: I8159dd571b6b390fa089d497d45b76c1ec5bda31
2017-04-27Camera: use gralloc mapper for handle importYin-Chia Yeh
Bug: 37540361 Test: marlin, smoke test GCA Change-Id: I9d58d9c6af20b37c016f036bce2dcf55817c59aa
2017-04-10graphics: revise gralloc interfacesChia-I Wu
Revise IAllocator and IMapper to reduce IPC and to support gralloc0 devices. Specifically, IAllocator is trimmed down to have essentially only allocate(BufferDescriptor descriptor, uint32_t count) generates (Error error, uint32_t stride, vec<handle> buffers); The ability to allocate buffers with shared backing store is removed. ProducerUsage and ConsumerUsage are moved to the graphics.common package and are merged and renamed to BufferUsage. BufferUsage's bits follow gralloc0. IMapper gains typedef vec<uint32_t> BufferDescriptor; createDescriptor(BufferDescriptorInfo descriptorInfo) generates (Error error, BufferDescriptor descriptor); where BufferDescriptor is an implementation-defined blob. lockFlex is replaced by lockYCbCr. All getters are removed. Reference counting with retain/release is replaced by importBuffer/freeBuffer. Most if not all gralloc1 features are not used by the runtime yet. There is also not too much test written for them. As such, they tend to behave differently between implementations and cannot be used reliably. Bug: 36481301 Test: builds and boots on Pixel Change-Id: I1d31105120517ea2c128c7a19297acf3bfd312bb
2017-04-06Fix transitive includes.Steven Moreland
Files relying on transitive include of utils/Log.h (and things that it includes) from MQDescriptor.h Test: pass Merged-In: Iff316b21bef556bb026378b7f89e97ded3febef4 Change-Id: Iff316b21bef556bb026378b7f89e97ded3febef4
2017-04-04Merge "Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 ↵Yin-Chia Yeh
usages"" into oc-dev
2017-04-04Revert "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages"Yin-Chia Yeh
This reverts commit 2d80c0d66f9ca869d6102f07bd236b7c4c94c205. Test: fix b/36876770 Bug: b/36876770 Change-Id: Ia251ec97273d71fd5bc759aa1161960f6266358a
2017-04-04Merge "Camera: HAL1: remove libbinder usage" into oc-devTreeHugger Robot
2017-04-03Merge "camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usages" ↵Eino-Ville Talvala
into oc-dev
2017-04-01Camera: HAL1: remove libbinder usageYin-Chia Yeh
Test: Angler HAL1 preview/takePicture/record Bug: 35887419 Change-Id: I6cb37fd78a2fad1ee3b24e4cd61e3a3b2bce4744
2017-04-01Camera: add HAL1 recording batching supportYin-Chia Yeh
Test: Angler HAL1 + set mBatchSize to 4 locally Bug: 35997432 Change-Id: I6baf112f9da56534ae81008bad818fba1e76a294
2017-03-30camera: Map between legacy gralloc0 usage, and HIDL gralloc1 usagesEino-Ville Talvala
Otherwise some bits will be set incorrectly. Also move device@1.0 to use ProducerUsageFlags instead of ProducerUsage, and add a compatibility workaround to set the gralloc0 HW_CAMERA_ZSL flags when ConsumerUsage::CAMERA is passed in. Test: Camera CTS passes, updated VTS tests pass Bug: 35215313 Change-Id: I981dc1a650f838f94d932944fe835fd267f2004d
2017-03-01Camera: default implementation of device 1.0Yin-Chia Yeh
Also some updates to HIDL interface: - Add releaseRecordingFrameHandle to ICameraDevice for native handle metadata recording mode - Add handleCallbackTimestamp to ICameraDevieCallback for native handle metadata recording mode - Add missing face detection metadata to ICameraDeviceCallback::dataCallback - Instead of passing native handle, pass buffer ID in dequeueBuffer/enqueueBuffer/cancelBuffer in ICameraDevicePreviewCallback - Add CameraFrameMetadata in types.hal for face metadata Test: Camera CTS passing (except FlashLightTest) on Angler Bug: 30985004 Change-Id: Idf72a4b5f4c934845ac698f0b13536608ffd0100