the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: mpegencode
Version: 1.5b
Revision: 2
Source: ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/mpeg/encode/mpeg_encode-%v-src.tar.gz
Source-MD5: ff125fb82118efc7c852f0d26d5552c6
SourceDirectory: mpeg_encode
PatchFile: %n.patch
PatchFile-MD5: 2e84b835aafa1561082cd5612e30448a
Depends: libjpeg-shlibs
BuildDepends: fink (>= 0.24.12-1), libjpeg
DocFiles: BUGS CHANGES COPYRIGHT NOTES TODO VERSION docs/*
CompileScript: <<
make CC=cc JPEG_LIB=%p/lib/libjpeg.a JPEG_LIB_DIR=-L%p/lib JPEG_DIR=-I%p/include
<<
InstallScript: <<
mkdir -p %i/bin
mkdir -p %i/share/man/man1
mkdir -p %i/share/doc/%n
cp mpeg_encode %i/bin/mpeg_encode
cp docs/mpeg_encode.1 %i/share/man/man1
cp -r examples %i/share/doc/%n
<<
Description: Berkeley MPEG-1 Encoder
DescDetail: <<
Parallelizing MPEG encoder. Can create MPEG videos from YUV/PPM files
in a distributed fashion.
<<
DescUsage: <<
Edit *.param files from "examples" appropriately specifying input
filenames and types. Works fine with PPM files. JPG files seem to
crash it.
<<
DescPort: <<
Small patches. JPG files crash the encoder in jcopy_sample_rows, which is apparently an internal libjpeg fcn the app uses.
<<
License: BSD
Maintainer: Ben Hines
Homepage: http://bmrc.berkeley.edu/research/mpeg/
diff -ruN mpeg_encode-1_5b-src_1/bitio.c mpeg_encode-1_5b-src_0/mpeg_encode/bitio.c
--- mpeg_encode-1_5b-src_1/bitio.c Wed Jun 21 11:36:12 1995
+++ mpeg_encode-1_5b-src_0/bitio.c Mon Apr 1 16:42:37 2002
@@ -78,7 +78,8 @@
/*==============*
* HEADER FILES *
*==============*/
-
+#include
+#include
#include
#include "all.h"
#include "byteorder.h"
diff -ruN mpeg_encode-1_5b-src_1/headers/libpnmrw.h mpeg_encode-1_5b-src_0/headers/libpnmrw.h
--- mpeg_encode-1_5b-src_1/headers/libpnmrw.h Wed Aug 9 08:17:41 1995
+++ mpeg_encode-1_5b-src_0/headers/libpnmrw.h Mon Apr 1 16:38:28 2002
@@ -19,10 +19,10 @@
** malloc.h at all. A sad situation. If you have compilation problems
** that point here, feel free to tweak or remove these declarations.
*/
-#include
-#if !defined(sco) && !defined(sgi) && !defined(IRIX)
-extern char* malloc();
-#endif
+//#include
+//#if !defined(sco) && !defined(sgi) && !defined(IRIX)
+//extern char* malloc();
+//#endif
/* End of configurable definitions. */
diff -ruN mpeg_encode-1_5b-src_1/headers/opts.h mpeg_encode-1_5b-src_0/headers/opts.h
--- mpeg_encode-1_5b-src_1/headers/opts.h Tue Aug 15 16:43:43 1995
+++ mpeg_encode-1_5b-src_0/headers/opts.h Mon Apr 1 16:51:54 2002
@@ -118,6 +118,7 @@
int CalcRLEHuffLength _ANSI_ARGS_((FlatBlock in));
void ParseTuneParam _ANSI_ARGS_((char *charPtr));
int mse _ANSI_ARGS_((Block blk1, Block blk2));
+void Mpost_UnQuantZigBlockLaplace _ANSI_ARGS_((FlatBlock in, Block out, int qscale, boolean iblock));
diff -ruN mpeg_encode-1_5b-src_1/jpeg.c mpeg_encode-1_5b-src_0/jpeg.c
--- mpeg_encode-1_5b-src_1/jpeg.c Fri Aug 4 16:35:07 1995
+++ mpeg_encode-1_5b-src_0/jpeg.c Mon Apr 1 18:08:35 2002
@@ -65,6 +65,7 @@
*==============*/
#include
+#include
#include "all.h"
#include "mtypes.h"
#include "frames.h"
@@ -77,8 +78,7 @@
/* make it happier.... */
#undef DCTSIZE2
-#include "jpeg/jpeglib.h"
-
+#include "jpeglib.h"
#define HEADER_SIZE 607 /*JFIF header size used on output images*/
diff -ruN mpeg_encode-1_5b-src_1/libpnmrw.c mpeg_encode-1_5b-src_0/libpnmrw.c
--- mpeg_encode-1_5b-src_1/libpnmrw.c Wed Aug 16 15:24:26 1995
+++ mpeg_encode-1_5b-src_0/libpnmrw.c Mon Apr 1 16:47:35 2002
@@ -28,6 +28,7 @@
#endif
#include
+#include
#include "libpnmrw.h"
/* if don't have string.h, try strings.h */
@@ -126,7 +127,7 @@
pm_perror( reason )
char* reason;
{
- extern char* sys_errlist[];
+ // extern char* sys_errlist[];
extern int errno;
char* e;
diff -ruN mpeg_encode-1_5b-src_1/opts.c mpeg_encode-1_5b-src_0/opts.c
--- mpeg_encode-1_5b-src_1/opts.c Tue Aug 15 11:34:09 1995
+++ mpeg_encode-1_5b-src_0/opts.c Mon Apr 1 16:51:49 2002
@@ -38,7 +38,7 @@
#include
#include
#include "opts.h"
-#include
+//#include
#include
/*==============*
@@ -91,7 +92,6 @@
void SetupWriteDistortions _ANSI_ARGS_((char *charPtr));
void SetupLaplace _ANSI_ARGS_((void));
void CalcLambdas _ANSI_ARGS_((void));
-void Mpost_UnQuantZigBlockLaplace _ANSI_ARGS_((FlatBlock in, Block out, int qscale, boolean iblock));
/* define this as it too much of a pain to find toupper on different arch'es */
#define ASCII_TOUPPER(c) ((c>='a') && (c<='z')) ? c-'a'+'A' : c