mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
MjpegServer: Add ability to set compression, etc in code (#1229)
This allows code to set the stream compression, resolution, and FPS used if not specified in HTTP parameters by the client.
This commit is contained in:
@@ -55,6 +55,13 @@ class MjpegServerImpl : public SinkImpl {
|
||||
std::thread m_serverThread;
|
||||
|
||||
std::vector<wpi::SafeThreadOwner<ConnThread>> m_connThreads;
|
||||
|
||||
// property indices
|
||||
int m_widthProp;
|
||||
int m_heightProp;
|
||||
int m_compressionProp;
|
||||
int m_defaultCompressionProp;
|
||||
int m_fpsProp;
|
||||
};
|
||||
|
||||
} // namespace cs
|
||||
|
||||
Reference in New Issue
Block a user