From 5322fc38f466ffd16d0e0c62f747bd054d230857 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Mon, 28 Jan 2019 10:35:44 +0800 Subject: [PATCH] fix(device): fix print intrinsics and format --- src/mynteye/device/device.cc | 4 ++-- src/mynteye/types.cc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mynteye/device/device.cc b/src/mynteye/device/device.cc index 487125a..1f7a1d4 100644 --- a/src/mynteye/device/device.cc +++ b/src/mynteye/device/device.cc @@ -652,8 +652,8 @@ void Device::UpdateStreamIntrinsics( SetIntrinsics(Stream::LEFT, img_params.in_left); SetIntrinsics(Stream::RIGHT, img_params.in_right); SetExtrinsics(Stream::LEFT, Stream::RIGHT, img_params.ex_right_to_left); - VLOG(2) << "Intrinsics left: {" << GetIntrinsics(Stream::LEFT) << "}"; - VLOG(2) << "Intrinsics right: {" << GetIntrinsics(Stream::RIGHT) << "}"; + VLOG(2) << "Intrinsics left: {" << *GetIntrinsics(Stream::LEFT) << "}"; + VLOG(2) << "Intrinsics right: {" << *GetIntrinsics(Stream::RIGHT) << "}"; VLOG(2) << "Extrinsics left to right: {" << GetExtrinsics(Stream::LEFT, Stream::RIGHT) << "}"; break; diff --git a/src/mynteye/types.cc b/src/mynteye/types.cc index e723031..38747b6 100644 --- a/src/mynteye/types.cc +++ b/src/mynteye/types.cc @@ -164,6 +164,7 @@ const char *to_string(const Format &value) { CASE(GREY) CASE(YUYV) CASE(BGR888) + CASE(RGB888) default: return "Format::UNKNOWN"; }