17 #ifndef IGNITION_RENDERING_PIXELFORMAT_HH_ 18 #define IGNITION_RENDERING_PIXELFORMAT_HH_ 21 #include "ignition/rendering/config.hh" 22 #include "ignition/rendering/Export.hh" 28 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
86 public:
static unsigned int ChannelCount(
PixelFormat _format);
92 public:
static unsigned int BytesPerChannel(
PixelFormat _format);
98 public:
static unsigned int BytesPerPixel(
PixelFormat _format);
108 public:
static unsigned int MemorySize(
PixelFormat _format,
109 unsigned int _width,
unsigned int _height);
119 private:
static const char *names[
PF_COUNT];
122 private:
static const unsigned char channelCounts[
PF_COUNT];
125 private:
static const unsigned char channelByteCounts[
PF_COUNT];
< Bayer GBGR, 1-byte per channel
Definition: PixelFormat.hh:47
< Bayer GRGB, 1-byte per channel
Definition: PixelFormat.hh:49
Definition: PixelFormat.hh:57
Provides supporting functions for PixelFormat enum.
Definition: PixelFormat.hh:64
< RGB, 1-byte per channel
Definition: PixelFormat.hh:39
Definition: PixelFormat.hh:51
< Bayer RGGB, 1-byte per channel
Definition: PixelFormat.hh:43
< BGR, 1-byte per channel
Definition: PixelFormat.hh:41
< Grayscale, 1-byte per channel
Definition: PixelFormat.hh:37
PixelFormat
Image pixel format types.
Definition: PixelFormat.hh:32
Definition: PixelFormat.hh:55
< Number of pixel format types
Definition: PixelFormat.hh:59
< Bayer BGGR, 1-byte per channel
Definition: PixelFormat.hh:45
< Unknown or errant type
Definition: PixelFormat.hh:35
Definition: PixelFormat.hh:53