From 67108c8ffe71a78d8f548510f36d1d63c512befd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 20 Mar 2019 10:24:09 +0100 Subject: video/camera: document stride == 0 --- video/camera.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') 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; }; -- cgit v1.2.3