ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/mpeg_encode/src/param.h
Revision: 22
Committed: Mon Jul 7 22:16:37 2008 UTC (11 years, 4 months ago) by wdelano
File size: 3440 byte(s)
Log Message:
initial checkin of mpeg_encode source
Line File contents
1 /*===========================================================================*
2 * param.h *
3 * *
4 * reading the parameter file *
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/video/199/eyhung/encode/headers/RCS/param.h,v 1.8 1995/05/02 01:51:08 eyhung Exp $
31 * $Log: param.h,v $
32 * Revision 1.8 1995/05/02 01:51:08 eyhung
33 * added VidRateNum for determining frame rate
34 *
35 * Revision 1.7 1995/01/19 23:55:10 eyhung
36 * Changed copyrights
37 *
38 * Revision 1.6 1995/01/17 04:47:26 eyhung
39 * added coding-on-the-fly variable
40 *
41 * Revision 1.5 1995/01/16 06:06:58 eyhung
42 * added yuvConversion global variable
43 *
44 * Revision 1.4 1994/12/08 20:13:28 smoot
45 * Killed linux MAXPATHLEN warning
46 *
47 * Revision 1.3 1994/11/12 02:12:54 keving
48 * nothing
49 *
50 * Revision 1.2 1993/07/22 22:24:23 keving
51 * nothing
52 *
53 * Revision 1.1 1993/07/09 00:17:23 keving
54 * nothing
55 *
56 */
57
58
59 /*==============*
60 * HEADER FILES *
61 *==============*/
62
63 #include "ansi.h"
64
65
66 /*===========*
67 * CONSTANTS *
68 *===========*/
69
70 #define MAX_MACHINES 256
71 #ifndef MAXPATHLEN
72 #define MAXPATHLEN 1024
73 #endif
74
75 #define ENCODE_FRAMES 0
76 #define COMBINE_GOPS 1
77 #define COMBINE_FRAMES 2
78
79
80 /*===============================*
81 * EXTERNAL PROCEDURE prototypes *
82 *===============================*/
83
84 boolean ReadParamFile _ANSI_ARGS_((char *fileName, int function));
85 void GetNthInputFileName _ANSI_ARGS_((char *fileName, int n));
86 extern void JM2JPEG _ANSI_ARGS_((void));
87
88
89 /*==================*
90 * GLOBAL VARIABLES *
91 *==================*/
92
93 extern int numInputFiles;
94 extern char outputFileName[256];
95 extern int whichGOP;
96 extern int numMachines;
97 extern char machineName[MAX_MACHINES][256];
98 extern char userName[MAX_MACHINES][256];
99 extern char executable[MAX_MACHINES][1024];
100 extern char remoteParamFile[MAX_MACHINES][1024];
101 extern boolean remote[MAX_MACHINES];
102 extern boolean childProcess;
103 extern char currentPath[MAXPATHLEN];
104 extern char inputConversion[1024];
105 extern char yuvConversion[256];
106 extern int yuvWidth, yuvHeight;
107 extern int realWidth, realHeight;
108 extern char ioConversion[1024];
109 extern char slaveConversion[1024];
110 extern FILE *bitRateFile;
111 extern boolean showBitRatePerFrame;
112 extern boolean computeMVHist;
113 extern boolean stdinUsed;
114 extern const double VidRateNum[9];