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 {
88 public:
static unsigned int ChannelCount(
PixelFormat _format);
94 public:
static unsigned int BytesPerChannel(
PixelFormat _format);
100 public:
static unsigned int BytesPerPixel(
PixelFormat _format);
110 public:
static unsigned int MemorySize(
PixelFormat _format,
111 unsigned int _width,
unsigned int _height);
121 private:
static const char *names[
PF_COUNT];
124 private:
static const unsigned char channelCounts[
PF_COUNT];
127 private:
static const unsigned char channelByteCounts[
PF_COUNT];
< RGBA, 1-byte per channel
Definition: PixelFormat.hh:59
< 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:66
< 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:61
< Bayer BGGR, 1-byte per channel
Definition: PixelFormat.hh:45
< Unknown or errant type
Definition: PixelFormat.hh:35
Definition: PixelFormat.hh:53