Browse Source

Word wrap README and change program output to fit 72 columns.

Georgi Chorbadzhiyski 9 years ago
parent
commit
79cd08ca88
2 changed files with 42 additions and 41 deletions
  1. 37
    36
      README
  2. 5
    5
      videohubctrl.c

+ 37
- 36
README View File

@@ -2,13 +2,13 @@ videohubctrl - Blackmagic Videohub control application
2 2
 ======================================================
3 3
 
4 4
 Blackmagic Design Videohub is SDI router device which can be controlled
5
-over the network using very simple text based protocol which 'videohubctrl'
6
-implements.
5
+over the network using very simple text based protocol which
6
+videohubctrl implements.
7 7
 
8
-'videohubctrl' is tested with Blackmagic Design Micro Videohub 16x16 router
9
-and probably will work with other Videohub models.
8
+videohubctrl is tested with Blackmagic Design Micro Videohub 16x16
9
+router and probably will work with other Videohub models.
10 10
 
11
-'videohubctrl' currently displays:
11
+videohubctrl currently displays:
12 12
 
13 13
   - Input port labels
14 14
   - Output port labels
@@ -22,8 +22,8 @@ supported (I don't have the hardware):
22 22
   - Configuration of Video monitoring outputs
23 23
   - Configuration of Serial ports
24 24
 
25
-Configuration of Videohub's network settings can be made using Blackmagic's
26
-Windows program when the device is connected via USB.
25
+Configuration of Videohub's network settings can be made using
26
+Blackmagic's Windows program when the device is connected via USB.
27 27
 
28 28
 
29 29
 License
@@ -48,8 +48,8 @@ To clone the repository issue the following commands:
48 48
    git submodule update
49 49
    make
50 50
 
51
-The code is developed and tested under modern Linux. It's also compiled from
52
-time to time under OS X but it's not tested there.
51
+The code is developed and tested under modern Linux. It's also compiled
52
+from time to time under OS X but it's not tested there.
53 53
 
54 54
 
55 55
 Updating the code
@@ -101,7 +101,7 @@ Example output
101 101
 
102 102
 Here is how videohubctrl output looks like:
103 103
 
104
-|-----------------------------------------------------------------------------|
104
+|----------------------------------------------------------------------|
105 105
 gf@gf:~/git/videohubctrl$ ./videohubctrl --host sdi-matrix
106 106
 videohubctrl Version: 0.1 Git: 0.1
107 107
 
@@ -114,40 +114,41 @@ Video outputs: 16
114 114
 Video monitoring outputs: 0
115 115
 Serial ports: 0
116 116
 
117
-----------------------------------------------------------------------------
118
-|  # | x | Input name                     | Output name                    |
119
-----------------------------------------------------------------------------
120
-|  1 | L | Windows 1                      | Enc1 3                         |
121
-|  2 | L | Windows 2                      | Enc1 2                         |
122
-|  3 | L | Windows 3                      | Enc1 1                         |
123
-|  4 | L | Windows 4 HD                   | Enc1 1                         |
124
-|  5 |   | Input 5                        | Output 5                       |
125
-|  6 |   | Input 6                        | Output 6                       |
126
-|  7 |   | Input 7                        | Output 7                       |
127
-|  8 |   | Input 8                        | Output 8                       |
128
-|  9 | L | Input 9                        | Enc1 4                         |
129
-| 10 |   | Input 10                       | Enc1 4                         |
130
-| 11 |   | Input 11                       | Output 11                      |
131
-| 12 | L | DPlay1                         | Output 13                      |
132
-| 13 | L | DPlay2                         | Denc                           |
133
-| 14 |   | Input 14                       | Output 14                      |
134
-| 15 |   | Input 15                       | Output 15                      |
135
-| 16 |   | Loopback                       | Loopback                       |
136
-----------------------------------------------------------------------------
117
+----------------------------------------------------------------------
118
+|  # | x | Input name                  | Output name                 |
119
+----------------------------------------------------------------------
120
+|  1 | L | Windows 1                   | Enc1 3                      |
121
+|  2 | L | Windows 2                   | Enc1 2                      |
122
+|  3 | L | Windows 3                   | Enc1 1                      |
123
+|  4 | L | Windows 4 HD                | Enc1 1                      |
124
+|  5 |   | Input 5                     | Output 5                    |
125
+|  6 |   | Input 6                     | Output 6                    |
126
+|  7 |   | Input 7                     | Output 7                    |
127
+|  8 |   | Input 8                     | Output 8                    |
128
+|  9 | L | Input 9                     | Enc1 4                      |
129
+| 10 |   | Input 10                    | Enc1 4                      |
130
+| 11 |   | Input 11                    | Output 11                   |
131
+| 12 | L | DPlay1                      | Output 13                   |
132
+| 13 | L | DPlay2                      | Denc                        |
133
+| 14 |   | Input 14                    | Output 14                   |
134
+| 15 |   | Input 15                    | Output 15                   |
135
+| 16 |   | Loopback                    | Loopback                    |
136
+----------------------------------------------------------------------
137 137
 
138 138
 gf@gf:~/git/videohubctrl$
139
-|-----------------------------------------------------------------------------|
139
+|----------------------------------------------------------------------|
140 140
 
141 141
 
142 142
 Reporting bugs
143 143
 ==============
144 144
 
145
-If you think you have found bug in videohubctrl, please report it to the
146
-e-mail listed in Contact section (see below) of this README file.
145
+If you think you have found bug in videohubctrl, please report it to
146
+the e-mail listed in Contact section (see below) of this README file.
147 147
 
148
-When reporting bugs, please send the whole output that videohubctrl generated
149
-(preferably by using --verbose option) and also the full command line which
150
-you used and describe what you think the videohubctrl does wrong.
148
+When reporting bugs, please send the whole output that videohubctrl
149
+generated (preferably by using --verbose option) and also the full
150
+command line which you used and describe what you think the videohubctrl
151
+does wrong.
151 152
 
152 153
 
153 154
 Releases

+ 5
- 5
videohubctrl.c View File

@@ -128,18 +128,18 @@ static void printf_line(int len) {
128 128
 static void print_device_settings(struct videohub_data *d) {
129 129
 	unsigned int i;
130 130
 	printf("\n");
131
-	printf_line(76);
132
-	printf("|  # | x | %-30s | %-30s |\n", "Input name", "Output name");
133
-	printf_line(76);
131
+	printf_line(70);
132
+	printf("|  # | x | %-27s | %-27s |\n", "Input name", "Output name");
133
+	printf_line(70);
134 134
 	for(i = 0; i < d->device.num_video_inputs; i++) {
135
-		printf("| %2d | %c | %-30s | %-30s |\n",
135
+		printf("| %2d | %c | %-27s | %-27s |\n",
136 136
 			i + 1,
137 137
 			d->inputs[i].locked ? 'L' : ' ',
138 138
 			d->inputs[i].name,
139 139
 			d->outputs[d->inputs[i].routed_to].name
140 140
 		);
141 141
 	}
142
-	printf_line(76);
142
+	printf_line(70);
143 143
 }
144 144
 
145 145
 int main(int argc, char **argv) {

Loading…
Cancel
Save