summaryrefslogtreecommitdiff
path: root/camera/device/3.4/default/ExternalCameraDevice.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-24Camera: Advertise numbered string ID for external camerasAnton D. Kachalov
With current implementation cameraId is part of something like: device@3.5/external//dev/video0 This doesn't work well with Camera2 API based apps. Adding CameraIdOffset tag to Provider as a base offset. Change-Id: I6309d16be565616f048fb24a70e9be5b2f5ed480
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-04-25External Camera: support less thumbnail sizesYin-Chia Yeh
Since larger thumbnail sizes might hit the app1 size limit of 64KB. Test: camera CTS Bug: 119775355 Change-Id: I9d8d21ac0784c53b42c536cfa09a8c40c4f15ea0
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>
2019-01-08Camera: make external camera orientation configurableYin-Chia Yeh
Test: webcam preview has correct aspect ratio on phones Bug: 115774657 Change-Id: I8dcb1a55c4d63c9080f44b85e87d97c138bc5243
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-08-28Camera: support torch control on external cameraYin-Chia Yeh
Claim torch API support though there is no device actually has a flash unit. This is to workaround an issue in camera service where it falls back to legacy camera HAL1 control if the device does not report torch API support (and external camera HAL does not implement HAL1) Test: CtsVerifier FlashLight test Bug: 113336515 Change-Id: I945b35fecfed3b2698b1e9bb1d8faad8699258d2
2018-08-09Camera: provide thumbnail size for more jpeg aspect ratios.chenhg
BUG: 110462045 Test: Camera CTS Merged-In: I5f5500a5e4d02c3cbaa127cd9f222d241f047044 Change-Id: I5f5500a5e4d02c3cbaa127cd9f222d241f047044
2018-08-07Camera: allow to configure minimum stream size.chenhg
HW video encoder usually has limitation to encode very small stream. Camera should avoid to return such streams to avoid video encoding failure. BUG: 110654511 Test: CTS android.hardware.camera2.cts.RecordingTest#testSupportedVideoSizes Change-Id: I6104f2d4efcf7831d1dc6d305c82309e2fd1999d
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-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 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-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-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-02External camera: add device config fileYin-Chia Yeh
Also remove sizes cannot be cropped from maximal size. Bug: 72261897 Change-Id: Icb50cfa58a12e80be3cacc49569fac90be03c8e5
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-22Camera: Add external camera providerYin-Chia Yeh
Bug: 64874137 63873538 Change-Id: I4309874a7dedd3dd71d4bd0c2004d460421db679