diff options
Diffstat (limited to 'src/camera/veyeimx287m.h')
| -rw-r--r-- | src/camera/veyeimx287m.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/camera/veyeimx287m.h b/src/camera/veyeimx287m.h index 1f293d6..4de51af 100644 --- a/src/camera/veyeimx287m.h +++ b/src/camera/veyeimx287m.h @@ -37,7 +37,7 @@ public: bool dequeueImageBuffer(size_t &image); // bool getImage(Image &image); - bool getImage(Image *image); + bool getImage(Image *image) override; bool init(); @@ -93,10 +93,12 @@ private: struct buffer { - unsigned int idx; - unsigned int padding[VIDEO_MAX_PLANES]; - unsigned int size[VIDEO_MAX_PLANES]; - void *mem[VIDEO_MAX_PLANES]; + unsigned int idx{std::numeric_limits<unsigned int>::max()}; + unsigned int padding[VIDEO_MAX_PLANES]{ + std::numeric_limits<unsigned int>::max()}; + unsigned int size[VIDEO_MAX_PLANES]{ + std::numeric_limits<unsigned int>::max()}; + void *mem[VIDEO_MAX_PLANES]{nullptr}; }; std::vector<buffer> buffers; |
