SourceImpl: Refactor frame allocation into AllocFrame.

This commit is contained in:
Peter Johnson
2016-11-12 01:58:59 -08:00
parent 5ae1162378
commit 7e0e8286eb
2 changed files with 18 additions and 5 deletions

View File

@@ -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);