summaryrefslogtreecommitdiff
path: root/src/android/camera_device.cpp
AgeCommit message (Expand)Author
2020-02-14android: camera_device: Use Camera properties for static MetadataJacopo Mondi
2020-02-13android: Remove internal threadLaurent Pinchart
2020-01-14libcamera: Switch from utils::make_unique to std::make_uniqueLaurent Pinchart
2020-01-12libcamera: camera: Remove the prepared stateNiklas Söderlund
2020-01-12libcamera: Remove dead code after switch to FrameBufferNiklas Söderlund
2020-01-12libcamera: Switch to FrameBuffer interfaceNiklas Söderlund
2020-01-12libcamera: buffer: Move captured metadata to FrameMetadataNiklas Söderlund
2020-01-12libcamera: request: In addBuffer() do not fetch stream from BufferNiklas Söderlund
2019-11-19libcamera: camera: Remove explicit stream to buffer map in requestCompleted s...Niklas Söderlund
2019-10-30android: Replace ThreadRPC with blocking method callJacopo Mondi
2019-10-15libcamera: utils: Add hex stream output helperLaurent Pinchart
2019-09-05android: camera_device: Report available keysJacopo Mondi
2019-09-05android: camera_device: Fix handling of request templateJacopo Mondi
2019-09-05android: camera_device: Use the new CameraMetadata helper classLaurent Pinchart
2019-09-05android: camera_device: Use precise sizes for request templateJacopo Mondi
2019-09-05android: camera_device: Add missing tags in request templateJacopo Mondi
2019-09-05android: camera_device: Remove tags from request templateJacopo Mondi
2019-09-05android: camera_device: Use correct sizes for static metadataJacopo Mondi
2019-09-05android: camera_device: Add missing static metadataJacopo Mondi
2019-08-19android: camera_device: Store static metadata in cacheLaurent Pinchart
2019-08-19android: Pass Camera shared pointer to CameraProxy by const referenceLaurent Pinchart
2019-08-19android: Simplify thread RPC with Object::invokeMethod()Laurent Pinchart
2019-08-12android: hal: Add Camera3 HALJacopo Mondi
span class="hl kwb">int RKISP1PipelineTest::init() { unique_ptr<DeviceEnumerator> enumerator = DeviceEnumerator::create(); if (!enumerator) { cerr << "Failed to create device enumerator" << endl; return TestFail; } if (enumerator->enumerate()) { cerr << "Failed to enumerate media devices" << endl; return TestFail; } DeviceMatch dm("rkisp1"); std::shared_ptr<MediaDevice> rkisp1 = enumerator->search(dm); if (!rkisp1) { cerr << "Failed to find rkisp1: test skip" << endl; return TestSkip; } int ret = rkisp1->populate(); if (ret) { cerr << "Failed to populate media device " << rkisp1->deviceNode() << endl; return TestFail; } sensors_ = 0; const vector<MediaEntity *> &entities = rkisp1->entities(); for (MediaEntity *entity : entities) { if (entity->function() == MEDIA_ENT_F_CAM_SENSOR) sensors_++; } cameraManager_ = new CameraManager(); ret = cameraManager_->start(); if (ret) { cerr << "Failed to start the CameraManager" << endl; return TestFail; } return 0; } int RKISP1PipelineTest::run() { auto cameras = cameraManager_->cameras(); for (const std::shared_ptr<Camera> &cam : cameras) cout << "Found camera '" << cam->id() << "'" << endl; if (cameras.size() != sensors_) { cerr << cameras.size() << " cameras registered, but " << sensors_ << " were expected" << endl; return TestFail; } return TestPass; } void RKISP1PipelineTest::cleanup() { cameraManager_->stop(); delete cameraManager_; } TEST_REGISTER(RKISP1PipelineTest)