mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Start adding support for non-MJPEG frame types.
Not yet supported by MJPEGServer.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user