home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / os2 / mpegenc / src / noparall.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-01  |  5.9 KB  |  258 lines

  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) 1993 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/users/keving/encode/src/RCS/noparallel.c,v 1.1 1993/07/22 22:23:43 keving Exp keving $
  41.  *  $Log: noparallel.c,v $
  42.  * Revision 1.1  1993/07/22  22:23:43  keving
  43.  * nothing
  44.  *
  45.  * Revision 1.1  1993/06/30  20:06:09  keving
  46.  * nothing
  47.  *
  48.  */
  49.  
  50.  
  51. /*==============*
  52.  * HEADER FILES *
  53.  *==============*/
  54.  
  55. #include "all.h"
  56. #include "mtypes.h"
  57. #include "parallel.h"
  58. #include "frame.h"
  59.  
  60.  
  61. /*==================*
  62.  * GLOBAL VARIABLES *
  63.  *==================*/
  64.  
  65. int parallelTestFrames = 10;
  66. int parallelTimeChunks = 60;
  67. char *IOhostName;
  68. int ioPortNumber;
  69. int combinePortNumber;
  70. int decodePortNumber;
  71. boolean    niceProcesses = FALSE;
  72. boolean    forceIalign = FALSE;
  73. int        machineNumber = -1;
  74. boolean    remoteIO = FALSE;
  75. boolean    separateConversion;
  76. time_t    IOtime = 0;
  77.  
  78.  
  79. /*=====================*
  80.  * EXPORTED PROCEDURES *
  81.  *=====================*/
  82.  
  83.             /*=================*
  84.              * IO SERVER STUFF *
  85.              *=================*/
  86.  
  87.  
  88. void
  89. SetIOConvert(separate)
  90.     boolean separate;
  91. {
  92.     /* do nothing -- this may be called during non-parallel execution */
  93. }
  94.  
  95.  
  96. void
  97. SetParallelPerfect()
  98. {
  99.     /* do nothing -- this may be called during non-parallel execution */
  100. }
  101.  
  102.  
  103. void
  104. SetRemoteShell(shell)
  105.     char *shell;
  106. {
  107.     /* do nothing -- this may be called during non-parallel execution */
  108. }
  109.  
  110.  
  111. /* StartIOServer
  112.  */ 
  113. void
  114. StartIOServer(numInputFiles, parallelHostName, portNum)
  115.     int numInputFiles;
  116.     char *parallelHostName;
  117.     int portNum;
  118. {
  119.     fprintf(stdout, "ERROR:  (StartIOServer) This machine can NOT run parallel version\n");
  120.     exit(1);
  121. }
  122.  
  123.  
  124. void
  125. StartCombineServer(numInputFiles, outputFileName, parallelHostName, portNum)
  126.     int numInputFiles;
  127.     char *outputFileName;
  128.     char *parallelHostName;
  129.     int portNum;
  130. {
  131.     fprintf(stdout, "ERROR:  (StartCombineServer) This machine can NOT run parallel version\n");
  132.     exit(1);
  133. }
  134.  
  135.  
  136. void
  137. NoteFrameDone(frameStart, frameEnd)
  138.     int frameStart;
  139.     int frameEnd;
  140. {
  141.     fprintf(stdout, "ERROR:  (NoteFrameDone) This machine can NOT run parallel version\n");
  142.     exit(1);
  143. }
  144.  
  145. /* SendRemoteFrame
  146.  */
  147. void
  148. SendRemoteFrame(frameNumber, bb)
  149.     int frameNumber;
  150.     BitBucket *bb;
  151. {
  152.     fprintf(stdout, "ERROR:  (SendRemoteFrame) This machine can NOT run parallel version\n");
  153.     exit(1);
  154. }
  155.  
  156.  
  157. /* GetRemoteFrame
  158.  */
  159. void
  160. GetRemoteFrame(frame, frameNumber)
  161.     MpegFrame *frame;
  162.     int frameNumber;
  163. {
  164.     fprintf(stdout, "ERROR:  (GetRemoteFrame) This machine can NOT run parallel version\n");
  165.     exit(1);
  166. }
  167.  
  168.  
  169. void
  170. WaitForOutputFile(number)
  171.     int number;
  172. {
  173.     fprintf(stdout, "ERROR:  (WaitForOutputFile) This machine can NOT run parallel version\n");
  174.     exit(1);
  175. }
  176.  
  177.  
  178.             /*=======================*
  179.              * PARALLEL SERVER STUFF *
  180.              *=======================*/
  181.  
  182.  
  183. /* StartMasterServer
  184.  */
  185. void
  186. StartMasterServer(numInputFiles, paramFile, outputFileName)
  187.     int numInputFiles;
  188.     char *paramFile;
  189.     char *outputFileName;
  190. {
  191.     fprintf(stdout, "ERROR:  (StartMasterServer) This machine can NOT run parallel version\n");
  192.     exit(1);
  193. }
  194.  
  195.  
  196. /* NotifyMasterDone
  197.  */
  198. boolean
  199. NotifyMasterDone(hostName, portNum, machineNumber, seconds, frameStart,
  200.          frameEnd)
  201.     char *hostName;
  202.     int portNum;
  203.     int machineNumber;
  204.     int seconds;
  205.     int *frameStart;
  206.     int *frameEnd;
  207. {
  208.     fprintf(stdout, "ERROR:  (NotifyMasterDone) This machine can NOT run parallel version\n");
  209.     exit(1);
  210. }
  211.  
  212.  
  213. void
  214. StartDecodeServer(numInputFiles, decodeFileName, parallelHostName, portNum)
  215.     int numInputFiles;
  216.     char *decodeFileName;
  217.     char *parallelHostName;
  218.     int portNum;
  219. {
  220.     fprintf(stdout, "ERROR:  (StartDecodeServer) This machine can NOT run parallel version\n");
  221.     exit(1);
  222. }
  223.  
  224.  
  225. void
  226. NotifyDecodeServerReady(id)
  227.     int id;
  228. {
  229.     fprintf(stdout, "ERROR:  (NotifyDecodeServerReady) This machine can NOT run parallel version\n");
  230.     exit(1);
  231. }
  232.  
  233.  
  234. void
  235. WaitForDecodedFrame(id)
  236.     int id;
  237. {
  238.     fprintf(stdout, "ERROR:  (WaitForDecodedFrame) This machine can NOT run parallel version\n");
  239.     exit(1);
  240. }
  241.  
  242. void
  243. SendDecodedFrame(frame)
  244.     MpegFrame *frame;
  245. {
  246.     fprintf(stdout, "ERROR:  (SendDecodedFrame) This machine can NOT run parallel version\n");
  247.     exit(1);
  248. }
  249.  
  250. void
  251. GetRemoteDecodedRefFrame(frame, frameNumber)
  252.     MpegFrame *frame;
  253.     int frameNumber;
  254. {
  255.     fprintf(stdout, "ERROR:  (GetRemoteDecodedRefFrame) This machine can NOT run parallel version\n");
  256.     exit(1);
  257. }
  258.