17 #ifndef IGNITION_RENDERING_PIXELFORMAT_HH_ 18 #define IGNITION_RENDERING_PIXELFORMAT_HH_ 21 #include "ignition/rendering/Export.hh" 75 public:
static unsigned int ChannelCount(
PixelFormat _format);
81 public:
static unsigned int BytesPerChannel(
PixelFormat _format);
87 public:
static unsigned int BytesPerPixel(
PixelFormat _format);
97 public:
static unsigned int MemorySize(
PixelFormat _format,
98 unsigned int _width,
unsigned int _height);
108 private:
static const char *names[
PF_COUNT];
111 private:
static const unsigned char channelCounts[
PF_COUNT];
114 private:
static const unsigned char channelByteCounts[
PF_COUNT];
< Bayer GBGR, 1-byte per channel
Definition: PixelFormat.hh:44
< Bayer GRGB, 1-byte per channel
Definition: PixelFormat.hh:46
Provides supporting functions for PixelFormat enum.
Definition: PixelFormat.hh:53
< RGB, 1-byte per channel
Definition: PixelFormat.hh:36
< Bayer RGGB, 1-byte per channel
Definition: PixelFormat.hh:40
< BGR, 1-byte per channel
Definition: PixelFormat.hh:38
< Grayscale, 1-byte per channel
Definition: PixelFormat.hh:34
PixelFormat
Definition: PixelFormat.hh:29
< Number of pixel format types
Definition: PixelFormat.hh:48
< Bayer BGGR, 1-byte per channel
Definition: PixelFormat.hh:42
< Unknown or errant type
Definition: PixelFormat.hh:32
Definition: ArrowVisual.hh:22