From 8b7e43d76dc129b64243bd8eebf6a84f784a6bb0 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Fri, 11 May 2018 13:08:55 +0800 Subject: [PATCH] Update comments in get_from_callbacks --- samples/tutorials/data/get_from_callbacks.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/tutorials/data/get_from_callbacks.cc b/samples/tutorials/data/get_from_callbacks.cc index d1fe9c7..811e3b7 100644 --- a/samples/tutorials/data/get_from_callbacks.cc +++ b/samples/tutorials/data/get_from_callbacks.cc @@ -31,6 +31,7 @@ int main(int argc, char *argv[]) { // Attention: must not block the callbacks. + // Get left image from callback std::atomic_uint left_count(0); api->SetStreamCallback( Stream::LEFT, [&left_count](const api::StreamData &data) { @@ -42,7 +43,7 @@ int main(int argc, char *argv[]) { // << ", exposure_time: " << data.img->exposure_time; }); - // Get stream data from callback + // Get depth image from callback api->EnableStreamData(Stream::DEPTH); std::atomic_uint depth_count(0); cv::Mat depth;