From d03756e499308b78bd0c551707f70dfd924eb357 Mon Sep 17 00:00:00 2001 From: Eran Date: Wed, 2 Oct 2024 09:22:56 +0300 Subject: [PATCH] fixup! move fourcc to rsutils --- third-party/rsutils/src/fourcc.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 third-party/rsutils/src/fourcc.cpp diff --git a/third-party/rsutils/src/fourcc.cpp b/third-party/rsutils/src/fourcc.cpp new file mode 100644 index 00000000000..0d53a74731e --- /dev/null +++ b/third-party/rsutils/src/fourcc.cpp @@ -0,0 +1,23 @@ +// License: Apache 2.0. See LICENSE file in root directory. +// Copyright(c) 2024 Intel Corporation. All Rights Reserved. + +#include +#include + + +namespace rsutils { +namespace type { + + +std::ostream & operator<<( std::ostream & os, fourcc const & fcc ) +{ + os << char( fcc.get() >> 24 ); + os << char( fcc.get() >> 16 ); + os << char( fcc.get() >> 8 ); + os << char( fcc.get() ); + return os; +} + + +} // namespace number +} // namespace rsutils