apps/astreamer/session.h

Go to the documentation of this file.
00001 #ifndef _SESSION__H_
00002 #define _SESSION__H_
00003 
00004 #include <string>
00005 
00006 using namespace std;
00007 
00008 #define VIDEO_MJPEG "MJPG"
00009 
00010 struct transport_t {
00011         string ip;
00012 //      string port;
00013         int port_video;
00014         int port_audio;
00015         bool process_audio;
00016         bool multicast;
00017         string ttl;
00018 };
00019 
00020 struct video_t {
00021         int type;       // == "", if not present
00022         double fps;             // == 0, if unspecified
00023         int width;              // --||--
00024         int height;             // --||--
00025 };
00026 
00027 struct audio_t {
00028         int type;
00029         int sample_rate;
00030         int channels;
00031 };
00032 
00033 class Session {
00034 public:
00035         string id;
00036         struct transport_t rtp_in;
00037         struct transport_t rtp_out;
00038         struct video_t video;
00039         struct audio_t audio;
00040         bool process_audio;
00041 };
00042 
00043 #endif // _SESSION__H_

Generated on Fri Nov 28 00:06:21 2008 for elphel by  doxygen 1.5.1