00001
00002
00003 #ifndef _CAMERASTUFF_H_
00004 #define _CAMERASTUFF_H_
00005
00011 enum RobotinoResolution {QVGA,VGA,CustomResolution,ResolutionSize};
00012
00020 enum RobotinoCompression {HighCompression,LowCompression,NoCompression,CompressionSize};
00021 enum RobotinoImageType {JPG,JPG2000,RAW,BMP,PNG,TIFF,UnknownImageType,ImageTypeSize};
00022
00027 class RobotinoCameraParameters
00028 {
00029 public:
00033 RobotinoCameraParameters()
00034 : resolution( QVGA )
00035 , compression( LowCompression )
00036 , brightness( 50 )
00037 , contrast( 50 )
00038 , autoWithBalance( false )
00039 {
00040 }
00041
00043 RobotinoResolution resolution;
00045 RobotinoCompression compression;
00046
00048 unsigned char brightness;
00050 unsigned char contrast;
00055 bool autoWithBalance;
00056 };
00057
00062 class RobotinoImageParameters
00063 {
00064 public:
00065 RobotinoImageParameters()
00066 : type( UnknownImageType )
00067 , resolution( CustomResolution )
00068 , width( 0 )
00069 , height( 0 )
00070 , numColorChannels( 0 )
00071 , bitsPerChannel( 0 )
00072 {
00073 }
00074 RobotinoImageType type;
00076 RobotinoResolution resolution;
00077
00079 unsigned int width;
00081 unsigned int height;
00082
00087 unsigned char numColorChannels;
00092 unsigned char bitsPerChannel;
00093 };
00094
00099 class RobotinoImage
00100 {
00101 public:
00102 RobotinoImage()
00103 : data( NULL )
00104 , dataSize( 0 )
00105 , timestamp( 0 )
00106 {
00107 }
00108
00110 RobotinoImageParameters parameters;
00111
00113 unsigned char* data;
00115 unsigned int dataSize;
00116
00121 unsigned int timestamp;
00122 };
00123
00124 #endif