add support to passthough mjpeg images
This commit is contained in:
parent
24487a6a51
commit
76bd00363b
5 changed files with 72 additions and 21 deletions
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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue