![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
Utility for swapping pixel bytes in a buffer. More...
#include <pixel_format.hpp>
Public Member Functions | |
template<typename Iterator > | |
void | operator() (IRSOL_MAYBE_UNUSED Iterator begin, IRSOL_MAYBE_UNUSED Iterator end) const |
Utility for swapping pixel bytes in a buffer.
The default (swap=false) does nothing. The specialization for swap=true swaps bytes for 16-bit data (i.e., swaps each pair of bytes in the range).
Usage: PixelByteSwapper<true>()(vec.begin(), vec.end()); // swaps bytes in-place PixelByteSwapper<false>()(vec.begin(), vec.end()); // no-op
Definition at line 157 of file pixel_format.hpp.
|
inline |
Definition at line 160 of file pixel_format.hpp.