add support to passthough mjpeg images
This commit is contained in:
3
webcam.h
3
webcam.h
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user