w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

noparallel.c
Go to the documentation of this file.
1 /*===========================================================================*
2  * noparallel.c *
3  * *
4  * would be procedures to make encoder to run in parallel -- except *
5  * this machine doesn't have sockets, so we can only run sequentially *
6  * so this file has dummy procedures which lets it compile *
7  * *
8  * EXPORTED PROCEDURES: *
9  * StartIOServer *
10  * StartCombineServer *
11  * SendRemoteFrame *
12  * GetRemoteFrame *
13  * StartMasterServer *
14  * NotifyMasterDone *
15  * *
16  *===========================================================================*/
17 
18 /*
19  * Copyright (c) 1995 The Regents of the University of California.
20  * All rights reserved.
21  *
22  * Permission to use, copy, modify, and distribute this software and its
23  * documentation for any purpose, without fee, and without written agreement is
24  * hereby granted, provided that the above copyright notice and the following
25  * two paragraphs appear in all copies of this software.
26  *
27  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
28  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
29  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
30  * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
33  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
34  * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
35  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
36  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
37  */
38 
39 /*
40  * $Header: /n/picasso/project/mm/mpeg/mpeg_dist/mpeg_encode/RCS/noparallel.c,v 1.6 1995/05/12 00:00:06 smoot Exp $
41  * $Log: noparallel.c,v $
42  * Revision 1.6 1995/05/12 00:00:06 smoot
43  * sco defined check
44  *
45  * Revision 1.5 1995/01/19 23:08:58 eyhung
46  * Changed copyrights
47  *
48  * Revision 1.4 1994/11/14 22:33:31 smoot
49  * added ifdef for Linux
50  *
51  * Revision 1.3 1994/11/12 02:11:55 keving
52  * nothing
53  *
54  * Revision 1.2 1993/12/22 19:19:01 keving
55  * nothing
56  *
57  * Revision 1.2 1993/12/22 19:19:01 keving
58  * nothing
59  *
60  * Revision 1.1 1993/07/22 22:23:43 keving
61  * nothing
62  *
63  * Revision 1.1 1993/06/30 20:06:09 keving
64  * nothing
65  *
66  */
67 
68 
69 /*==============*
70  * HEADER FILES *
71  *==============*/
72 
73 #include "all.h"
74 #include "mtypes.h"
75 #include "parallel.h"
76 #include "frame.h"
77 #ifdef LINUX
78 #include <time.h>
79 #endif
80 #if defined(sco)
81 #include <time.h>
82 #endif
83 
84 
85 /*==================*
86  * GLOBAL VARIABLES *
87  *==================*/
88 
91 const char *IOhostName;
95 boolean niceProcesses = FALSE;
96 boolean forceIalign = FALSE;
97 int machineNumber = -1;
98 boolean remoteIO = FALSE;
101 
102 
103 /*=====================*
104  * EXPORTED PROCEDURES *
105  *=====================*/
106 
107  /*=================*
108  * IO SERVER STUFF *
109  *=================*/
110 
111 
112 void
113 SetIOConvert(separate)
114  boolean separate;
115 {
116  /* do nothing -- this may be called during non-parallel execution */
117 }
118 
119 
120 void
122 {
123  /* do nothing -- this may be called during non-parallel execution */
124 }
125 
126 
127 void
129  char *shell;
130 {
131  /* do nothing -- this may be called during non-parallel execution */
132 }
133 
134 
135 /* StartIOServer
136  */
137 void
138 StartIOServer(numInputFiles, parallelHostName, portNum)
139  int numInputFiles;
140  char *parallelHostName;
141  int portNum;
142 {
143  fprintf(stdout, "ERROR: (StartIOServer) This machine can NOT run parallel version\n");
144  exit(1);
145 }
146 
147 
148 void
149 StartCombineServer(numInputFiles, outputFileName, parallelHostName, portNum)
150  int numInputFiles;
151  char *outputFileName;
152  char *parallelHostName;
153  int portNum;
154 {
155  fprintf(stdout, "ERROR: (StartCombineServer) This machine can NOT run parallel version\n");
156  exit(1);
157 }
158 
159 
160 void
162  int frameStart;
163  int frameEnd;
164 {
165  fprintf(stdout, "ERROR: (NoteFrameDone) This machine can NOT run parallel version\n");
166  exit(1);
167 }
168 
169 /* SendRemoteFrame
170  */
171 void
172 SendRemoteFrame(frameNumber, bb)
173  int frameNumber;
174  BitBucket *bb;
175 {
176  fprintf(stdout, "ERROR: (SendRemoteFrame) This machine can NOT run parallel version\n");
177  exit(1);
178 }
179 
180 
181 /* GetRemoteFrame
182  */
183 void
184 GetRemoteFrame(frame, frameNumber)
185  MpegFrame *frame;
186  int frameNumber;
187 {
188  fprintf(stdout, "ERROR: (GetRemoteFrame) This machine can NOT run parallel version\n");
189  exit(1);
190 }
191 
192 
193 void
195  int number;
196 {
197  fprintf(stdout, "ERROR: (WaitForOutputFile) This machine can NOT run parallel version\n");
198  exit(1);
199 }
200 
201 
202  /*=======================*
203  * PARALLEL SERVER STUFF *
204  *=======================*/
205 
206 
207 /* StartMasterServer
208  */
209 void
211  int numInputFiles;
212  char *paramFile;
213  char *outputFileName;
214 {
215  fprintf(stdout, "ERROR: (StartMasterServer) This machine can NOT run parallel version\n");
216  exit(1);
217 }
218 
219 
220 /* NotifyMasterDone
221  */
222 boolean
224  frameEnd)
225  char *hostName;
226  int portNum;
227  int machineNumber;
228  int seconds;
229  int *frameStart;
230  int *frameEnd;
231 {
232  fprintf(stdout, "ERROR: (NotifyMasterDone) This machine can NOT run parallel version\n");
233  exit(1);
234 }
235 
236 
237 void
238 StartDecodeServer(numInputFiles, decodeFileName, parallelHostName, portNum)
239  int numInputFiles;
240  char *decodeFileName;
241  char *parallelHostName;
242  int portNum;
243 {
244  fprintf(stdout, "ERROR: (StartDecodeServer) This machine can NOT run parallel version\n");
245  exit(1);
246 }
247 
248 
249 void
251  int id;
252 {
253  fprintf(stdout, "ERROR: (NotifyDecodeServerReady) This machine can NOT run parallel version\n");
254  exit(1);
255 }
256 
257 
258 void
260  int id;
261 {
262  fprintf(stdout, "ERROR: (WaitForDecodedFrame) This machine can NOT run parallel version\n");
263  exit(1);
264 }
265 
266 void
268  MpegFrame *frame;
269 {
270  fprintf(stdout, "ERROR: (SendDecodedFrame) This machine can NOT run parallel version\n");
271  exit(1);
272 }
273 
274 void
275 GetRemoteDecodedRefFrame(frame, frameNumber)
276  MpegFrame *frame;
277  int frameNumber;
278 {
279  fprintf(stdout, "ERROR: (GetRemoteDecodedRefFrame) This machine can NOT run parallel version\n");
280  exit(1);
281 }
@ FALSE
Definition: dd.h:101
static int id
Definition: bifont.c:66
void exit()
static int frameStart
Definition: main.c:140
static int frameEnd
Definition: main.c:141
#define fprintf
Definition: mendex.h:64
long time_t
Definition: types.h:18
time_t IOtime
Definition: noparallel.c:100
void GetRemoteDecodedRefFrame(MpegFrame *frame, int frameNumber)
Definition: noparallel.c:275
void NoteFrameDone(int frameStart, int frameEnd)
Definition: noparallel.c:161
int parallelTestFrames
Definition: noparallel.c:89
void StartCombineServer(int numInputFiles, char *outputFileName, char *parallelHostName, int portNum)
Definition: noparallel.c:149
boolean niceProcesses
Definition: noparallel.c:95
void SendRemoteFrame(int frameNumber, BitBucket *bb)
Definition: noparallel.c:172
int decodePortNumber
Definition: noparallel.c:94
void StartMasterServer(int numInputFiles, char *paramFile, char *outputFileName)
Definition: noparallel.c:210
boolean forceIalign
Definition: noparallel.c:96
int ioPortNumber
Definition: noparallel.c:92
void SetIOConvert(boolean separate)
Definition: noparallel.c:113
void SetParallelPerfect(boolean val)
Definition: noparallel.c:121
void WaitForDecodedFrame(int id)
Definition: noparallel.c:259
boolean remoteIO
Definition: noparallel.c:98
void GetRemoteFrame(MpegFrame *frame, int frameNumber)
Definition: noparallel.c:184
void WaitForOutputFile(int number)
Definition: noparallel.c:194
void NotifyDecodeServerReady(int id)
Definition: noparallel.c:250
const char * IOhostName
Definition: noparallel.c:91
boolean NotifyMasterDone(char *hostName, int portNum, int machineNumber, int seconds, int *frameStart, int *frameEnd)
Definition: noparallel.c:223
int machineNumber
Definition: noparallel.c:97
boolean separateConversion
Definition: noparallel.c:99
void StartDecodeServer(int numInputFiles, char *decodeFileName, char *parallelHostName, int portNum)
Definition: noparallel.c:238
void StartIOServer(int numInputFiles, char *parallelHostName, int portNum)
Definition: noparallel.c:138
void SetRemoteShell(char *shell)
Definition: noparallel.c:128
int combinePortNumber
Definition: noparallel.c:93
int parallelTimeChunks
Definition: noparallel.c:90
void SendDecodedFrame(MpegFrame *frame)
Definition: noparallel.c:267
int numInputFiles
Definition: param.c:264
char outputFileName[256]
Definition: param.c:262
Definition: strexpr.c:21
int number
Definition: t1part.c:207
#define seconds
Definition: utmscale.cpp:19