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

@@ -93,7 +93,7 @@ void CvSourceImpl::PutFrame(cv::Mat& image) {
}
cv::imencode(".jpg", image, m_jpegBuf, m_compressionParams);
SourceImpl::PutFrame(
VideoMode::kMJPEG,
VideoMode::kMJPEG, image.cols, image.rows,
llvm::StringRef(reinterpret_cast<const char*>(m_jpegBuf.data()),
m_jpegBuf.size()),
wpi::Now());