| 1 | #ifndef PNM_NAME_CVD_RGB_TYPES_H |
| 2 | #define PNM_NAME_CVD_RGB_TYPES_H |
| 3 | |
| 4 | #include <cvd/internal/name_builtin_types.h> |
| 5 | #include <string> |
| 6 | |
| 7 | namespace CVD |
| 8 | { |
| 9 | namespace PNM |
| 10 | { |
| 11 | |
| 12 | template <> |
| 13 | struct type_name<CVD::Rgb8> |
| 14 | { |
| 15 | static const std::string name() { return "CVD::Rgb8"; } |
| 16 | }; |
| 17 | template <class O> |
| 18 | struct type_name<CVD::Rgb<O>> |
| 19 | { |
| 20 | static const std::string name() { return "CVD::Rgb<" + type_name<O>::name() + ">"; } |
| 21 | }; |
| 22 | template <class O> |
| 23 | struct type_name<CVD::Rgba<O>> |
| 24 | { |
| 25 | static const std::string name() { return "CVD::Rgba<" + type_name<O>::name() + ">"; } |
| 26 | }; |
| 27 | template <class O> |
| 28 | struct type_name<CVD::Bgrx<O>> |
| 29 | { |
| 30 | static const std::string name() { return "CVD::Bgrx<" + type_name<O>::name() + ">"; } |
| 31 | }; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | #endif |