1 #ifndef CVD_COLOURSPACES_H 2 #define CVD_COLOURSPACES_H 4 #include <cvd/internal/builtin_components.h> 5 #include <cvd/internal/name_builtin_types.h> 6 #include <cvd/internal/pixel_traits.h> 17 operator unsigned char()
const {
return val; }
30 operator unsigned char()
const {
return val; }
43 operator unsigned char()
const {
return val; }
56 operator unsigned char()
const {
return val; }
69 operator unsigned short()
const {
return val; }
82 operator unsigned short()
const {
return val; }
95 operator unsigned short()
const {
return val; }
108 operator unsigned short()
const {
return val; }
121 operator unsigned short()
const {
return val; }
134 operator unsigned short()
const {
return val; }
147 operator unsigned short()
const {
return val; }
160 operator unsigned short()
const {
return val; }
180 typedef std::ratio<6, 4> bytes_per_pixel;
196 typedef std::ratio<4, 2> bytes_per_pixel;
205 typedef std::ratio<6, 4> bytes_per_pixel;
216 typedef std::ratio<4, 2> bytes_per_pixel;
225 static std::string name() {
return "bayer_bggr"; }
230 static std::string name() {
return "bayer_gbrg"; }
235 static std::string name() {
return "bayer_grbg"; }
240 static std::string name() {
return "bayer_rggb"; }
246 static std::string name() {
return "bayer_bggr16"; }
251 static std::string name() {
return "bayer_gbrg16"; }
256 static std::string name() {
return "bayer_grbg16"; }
261 static std::string name() {
return "bayer_rggb16"; }
267 static std::string name() {
return "bayer_bggr16be"; }
272 static std::string name() {
return "bayer_gbrg16be"; }
277 static std::string name() {
return "bayer_grbg16be"; }
282 static std::string name() {
return "bayer_rggb16be"; }
288 static std::string name() {
return "yuv411"; }
293 static std::string name() {
return "yuv422"; }
298 static std::string name() {
return "yuv420p"; }
303 static std::string name() {
return "vuy422"; }
309 static std::string name() {
return "MJPEG"; }
A datatype to represent yuv420p (yy...u...v) data.
Definition: colourspaces.h:202
All classes and functions are within the CVD namespace.
Definition: argb.h:6
16bit Bayer datatype representing the colour filter pattern GRBG
Definition: colourspaces.h:92
16bit big endian Bayer datatype representing the colour filter pattern RGGB
Definition: colourspaces.h:157
A datatype to represent MJPEG data.
Definition: colourspaces.h:185
16bit Bayer datatype representing the colour filter pattern GBRG
Definition: colourspaces.h:79
A datatype to represent yuv411 (uyyvyy) data, typically from firewire cameras.
Definition: colourspaces.h:176
16bit Bayer datatype representing the colour filter pattern RGGB
Definition: colourspaces.h:105
bayer_bggr bayer
typedef to support old bayer datatype
Definition: colourspaces.h:171
A datatype to represent the other yuv422 (uyvy) data.
Definition: colourspaces.h:213
16 bit Bayer datatype representing the colour filter pattern BGGR
Definition: colourspaces.h:66
Bayer datatype representing the colour filter pattern GRBG.
Definition: colourspaces.h:40
Bayer datatype representing the colour filter pattern GBRG.
Definition: colourspaces.h:27
16 bit big endian Bayer datatype representing the colour filter pattern BGGR
Definition: colourspaces.h:118
16bit big endian Bayer datatype representing the colour filter pattern GRBG
Definition: colourspaces.h:144
Definition: name_builtin_types.h:11
Bayer datatype representing the colour filter pattern BGGR.
Definition: colourspaces.h:14
A datatype to represent yuv422 (yuyv) data.
Definition: colourspaces.h:192
Bayer datatype representing the colour filter pattern RGGB.
Definition: colourspaces.h:53
16bit big endian Bayer datatype representing the colour filter pattern GBRG
Definition: colourspaces.h:131
Definition: pixel_traits.h:16