summaryrefslogtreecommitdiff
path: root/test/timer.cpp
AgeCommit message (Expand)Author
2021-09-02libcamera: Drop emitter object pointer from signal argumentsLaurent Pinchart
2021-06-25libcamera/base: Move extended base functionalityKieran Bingham
2020-11-15libcamera: Move EventDispatcher to internal APILaurent Pinchart
2020-08-25meson: Remove -Wno-unused-parameterLaurent Pinchart
2020-05-16libcamera: Move internal headers to include/libcamera/internal/Laurent Pinchart
2019-10-07test: timer: Test start() with absolute deadlineLaurent Pinchart
2019-10-07test: timer: Test that a timer can be restarted before it expiresLaurent Pinchart
2019-10-07test: timer: Test that deadline() isn't reset upon time outLaurent Pinchart
2019-09-14libcamera: Switch to the std::chrono APILaurent Pinchart
2019-08-19test: Get event dispatcher from current threadLaurent Pinchart
2019-07-01test: timer: Add dynamically allocated timer testLaurent Pinchart
2019-01-17test: timer: Add a 32 bit wraparound testKieran Bingham
2019-01-17test: timer: Initialise all variablesKieran Bingham
2019-01-08test: Add timer testLaurent Pinchart
an class="hl opt">{ class CameraSensor; class FrameBuffer; class MediaDevice; class PixelFormat; class Request; class Size; class SizeRange; struct StreamConfiguration; class CIO2Device { public: static constexpr unsigned int CIO2_BUFFER_COUNT = 4; CIO2Device(); std::vector<PixelFormat> formats() const; std::vector<SizeRange> sizes() const; int init(const MediaDevice *media, unsigned int index); int configure(const Size &size, V4L2DeviceFormat *outputFormat); StreamConfiguration generateConfiguration(Size size) const; int exportBuffers(unsigned int count, std::vector<std::unique_ptr<FrameBuffer>> *buffers); int start(); int stop(); CameraSensor *sensor() { return sensor_.get(); } const CameraSensor *sensor() const { return sensor_.get(); } FrameBuffer *queueBuffer(Request *request, FrameBuffer *rawBuffer); void tryReturnBuffer(FrameBuffer *buffer); Signal<FrameBuffer *> &bufferReady() { return output_->bufferReady; } Signal<uint32_t> &frameStart() { return csi2_->frameStart; } private: void freeBuffers(); void cio2BufferReady(FrameBuffer *buffer); std::unique_ptr<CameraSensor> sensor_; std::unique_ptr<V4L2Subdevice> csi2_; std::unique_ptr<V4L2VideoDevice> output_; std::vector<std::unique_ptr<FrameBuffer>> buffers_; std::queue<FrameBuffer *> availableBuffers_; }; } /* namespace libcamera */ #endif /* __LIBCAMERA_PIPELINE_IPU3_CIO2_H__ */