1 | /****************************************************************************** |
---|
2 | * SAGE - Scalable Adaptive Graphics Environment |
---|
3 | * |
---|
4 | * Copyright (C) 2004 Electronic Visualization Laboratory, |
---|
5 | * University of Illinois at Chicago |
---|
6 | * |
---|
7 | * All rights reserved. |
---|
8 | * |
---|
9 | * Redistribution and use in source and binary forms, with or without |
---|
10 | * modification, are permitted provided that the following conditions are met: |
---|
11 | * |
---|
12 | * * Redistributions of source code must retain the above copyright |
---|
13 | * notice, this list of conditions and the following disclaimer. |
---|
14 | * * Redistributions in binary form must reproduce the above |
---|
15 | * copyright notice, this list of conditions and the following disclaimer |
---|
16 | * in the documentation and/or other materials provided with the distribution. |
---|
17 | * * Neither the name of the University of Illinois at Chicago nor |
---|
18 | * the names of its contributors may be used to endorse or promote |
---|
19 | * products derived from this software without specific prior written permission. |
---|
20 | * |
---|
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
---|
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
---|
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
---|
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
---|
25 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
---|
26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
---|
27 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
---|
28 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
---|
29 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
---|
30 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
---|
31 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
32 | * |
---|
33 | * Direct questions, comments etc about SAGE to http://www.evl.uic.edu/cavern/forum/ |
---|
34 | * |
---|
35 | *****************************************************************************/ |
---|
36 | |
---|
37 | #ifndef SVC_CONTROL_H |
---|
38 | #define SVC_CONTROL_H |
---|
39 | |
---|
40 | #include <stdio.h> |
---|
41 | #include <unistd.h> |
---|
42 | #include <string.h> |
---|
43 | #include <signal.h> |
---|
44 | #include "SVC_input_1394.h" |
---|
45 | #include "SVC_buffer_manager.h" |
---|
46 | #include "SVC_input_module.h" |
---|
47 | #include "SVC_output_module.h" |
---|
48 | #include "SVC_codecs.h" |
---|
49 | #include "SVC_common.h" |
---|
50 | #include "SVC_output_sail.h" |
---|
51 | #include "SVC_input_net.h" |
---|
52 | #include "SVC_input_null.h" |
---|
53 | #include "SVC_output_null.h" |
---|
54 | #include "SVC_output_net.h" |
---|
55 | |
---|
56 | //later will be included |
---|
57 | //#include "SVC_output_sidel.h" |
---|
58 | //#include "SVC_io_module.h" //description of input, output module |
---|
59 | |
---|
60 | class SVC_control |
---|
61 | { |
---|
62 | public: |
---|
63 | SVC_control(); |
---|
64 | int create_interface_module(int argc,char** argv); |
---|
65 | int init(int argc, char** argv); |
---|
66 | int create_session(); |
---|
67 | void run(); |
---|
68 | void print_usage(char ** argv); |
---|
69 | static void sighandler (int sig); |
---|
70 | |
---|
71 | private: |
---|
72 | SVC_input_module* m_input_module; |
---|
73 | SVC_output_module* m_output_module; |
---|
74 | SVC_buffer_manager* m_buffer_manager; |
---|
75 | int m_codec; |
---|
76 | int m_flag_rtp; |
---|
77 | char* m_input_addr; |
---|
78 | char* m_output_addr; |
---|
79 | int m_input_port; |
---|
80 | int m_output_port; |
---|
81 | int flag_1394; |
---|
82 | int flag_null; |
---|
83 | int flag_net; |
---|
84 | int m_color_mode; |
---|
85 | }; |
---|
86 | |
---|
87 | #endif // SVC_CONTROL_H |
---|