1 |
/*===========================================================================* |
2 |
* parallel.h * |
3 |
* * |
4 |
* parallel encoding * |
5 |
* * |
6 |
*===========================================================================*/ |
7 |
|
8 |
/* |
9 |
* Copyright (c) 1995 The Regents of the University of California. |
10 |
* All rights reserved. |
11 |
* |
12 |
* Permission to use, copy, modify, and distribute this software and its |
13 |
* documentation for any purpose, without fee, and without written agreement is |
14 |
* hereby granted, provided that the above copyright notice and the following |
15 |
* two paragraphs appear in all copies of this software. |
16 |
* |
17 |
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR |
18 |
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT |
19 |
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF |
20 |
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
21 |
* |
22 |
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, |
23 |
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
24 |
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
25 |
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO |
26 |
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
27 |
*/ |
28 |
|
29 |
/* |
30 |
* $Header: /n/picasso/project/mpeg/mpeg_dist/mpeg_encode/headers/RCS/parallel.h,v 1.5 1995/08/15 23:43:26 smoot Exp $ |
31 |
* $Log: parallel.h,v $ |
32 |
* Revision 1.5 1995/08/15 23:43:26 smoot |
33 |
* *** empty log message *** |
34 |
* |
35 |
* Revision 1.4 1995/01/19 23:55:08 eyhung |
36 |
* Changed copyrights |
37 |
* |
38 |
* Revision 1.3 1994/11/12 02:12:53 keving |
39 |
* nothing |
40 |
* |
41 |
* Revision 1.2 1993/07/22 22:24:23 keving |
42 |
* nothing |
43 |
* |
44 |
* Revision 1.1 1993/07/09 00:17:23 keving |
45 |
* nothing |
46 |
* |
47 |
*/ |
48 |
|
49 |
|
50 |
/*==============* |
51 |
* HEADER FILES * |
52 |
*==============*/ |
53 |
|
54 |
#include "ansi.h" |
55 |
#include "bitio.h" |
56 |
#include "frame.h" |
57 |
|
58 |
|
59 |
/*===============================* |
60 |
* EXTERNAL PROCEDURE prototypes * |
61 |
*===============================*/ |
62 |
|
63 |
extern void StartMasterServer _ANSI_ARGS_((int numInputFiles, |
64 |
char *paramFile, |
65 |
char *outputFileName)); |
66 |
extern boolean NotifyMasterDone _ANSI_ARGS_((char *hostName, int portNum, |
67 |
int machineNumber, |
68 |
int seconds, |
69 |
int *frameStart, int *frameEnd)); |
70 |
extern void StartIOServer _ANSI_ARGS_((int numInputFiles, |
71 |
char *hostName, int portNum)); |
72 |
extern void StartCombineServer _ANSI_ARGS_((int numInputFiles, |
73 |
char *outputFileName, |
74 |
char *hostName, int portNum)); |
75 |
extern void StartDecodeServer _ANSI_ARGS_((int numInputFiles, |
76 |
char *outputFileName, |
77 |
char *hostName, int portNum)); |
78 |
extern void WaitForOutputFile _ANSI_ARGS_((int number)); |
79 |
extern void GetRemoteFrame _ANSI_ARGS_((MpegFrame *frame, int frameNumber)); |
80 |
extern void SendRemoteFrame _ANSI_ARGS_((int frameNumber, BitBucket *bb)); |
81 |
extern void NoteFrameDone _ANSI_ARGS_((int frameStart, int frameEnd)); |
82 |
extern void SetIOConvert _ANSI_ARGS_((boolean separate)); |
83 |
void SetRemoteShell _ANSI_ARGS_((char *shell)); |
84 |
extern void NotifyDecodeServerReady _ANSI_ARGS_((int id)); |
85 |
extern void WaitForDecodedFrame _ANSI_ARGS_((int id)); |
86 |
extern void SendDecodedFrame _ANSI_ARGS_((MpegFrame *frame)); |
87 |
extern void GetRemoteDecodedRefFrame _ANSI_ARGS_((MpegFrame *frame, |
88 |
int frameNumber)); |
89 |
extern void SetParallelPerfect _ANSI_ARGS_((boolean val)); |
90 |
|
91 |
|
92 |
/*==================* |
93 |
* GLOBAL VARIABLES * |
94 |
*==================*/ |
95 |
|
96 |
extern int parallelTestFrames; |
97 |
extern int parallelTimeChunks; |
98 |
|
99 |
extern char *IOhostName; |
100 |
extern int ioPortNumber; |
101 |
extern int combinePortNumber; |
102 |
extern int decodePortNumber; |
103 |
|
104 |
extern boolean ioServer; |
105 |
extern boolean niceProcesses; |
106 |
extern boolean forceIalign; |
107 |
extern int machineNumber; |
108 |
extern boolean remoteIO; |
109 |
extern boolean separateConversion; |