Loading...
Searching...
No Matches
VideoCaptureStrategy.hpp
Go to the documentation of this file.
STL namespace.
Definition VideoCaptureStrategy.hpp:245
Lock-free SPSC handoff between the capture thread and the renderer. Capture thread bumps latestFrameI...
Definition VideoCaptureStrategy.hpp:210
Definition VideoCaptureStrategy.hpp:43
std::vector< QRhiTexture * > planes
Definition VideoCaptureStrategy.hpp:71
QRhiTexture * outputTexture
Definition VideoCaptureStrategy.hpp:62
std::uint32_t frameByteSize
Definition VideoCaptureStrategy.hpp:49
Per-graphics-API strategy for getting a captured video frame into a GPU QRhiTexture without CPU stagi...
Definition VideoCaptureStrategy.hpp:84
virtual void * slotBuffer(std::size_t i) const noexcept=0
virtual void acquireForRender()=0
virtual std::size_t outputPlaneCount() const noexcept
Definition VideoCaptureStrategy.hpp:131
virtual QRhiTexture * outputTexture() const noexcept=0
virtual bool acquireSlotForRender(std::size_t, QRhiResourceUpdateBatch &, QRhiCommandBuffer *)
Definition VideoCaptureStrategy.hpp:183
virtual bool ingestFrame(std::size_t i)=0
virtual void acquireForRender(QRhiResourceUpdateBatch &)
Definition VideoCaptureStrategy.hpp:159
virtual bool supportsSlotSelection() const noexcept
Definition VideoCaptureStrategy.hpp:191
virtual void acquireForRender(QRhiResourceUpdateBatch &res, QRhiCommandBuffer *)
Definition VideoCaptureStrategy.hpp:165
virtual const char * name() const noexcept=0
virtual QRhiTexture * currentPlane(std::size_t i) const noexcept
Freshest completed plane i, the per-plane twin of currentTexture().
Definition VideoCaptureStrategy.hpp:141
virtual std::size_t slotCount() const noexcept=0
virtual QRhiTexture * outputPlane(std::size_t i) const noexcept
Definition VideoCaptureStrategy.hpp:135
virtual QRhiTexture * currentTexture() const noexcept
Definition VideoCaptureStrategy.hpp:122