diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-20 10:24:09 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-20 10:24:09 +0100 |
commit | 67108c8ffe71a78d8f548510f36d1d63c512befd (patch) | |
tree | df3c4dd7296492908c0028e366cd0325a6f4af2a /video/camera.hpp | |
parent | 51005ab9e764a8197faa36781fd5dfd861e9c214 (diff) |
video/camera: document stride == 0
Diffstat (limited to 'video/camera.hpp')
-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; }; |