diff options
-rw-r--r-- | video/camera.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/camera.hpp b/video/camera.hpp index c9577933..21f4f916 100644 --- a/video/camera.hpp +++ b/video/camera.hpp @@ -20,6 +20,8 @@ namespace video struct frame final { unsigned char* data = nullptr; + // the `stride' member can have a special value of zero, + // signifying equal to width * element size int width = 0, height = 0, stride = 0, channels = 0; }; |