add support to passthough mjpeg images

This commit is contained in:
2023-11-18 16:23:52 +01:00
parent 24487a6a51
commit 76bd00363b
5 changed files with 72 additions and 21 deletions

View File

@ -18,7 +18,7 @@ class Webcam {
public:
Webcam(const std::string& device = "/dev/video0",
int width = 640,
int height = 480, bool mjpeg = false);
int height = 480, bool mjpeg = false, bool passthrough = false);
~Webcam();
@ -60,6 +60,7 @@ private:
size_t stride;
bool force_format = true;
bool passthrough_format;
uint32_t format;
};