mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpiutil] Rename PixelFormat constants to all caps
This commit is contained in:
@@ -17,7 +17,7 @@ int main() {
|
||||
wpi::util::print(" {}\n", addr);
|
||||
}
|
||||
wpi::cs::UsbCamera camera{"usbcam", 0};
|
||||
camera.SetVideoMode(wpi::util::PixelFormat::kMJPEG, 320, 240, 30);
|
||||
camera.SetVideoMode(wpi::util::PixelFormat::MJPEG, 320, 240, 30);
|
||||
wpi::cs::MjpegServer mjpegServer{"httpserver", 8081};
|
||||
mjpegServer.SetSource(camera);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user