mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
SourceImpl: Refactor frame allocation into AllocFrame.
This commit is contained in:
@@ -115,6 +115,10 @@ class SourceImpl {
|
||||
|
||||
std::vector<VideoMode> EnumerateVideoModes(CS_Status* status) const;
|
||||
|
||||
std::unique_ptr<Frame::Data> AllocFrame(VideoMode::PixelFormat pixelFormat,
|
||||
int width, int height,
|
||||
std::size_t size, Frame::Time time);
|
||||
|
||||
protected:
|
||||
void PutFrame(VideoMode::PixelFormat pixelFormat, int width, int height,
|
||||
llvm::StringRef data, Frame::Time time);
|
||||
|
||||
Reference in New Issue
Block a user