summaryrefslogtreecommitdiffhomepage
path: root/video/camera.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-20 10:24:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-20 10:24:09 +0100
commit67108c8ffe71a78d8f548510f36d1d63c512befd (patch)
treedf3c4dd7296492908c0028e366cd0325a6f4af2a /video/camera.hpp
parent51005ab9e764a8197faa36781fd5dfd861e9c214 (diff)
video/camera: document stride == 0
Diffstat (limited to 'video/camera.hpp')
-rw-r--r--video/camera.hpp2
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;
};