Skip to content

Commit

Permalink
fixup! move fourcc to rsutils
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Oct 2, 2024
1 parent b12bd6b commit d03756e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions third-party/rsutils/src/fourcc.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2024 Intel Corporation. All Rights Reserved.

#include <rsutils/type/fourcc.h>
#include <ostream>


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

0 comments on commit d03756e

Please sign in to comment.