summaryrefslogtreecommitdiff
path: root/include/linux
AgeCommit message (Expand)Author
2020-10-19include: linux: Update V4L2_CID_USER_BCM2835_ISP_BASE to match upstream treeNaushir Patuck
2020-09-29include: linux: Update rkisp1 headerNiklas Söderlund
2020-07-27include: drm_fourcc: Add 16-bit Bayer FourCCNiklas Söderlund
2020-07-17libcamera: pipeline: ipa: raspberrypi: Use dma heap allocs for LS tablesNaushir Patuck
2020-07-17include: linux: Add dma-buf.h and dma-heap.h UAPI headersNaushir Patuck
2020-06-18include: linux: Remove drm.h and drm_mode.hLaurent Pinchart
2020-06-09libcamera: Add missing SPDX headers to miscellaneous small filesLaurent Pinchart
2020-05-21include: linux: Update v4l2 ctrls for propertiesJacopo Mondi
2020-05-11include: uapi: Add header definitions for BCM2835 Unicam and ISP blocksNaushir Patuck
2020-05-10include: linux: Extend VIDIOC_ENUM_FMT to support MC-centric devicesLaurent Pinchart
2020-03-27include: drm_fourcc: Add Bayer FourCC and modifiersNiklas Söderlund
2020-02-14include: linux: Update v4l2-controls.hJacopo Mondi
2019-12-08include: linux: Update Linux headers readme to v5.2Paul Elder
2019-10-28include: drm_fourcc: Add Motion-JPEG FourCCJacopo Mondi
2019-10-28include: linux: Import DRM/KMS headers from Linux v5.2Jacopo Mondi
2019-10-28include: linux: Update headers to Linux v5.2Jacopo Mondi
2019-10-11include: linux: Add rkisp1 kernel header and format definitionsNiklas Söderlund
2019-06-02include: linux: Update Linux headers to v5.1Jacopo Mondi
2019-01-17include: linux: Import V4L2 uAPI headers from Linux v4.19Kieran Bingham
2018-12-19libcamera: include: Import media.h from Linux v4.19Jacopo Mondi
pan>() { const unsigned int bufferCount = 8; EventDispatcher *dispatcher = Thread::current()->eventDispatcher(); Timer timeout; int ret; ret = capture_->allocateBuffers(bufferCount, &buffers_); if (ret < 0) { std::cout << "Failed to allocate buffers" << std::endl; return TestFail; } capture_->bufferReady.connect(this, &CaptureAsyncTest::receiveBuffer); for (const std::unique_ptr<FrameBuffer> &buffer : buffers_) { if (capture_->queueBuffer(buffer.get())) { std::cout << "Failed to queue buffer" << std::endl; return TestFail; } } ret = capture_->streamOn(); if (ret) return TestFail; const unsigned int nFrames = 30; timeout.start(500ms * nFrames); while (timeout.isRunning()) { dispatcher->processEvents(); if (frames > nFrames) break; } if (frames < 1) { std::cout << "Failed to capture any frames within timeout." << std::endl; return TestFail; } if (frames < nFrames) { std::cout << "Failed to capture " << nFrames << " frames within timeout." << std::endl; return TestFail; } std::cout << "Processed " << frames << " frames" << std::endl; ret = capture_->streamOff(); if (ret) return TestFail; return TestPass; } private: unsigned int frames; }; TEST_REGISTER(CaptureAsyncTest)