Videogram.h
Go to the documentation of this file.
00001 #ifndef VIDEO_GRAM_H
00002 #define VIDEO_GRAM_H
00003 
00004 #include <stdio.h>
00005 #include "../libSock/Socket.h"
00006 
00007 class VideoGram
00008 {
00009         protected :
00010                 double timestamp;
00011                 unsigned int size;
00012                 unsigned char * data;
00013         public :
00014                 VideoGram(unsigned int id=0);
00015                 ~VideoGram();
00016 
00017                 void reset();
00018                 void setId(unsigned int id);
00019                 void setData(unsigned char * s, unsigned int l);
00020 
00021                 double getTimeStamp();
00022                 unsigned int getId();
00023                 unsigned int getSize();
00024                 unsigned int getLength();
00025                 unsigned char * getData();
00026                 const unsigned char * getData() const;
00027 
00028                 bool send(Socket * sock) const;
00029                 bool receive(Socket * sock, unsigned int timeout_milli);
00030                 void print(FILE * fp=stdout);
00031 };
00032 
00033 
00034 
00035 
00036 #endif // VIDEO_GRAM_H
00037 


canon_vbc50i
Author(s): Cedric Pradalier
autogenerated on Mon Jan 6 2014 11:18:27