summaryrefslogtreecommitdiff
path: root/camera/device/3.4/default/ExternalCameraDeviceSession.cpp
AgeCommit message (Collapse)Author
2021-08-26Enable mute test pattern for external camerasValentin Iftime
Add ANDROID_SENSOR_TEST_PATTERN_MODE_SOLID_COLOR as an available test pattern for ExternalCameraDevice (v3.4). Bug: 182204067 Test: Connect an USB camera. Enable camera privacy toggle. Apps using the camera should get a black preview Change-Id: Ie0d4d5b3f555eb9e1b1fc255b612668736daeaa4
2020-02-03Camera: add webcam offline processing supportYin-Chia Yeh
Test: CTS/VTS in follow up changes Bug: 135142453 Change-Id: Ie95f22795f4807ed384443de0fffc65c5dde16d1
2019-10-14[hardware][interfaces][camera] fix -Wreorder-init-listNick Desaulniers
C++20 will require members in a designated initializer to be in order unlike C99. Bug: 139945549 Test: mm Change-Id: I387d30e993719014da50207c7114b0003b9450c5 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-03-14Camera: cleanup external camera HAL fence FD logicYin-Chia Yeh
Treat all non-negative integers as valid FD. Test: webcam smoke test Bug: N/A Change-Id: I5fd52c0d195d2d4b63d70d66f10bd2a3ea99985c
2019-03-14Y16 format enablement for external providerEmil Jahshan
added Y16 (depth) support for the external provider. refactored initOutputCharsKeys to support both depth and color metadata according to the connected camera. the VTS changes will be pushed to pie-vts-dev Test: tested on intel depth camera D415 manually in addition to the VTS tests. Change-Id: I358686e7c4330bb180dec4a9cce3bc1cf5475260 Signed-off-by: Emil Jahshan <emil.jahshan@intel.com>
2018-11-29Camera: Add support for stream combination queryEmilian Peev
Camera devices 3.5 and later can optionally support stream combination queries. These use the regular 'StreamConfiguration' structure however in contrast to normal stream configuration, the query will be much faster and will not cause any HW/SW side effects. Additionally it will be possible to run stream combination queries at any time after the camera device is open. Implement stream combination query for the external camera provider. Bug: 111593096 Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO Change-Id: I59ec936d17dabc89ba49407a750df1cd2e61b145
2018-11-16Merge "Camera: add external camera@3.5"TreeHugger Robot
2018-11-15Camera: add external camera@3.5Yin-Chia Yeh
External camera@3.5 supports the new buffer management API that allows HAL to request buffer when needed to optimize the memory usage. Test: smoke test TestingCamera Bug: 109829698 Change-Id: Icfbb75a26d8e92e4eb82a680e94e183041a5174d
2018-10-18Merge "Fix implicit fallthrough warnings." am: 591171a659 am: 9232ca3782Chih-hung Hsieh
am: ec4022d410 Change-Id: I9489669f4797b188027ba7e3686d1e2ecfebefc4
2018-10-16Fix implicit fallthrough warnings.Chih-Hung Hsieh
Test: make checkbuild Bug: 112564944 Change-Id: Ib2b337146de86e4abe40ded5932196f1b8b698c6
2018-10-16Merge "Avoid segfaults if disconnect USB camera while preview." am: ↵chenhg
4dce57e459 am: 86ec58ff52 am: a169023679 Change-Id: I6f1b820f87297564c54b3ee656e201ec79838d78
2018-10-12Avoid segfaults if disconnect USB camera while preview.chenhg
BUG: 117575807 Test: manual test by disconnect USB camera while preview. Change-Id: Ia74b03e7f2a672efd9e9dfd651b5894529daeeee
2018-08-16Camera: plumb blob buffer size from frameworkYin-Chia Yeh
Test: blob size is sent from camera service to webcam HAL using TestingCamera2 Bug: 72173567 Change-Id: I9937881d98dd7d984da5e6ec929118f5d8fe7c9e
2018-05-02rename hidl_enum_{iterator,range}Steven Moreland
This is actually a range, not an iterator. Bug: 78573628 Test: m Change-Id: Ie824a3eabcb7d5af94a8752e1498bdc8c7032e40
2018-04-06Merge "Camera: various external camera fixes" into pi-devTreeHugger Robot
2018-04-04Merge "Camera: use finer lock in external camera OutputThread" into pi-devTreeHugger Robot
2018-04-03Camera: Check external camera v4l2 buffer sizeEmilian Peev
V4L2 buffer size should fall within a reasonable range like (0. width*height*2]. Check and return appropriate status in case the size is not within this range. Bug: 72261912 Test: Camera CTS Change-Id: I1945dc734afb552ecb8d4ef74c9198eca8ce00e7
2018-03-14Camera: various external camera fixesYin-Chia Yeh
1. Add EXIF MAKE/MODEL tag 2. Add retry loop for V4L2 open failure 3. Do not add external camera if ExternalCameraDevice cannot be initialized Bug: 72261912 Bug: 72569850 Change-Id: I06df1fbbb4afabea1a9a74aca9e288b24966cb0b
2018-03-07Camera: use finer lock in external camera OutputThreadYin-Chia Yeh
To avoid OutputThread waiting for mLock. Test: CTS RecordingTest + systrace Bug: 72261744 Change-Id: If387a1d4a2b0081c4bc43cb648a98e3706864f19
2018-03-06Camera: more external camera CTS fixYin-Chia Yeh
Also update default external camera config to prevent over promising peformance on lower end devices. Test: API2 CTS tests except RecordingTest Bug: 72261744 Change-Id: I20310606520099abf0f5173690f4aaf56a3e52a9
2018-03-06Camera: various external camera CTS fixesYin-Chia Yeh
1. Update the FPS range to list (0.5*fps, fps) only as webcams tends to skip a lot of frames and not able to output at stable framerate. 2. Exif: don't expect focal length to present 3. Thumbnail: allow 0x0 size for no thumbnail output 4. Allow retry some ioctl during configureStream as some webcams seems having problem in quick close reopen operation. Test: CTS CameraTest Bug: 72261912 Change-Id: Ic23b7fb293b7579694c59240e854d750c842886d
2018-02-28Camera: add profiling tracesYin-Chia Yeh
Bug: 72261744 Change-Id: I82e4d8ecc702c12bb7beb4f3d9979869ce6f4ac2
2018-02-28Camera: add external camera fps controlYin-Chia Yeh
V4L2 doesn't seem to allow changing fps at runtime, so we need to wait until pipeline is idle and reconfigure V4L2 streams. Also update the fps filtering logic to make sure supported fps are consistent as long as the major dimension is the same. Ex: for 4:3 webcams, all 1280*N sizes has the same fps set, or for 16:9 webcams, all N*720 sizes has the same fps set. Bug: 72261912 Change-Id: I534f09bebadb2f532a030a841633a8be7d3a87cc
2018-02-21Merge "Camera: avoid copying of HalRequest"Yin-Chia Yeh
2018-02-21Merge "Camera: implement external camera dumpState/close"Yin-Chia Yeh
2018-02-20Camera: avoid copying of HalRequestYin-Chia Yeh
Bug: 64874137 Change-Id: I46ea14facf467921da633cde7e24ff9703a6a8f7
2018-02-20Camera: implement external camera dumpState/closeYin-Chia Yeh
Also switch to v4l2 timestamp is it's MONOTONIC Test: Cts CameraDeviceTest Bug: 72261676 Change-Id: Iec82c254dcf16a56952ff8910d13c92782d48090
2018-02-16Merge "Camera: implement external camera flush"TreeHugger Robot
2018-02-14Merge "Camera: use rational/double for external camera framerate"Yin-Chia Yeh
2018-02-13Camera: implement external camera flushYin-Chia Yeh
Test: CTS abort capture test Bug: 72261676 Change-Id: I0c3af8693a885672953ff394121c40c5ade59964
2018-02-13Merge "Camera: plumb external camera API1 support"Yin-Chia Yeh
2018-02-12Camera: use rational/double for external camera framerateYin-Chia Yeh
For better precision. Ex: minFrameDuration of 30fps 333333334->333333333 Bug: 72261912 Change-Id: I830d694d34eb01426e46279c4c986d8879b9d847
2018-02-12Camera: plumb external camera API1 supportYin-Chia Yeh
And also some refactoring to unify external camera config file logics. Bug: 72261912 Change-Id: If83d779c57540809bdaa58a5a32cf4ade734fafe
2018-02-12camera.device@3.4/metadata@3.3: Revise MOTION_TRACKING capabilityEino-Ville Talvala
Simplify the API for the P release - Remove new templates - Update docs - Also update some metadata docs from prior changes Test: Revised Camera CTS passes Bug: 63629224 Change-Id: I47fb170052cf6062955278ace624a91e8a0078b3
2018-02-06External: Switch to legacy V4L2 buffer mappingYuriy Romanenko
Required for older kernels like 3.x Change-Id: I0680320b606727bdb0b22dab1df8c5954d623f10
2018-02-06Merge "External camera: add device config file"TreeHugger Robot
2018-02-02Camera: fix external camera FD double closeYin-Chia Yeh
Release fence close was handled by freeReleaseFences so hidl_handle should not own the native handle. Test: running external camera on marlin Bug: 64874137 Change-Id: I68e76d31985380eb3c502276df07d3648f67b6f1
2018-02-02External camera: add device config fileYin-Chia Yeh
Also remove sizes cannot be cropped from maximal size. Bug: 72261897 Change-Id: Icb50cfa58a12e80be3cacc49569fac90be03c8e5
2018-01-29Implement JPEG support in external camera HALYuriy Romanenko
* Certain tests are still failing Change-Id: I01bb90757cd969ace30857a8d246e4701498d379
2018-01-26ExternalCameraDeviceSession: Fix request initializationYuriy Romanenko
This code was exiting because of unsupported RequestTemplate::* enum values that are now just ignored. Change-Id: I37f79cbbfe99664ec173458721d71947f0d002ff
2018-01-25Merge "External Camera: more CTS fix"TreeHugger Robot
2018-01-25External Camera: fix aspect ratio/crop issueYin-Chia Yeh
Also switch to new EXTERNAL hardware level. Test: ImageReaderTest#testAllOutputYUVResolutions pass Bug: 72261912 Change-Id: I95f05a20827b413bfa480b0336fff395159678eb
2018-01-24External Camera: more CTS fixYin-Chia Yeh
Test: CameraDeviceTest, CaptureResultTest, StaticMetadataTest ExtendedCameraCharacteristicsTest, RobustnessTest Bug: 72261912 Change-Id: Id99d86db99a905afcc41d3e9d297ce3533d852a2
2018-01-23camera.device@3.4: Add MOTION_TRACKING template enumsEino-Ville Talvala
- Extend RequestTemplate with two new values - Add legacy wrapper support for the new templates Test: Builds, camera continues to run. CTS coverage of templates tests new templates as expected. Bug: 63629224 Change-Id: I2a44d86a815690798fa4b8327794c64716d134ee
2018-01-22Camera: Add external camera providerYin-Chia Yeh
Bug: 64874137 63873538 Change-Id: I4309874a7dedd3dd71d4bd0c2004d460421db679