VrMagicHandler_base.h
Go to the documentation of this file.
00001 
00019 #ifndef IMAGEBASE_H_
00020 #define IMAGEBASE_H_
00021 
00022 #include <stdint.h>
00023 
00024 
00025 #define OHM_DATA_TYPE       uint8_t
00026 #define OHM_HEADER_TYPE     uint32_t
00027 #define OHM_TRIGGER_TYPE    uint32_t
00028 #define OHM_CONFIG_TYPE     uint32_t
00029 //todo more stuff for header config if needed
00030 
00031 
00032 namespace ohm
00033 {
00034 
00035 enum HeaderIndex{ ID = 0,
00036                   DATA_SIZE,        
00037                   DATA_TYPE,
00038                   COMPRESSION_TYPE,
00039                   WIDTH,
00040                   HEIGHT,
00041                   CHANNELS,         //e.g. rgb(3) rgba(4)
00042                   BYTE_PER_PIXEL,
00043                   HEADER_SIZE
00044                    };
00045 
00046 enum Data{ IMAGE = 0,
00047            STRING       
00048             };
00049 
00050 enum Compression{ NONE = 0,
00051                   TODO
00052                    };
00053 
00054 enum Trigger{ IMAGE_REQUEST = 0
00055                };
00056 
00057 
00058 
00059 typedef struct{
00060     unsigned int id;                        
00061     unsigned int dataSize;                  
00062     ohm::Data dataType;                     
00063     ohm::Compression compressionType;       
00064     unsigned int width;                     
00065     unsigned int height;                    
00066     unsigned int channels;                  
00067     unsigned int bytePerPixel;              
00068     OHM_DATA_TYPE* data;
00069 }ImageType;
00070 
00071 
00072 } /* namespace ohm */
00073 
00074 #endif /* IMAGEBASE_H_ */


vrmagic_ros_bridge_server
Author(s): Michael Schmidpeter
autogenerated on Thu Aug 27 2015 15:40:39