Start adding support for non-MJPEG frame types.

Not yet supported by MJPEGServer.
This commit is contained in:
Peter Johnson
2016-11-10 00:00:20 -08:00
parent 41dd9e4f06
commit 254b88bdbe
7 changed files with 64 additions and 13 deletions

View File

@@ -116,10 +116,10 @@ class SourceImpl {
std::vector<VideoMode> EnumerateVideoModes(CS_Status* status) const;
protected:
void PutFrame(VideoMode::PixelFormat pixelFormat, llvm::StringRef data,
Frame::Time time);
void PutFrame(VideoMode::PixelFormat pixelFormat, int width, int height,
llvm::StringRef data, Frame::Time time);
void PutError(llvm::StringRef msg, Frame::Time time) {
PutFrame(VideoMode::kUnknown, msg, time);
PutFrame(VideoMode::kUnknown, 0, 0, msg, time);
}
// Notification functions for corresponding atomics