From 5d16663331afd0bc2edaeb2e49042dc219ce9c2f Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 28 Dec 2023 19:53:34 +0000 Subject: promote Development to Advanced git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4827 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/ppmtompeg/bframe.c | 6 ++++-- converter/ppm/ppmtompeg/bitio.c | 7 +++++++ converter/ppm/ppmtompeg/block.c | 9 +++++++++ converter/ppm/ppmtompeg/bsearch.c | 7 +++++++ converter/ppm/ppmtompeg/file.c | 3 +++ converter/ppm/ppmtompeg/frame.c | 3 +++ converter/ppm/ppmtompeg/frametype.c | 1 + converter/ppm/ppmtompeg/fsize.c | 4 ++++ converter/ppm/ppmtompeg/gethostname.c | 3 +++ converter/ppm/ppmtompeg/gethostname_win32.c | 6 ++++++ converter/ppm/ppmtompeg/headers/frames.h | 3 +++ converter/ppm/ppmtompeg/iframe.c | 3 +++ converter/ppm/ppmtompeg/input.c | 1 + converter/ppm/ppmtompeg/jpeg.c | 1 - converter/ppm/ppmtompeg/jrevdct.c | 6 ++++++ converter/ppm/ppmtompeg/memory.c | 7 +++++++ converter/ppm/ppmtompeg/mfwddct.c | 3 +++ converter/ppm/ppmtompeg/mheaders.c | 15 +++++++++++++++ converter/ppm/ppmtompeg/moutput.c | 5 +++++ converter/ppm/ppmtompeg/mpeg.c | 5 +++-- converter/ppm/ppmtompeg/mquant.c | 3 +++ converter/ppm/ppmtompeg/nojpeg.c | 4 ++++ converter/ppm/ppmtompeg/noparallel.c | 4 ++++ converter/ppm/ppmtompeg/opts.c | 14 ++++++++++++-- converter/ppm/ppmtompeg/parallel.c | 12 ++++++++++++ converter/ppm/ppmtompeg/param.c | 2 ++ converter/ppm/ppmtompeg/pframe.c | 9 +++++++++ converter/ppm/ppmtompeg/postdct.c | 6 ++++++ converter/ppm/ppmtompeg/ppmtompeg.c | 5 +++-- converter/ppm/ppmtompeg/psearch.c | 9 +++++++++ converter/ppm/ppmtompeg/qtest.c | 3 +++ converter/ppm/ppmtompeg/rate.c | 12 +++++++++--- converter/ppm/ppmtompeg/readframe.c | 10 +++++++++- converter/ppm/ppmtompeg/rgbtoycc.c | 4 ++++ converter/ppm/ppmtompeg/specifics.c | 14 ++++++-------- converter/ppm/ppmtompeg/subsample.c | 5 +++++ 36 files changed, 193 insertions(+), 21 deletions(-) (limited to 'converter/ppm/ppmtompeg') diff --git a/converter/ppm/ppmtompeg/bframe.c b/converter/ppm/ppmtompeg/bframe.c index fb546cc0..8bce3e14 100644 --- a/converter/ppm/ppmtompeg/bframe.c +++ b/converter/ppm/ppmtompeg/bframe.c @@ -114,7 +114,6 @@ halfMotion(motion const motion) { - /*===========================================================================* * * compute the block resulting from motion compensation @@ -439,7 +438,6 @@ MotionSufficient(MpegFrame * const curr, - struct stats { int IBlocks; int BBlocks; @@ -1156,6 +1154,7 @@ SetBQScale(qB) } + /*===========================================================================* * * GetBQScale @@ -1174,6 +1173,7 @@ GetBQScale() } + /*===========================================================================* * * ResetBFrameStats @@ -1326,6 +1326,7 @@ ComputeBMotionLumBlock(MpegFrame * const prev, } + /*===========================================================================* * * estimate the seconds to compute a B-frame @@ -1344,3 +1345,4 @@ EstimateSecondsPerBFrame() { } + diff --git a/converter/ppm/ppmtompeg/bitio.c b/converter/ppm/ppmtompeg/bitio.c index 79c9f36f..b95f1ce1 100644 --- a/converter/ppm/ppmtompeg/bitio.c +++ b/converter/ppm/ppmtompeg/bitio.c @@ -133,6 +133,7 @@ Dump(BitBucket * const bbPtr) { } + /*=====================* * EXPORTED PROCEDURES * *=====================*/ @@ -217,6 +218,7 @@ Bitio_Free(BitBucket * const bbPtr) { } + /*===========================================================================* * * Bitio_Write @@ -318,6 +320,7 @@ Bitio_Write(BitBucket * const bbPtr, } + /*===========================================================================* * * Bitio_Flush @@ -516,6 +519,7 @@ Bitio_WriteToSocket(BitBucket * const bbPtr, } + /*===========================================================================* * * Bitio_BytePad @@ -534,3 +538,6 @@ Bitio_BytePad(BitBucket * const bbPtr) { Bitio_Write(bbPtr, 0, lastPtrPtr->bitsleftcur % 8); } } + + + diff --git a/converter/ppm/ppmtompeg/block.c b/converter/ppm/ppmtompeg/block.c index 23396b4c..db8dc277 100644 --- a/converter/ppm/ppmtompeg/block.c +++ b/converter/ppm/ppmtompeg/block.c @@ -42,6 +42,8 @@ halfVector(vector const v) { return half; } + + /*===========================* * COMPUTE DCT OF DIFFERENCE * *===========================*/ @@ -361,6 +363,7 @@ ComputeMotionLumBlock(MpegFrame * const prevFrame, } + /*=======================* * BASIC ERROR FUNCTIONS * *=======================*/ @@ -691,6 +694,7 @@ AddMotionBlock(Block block, } + /*===========================================================================* * * adds the motion-compensated B-frame block to the given block @@ -734,6 +738,7 @@ AddBMotionBlock(Block block, } + /*===========================================================================* * * copies the given block into the appropriate data area @@ -764,6 +769,7 @@ BlockToData(uint8 ** const data, } + /*===========================================================================* * * copies data into appropriate blocks @@ -834,6 +840,7 @@ BlockifyFrame(MpegFrame * const frameP) { } + /*===========================================================================* * * * UNUSED PROCEDURES * @@ -925,6 +932,7 @@ ComputeSubSampledMotionLumBlock(MpegFrame * const prevFrame, } + /*===========================================================================* * * return the MAD of the currentBlock and the motion-compensated block, @@ -1021,6 +1029,7 @@ LumMotionErrorSubSampled(LumBlock const currentBlock, } + #endif /* UNUSED_PROCEDURES */ /* * Copyright (c) 1995 The Regents of the University of California. diff --git a/converter/ppm/ppmtompeg/bsearch.c b/converter/ppm/ppmtompeg/bsearch.c index b825ef72..6d13ab34 100644 --- a/converter/ppm/ppmtompeg/bsearch.c +++ b/converter/ppm/ppmtompeg/bsearch.c @@ -116,6 +116,7 @@ SetBSearchAlg(const char * const alg) { } + /*===========================================================================* * * BSearchName @@ -256,6 +257,7 @@ FindBestMatchExhaust(const LumBlock * const blockP, } + /*===========================================================================* * * FindBestMatchTwoLevel @@ -587,6 +589,7 @@ FindBestMatchSubSample(const LumBlock * const blockP, } + /*===========================================================================* * * FindBestMatch @@ -775,6 +778,7 @@ BMotionSearchSimple(const LumBlock * const currentBlockP, } + /*===========================================================================* * * BMotionSearchCross2 @@ -863,6 +867,7 @@ BMotionSearchCross2(const LumBlock * const currentBlockP, } + /*===========================================================================* * * BMotionSearchExhaust @@ -1027,6 +1032,7 @@ BMotionSearch(const LumBlock * const currentBlockP, } + /*===========================================================================* * * * UNUSED PROCEDURES * @@ -1085,4 +1091,5 @@ ValidBMotion(by, bx, mode, fmy, fmx, bmy, bmx) } + #endif /* UNUSED_PROCEDURES */ diff --git a/converter/ppm/ppmtompeg/file.c b/converter/ppm/ppmtompeg/file.c index b81e8077..bc097452 100644 --- a/converter/ppm/ppmtompeg/file.c +++ b/converter/ppm/ppmtompeg/file.c @@ -301,3 +301,6 @@ MatchesGlob(char *string, char *glob) { return TRUE; } + + + diff --git a/converter/ppm/ppmtompeg/frame.c b/converter/ppm/ppmtompeg/frame.c index 09e35410..81c1ff9f 100644 --- a/converter/ppm/ppmtompeg/frame.c +++ b/converter/ppm/ppmtompeg/frame.c @@ -395,6 +395,7 @@ Frame_Init(unsigned int const numOfFramesRequested) { } + /*===========================================================================* * * FreeFrame @@ -495,6 +496,7 @@ Frame_Exit(void) { } + /*===========================================================================* * * Frame_Free @@ -845,3 +847,4 @@ Frame_Resize(MpegFrame * const omf, } + diff --git a/converter/ppm/ppmtompeg/frametype.c b/converter/ppm/ppmtompeg/frametype.c index 78e324d0..ff45564b 100644 --- a/converter/ppm/ppmtompeg/frametype.c +++ b/converter/ppm/ppmtompeg/frametype.c @@ -187,6 +187,7 @@ FType_PastRef(currFrameNum) } + /*===========================================================================* * * SetFramePattern diff --git a/converter/ppm/ppmtompeg/fsize.c b/converter/ppm/ppmtompeg/fsize.c index 84772719..83b383e4 100644 --- a/converter/ppm/ppmtompeg/fsize.c +++ b/converter/ppm/ppmtompeg/fsize.c @@ -94,6 +94,7 @@ Fsize_Validate(int * const xP, } + /*===========================================================================* * * Fsize_Note @@ -132,3 +133,6 @@ Fsize_Note(int const id, } #endif } + + + diff --git a/converter/ppm/ppmtompeg/gethostname.c b/converter/ppm/ppmtompeg/gethostname.c index 649fff91..dedb3129 100644 --- a/converter/ppm/ppmtompeg/gethostname.c +++ b/converter/ppm/ppmtompeg/gethostname.c @@ -26,3 +26,6 @@ GetHostName(void) { return strdup(utsname.nodename); } + + + diff --git a/converter/ppm/ppmtompeg/gethostname_win32.c b/converter/ppm/ppmtompeg/gethostname_win32.c index b831e22d..2e03476d 100644 --- a/converter/ppm/ppmtompeg/gethostname_win32.c +++ b/converter/ppm/ppmtompeg/gethostname_win32.c @@ -30,6 +30,8 @@ pushString(push_string_t *p, const char *fmt, ...) va_end(args); } + + #if _WIN32_WINNT < 0x0600 /* * Reference available here: @@ -371,6 +373,8 @@ get_string_version(push_string_t *str) return TRUE; } + + const char * GetHostName(void) { @@ -389,6 +393,8 @@ GetHostName(void) return (const char *)_strdup(str.str); } + + #ifdef GETHOSTNAME_LOCAL_DEBUG int WINAPI WinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, LPSTR lpsCmdLine, int nCmdShow) diff --git a/converter/ppm/ppmtompeg/headers/frames.h b/converter/ppm/ppmtompeg/headers/frames.h index 9108ac21..88638690 100644 --- a/converter/ppm/ppmtompeg/headers/frames.h +++ b/converter/ppm/ppmtompeg/headers/frames.h @@ -125,6 +125,8 @@ MotionToFrameCoord(int const by, *xP = bx * DCTSIZE + mx; } + + #define COORD_IN_FRAME(fy,fx, type) \ ((type == LUM_BLOCK) ? \ ((fy >= 0) && (fx >= 0) && (fy < Fsize_y) && (fx < Fsize_x)) : \ @@ -175,6 +177,7 @@ encodeMotionVector(int const x, } + #define DoQuant(bit, src, dest) \ if (pattern & bit) { \ switch (Mpost_QuantZigBlock(src, dest, QScale, FALSE)) { \ diff --git a/converter/ppm/ppmtompeg/iframe.c b/converter/ppm/ppmtompeg/iframe.c index 81ff0ec0..2bc50196 100644 --- a/converter/ppm/ppmtompeg/iframe.c +++ b/converter/ppm/ppmtompeg/iframe.c @@ -983,3 +983,6 @@ int32 time_elapsed(void) { return timeBuffer.tms_utime + timeBuffer.tms_stime; #endif } + + + diff --git a/converter/ppm/ppmtompeg/input.c b/converter/ppm/ppmtompeg/input.c index e12b0d4c..83aa387c 100644 --- a/converter/ppm/ppmtompeg/input.c +++ b/converter/ppm/ppmtompeg/input.c @@ -415,6 +415,7 @@ processSimpleFileName(const char * const input, } + #define INPUT_ENTRY_BLOCK_SIZE 128 void diff --git a/converter/ppm/ppmtompeg/jpeg.c b/converter/ppm/ppmtompeg/jpeg.c index 4540f6f0..6680404b 100644 --- a/converter/ppm/ppmtompeg/jpeg.c +++ b/converter/ppm/ppmtompeg/jpeg.c @@ -339,7 +339,6 @@ JMovie2JPEG(const char * const infilename, - /*===========================================================================* * * ReadJPEG contributed by James Arthur Boucher of Boston University's diff --git a/converter/ppm/ppmtompeg/jrevdct.c b/converter/ppm/ppmtompeg/jrevdct.c index ebadb997..f46051bc 100644 --- a/converter/ppm/ppmtompeg/jrevdct.c +++ b/converter/ppm/ppmtompeg/jrevdct.c @@ -179,6 +179,8 @@ mpeg_jrevdct(data) else mpeg_jrevdct_quick(data); } + + /* * Perform the inverse DCT on one block of coefficients. */ @@ -1179,6 +1181,7 @@ mpeg_jrevdct_quick(data) } + /* here is the reference one, in case of problems with the normal one */ /* idctref.c, Inverse Discrete Fourier Transform, double precision */ @@ -1273,3 +1276,6 @@ int16 *block; block[8*i+j] = (v<-256) ? -256 : ((v>255) ? 255 : v); } } + + + diff --git a/converter/ppm/ppmtompeg/memory.c b/converter/ppm/ppmtompeg/memory.c index 0ebe4686..8c272707 100644 --- a/converter/ppm/ppmtompeg/memory.c +++ b/converter/ppm/ppmtompeg/memory.c @@ -59,13 +59,20 @@ char *MemAlloc(size_t size) return malloc(size); } + + void MemFree(char *ptr, long bytes) { totalMemory -= bytes; free(ptr); } + + void PrintMaxMemory(void) { fprintf(stdout, "MMMMM-----MAX MEMORY-----MMMMM = %ld\n", maxMemory); } + + + diff --git a/converter/ppm/ppmtompeg/mfwddct.c b/converter/ppm/ppmtompeg/mfwddct.c index 8b379cd8..1355ef91 100644 --- a/converter/ppm/ppmtompeg/mfwddct.c +++ b/converter/ppm/ppmtompeg/mfwddct.c @@ -326,6 +326,7 @@ mp_fwd_dct_fast(data2d, dest2d) } + extern boolean pureDCT; void mp_fwd_dct_block2(data, dest) @@ -348,6 +349,8 @@ mp_fwd_dct_block2(data, dest) else mp_fwd_dct_fast(data, dest); } + + /* Modifies from the MPEG2 verification coder */ /* fdctref.c, forward discrete cosine transform, double precision */ diff --git a/converter/ppm/ppmtompeg/mheaders.c b/converter/ppm/ppmtompeg/mheaders.c index 7e5db6c1..54dada83 100644 --- a/converter/ppm/ppmtompeg/mheaders.c +++ b/converter/ppm/ppmtompeg/mheaders.c @@ -429,6 +429,7 @@ GenMBType(bbPtr, pict_code_type, mb_quant, motion_forw, motion_back, } + /*===========================================================================* * * GenMotionCode @@ -459,6 +460,7 @@ GenMotionCode(BitBucket * const bbPtr, } + /*===========================================================================* * * GenBlockPattern @@ -485,6 +487,7 @@ GenBlockPattern(bbPtr, mb_pattern) } + /*===========================================================================* * * GenMBAddrIncr @@ -512,6 +515,7 @@ GenMBAddrIncr(bbPtr, addr_incr) } + /*===========================================================================* * * GenPictHead @@ -624,6 +628,7 @@ GenPictHead(bbPtr, temp_ref, code_type, vbv_delay, full_pel_forw_flag, } + /*=====================* * EXPORTED PROCEDURES * *=====================*/ @@ -649,6 +654,7 @@ SetGOPStartTime(index) } + /*===========================================================================* * * Mhead_GenPictureHeader @@ -688,6 +694,7 @@ Mhead_GenPictureHeader(bbPtr, frameType, pictCount, f_code) } + /*===========================================================================* * * Mhead_GenSequenceHeader @@ -849,6 +856,7 @@ Mhead_GenSequenceHeader(BitBucket * const bbPtr, } + /*===========================================================================* * * Mhead_GenSequenceEnder @@ -869,6 +877,7 @@ Mhead_GenSequenceEnder(bbPtr) } + /*===========================================================================* * * Mhead_GenGOPHeader @@ -967,6 +976,7 @@ Mhead_GenGOPHeader(bbPtr, drop_frame_flag, tc_hrs, tc_min, tc_sec, tc_pict, } + /*===========================================================================* * * Mhead_GenSliceHeader @@ -1010,6 +1020,7 @@ Mhead_GenSliceHeader(bbPtr, verticalPos, qscale, extra_info, extra_info_size) } + /*===========================================================================* * * Mhead_GenSliceEnder @@ -1030,6 +1041,7 @@ Mhead_GenSliceEnder(bbPtr) } + /*===========================================================================* * * Mhead_GenMBHeader @@ -1158,6 +1170,7 @@ if ( addr_incr != 1 ) } + #ifdef UNUSED_PROCEDURES /* GenMBEnd only used for `D` pictures. Shouldn't really ever be called. */ @@ -1169,4 +1182,6 @@ GenMBEnd(bbPtr) Bitio_Write(bbPtr, 0x01, 1); } + + #endif /* UNUSED_PROCEDURES */ diff --git a/converter/ppm/ppmtompeg/moutput.c b/converter/ppm/ppmtompeg/moutput.c index 765a2b6f..bc7fb2b6 100644 --- a/converter/ppm/ppmtompeg/moutput.c +++ b/converter/ppm/ppmtompeg/moutput.c @@ -167,6 +167,7 @@ void UnQuantZig(FlatBlock in, Block out, int qscale, boolean iblock) } + /* * -------------------------------------------------------------- * @@ -335,6 +336,7 @@ void mp_rle_huff_block(FlatBlock in, BitBucket *out) } + /* * -------------------------------------------------------------- * @@ -440,3 +442,6 @@ void mp_rle_huff_pblock(FlatBlock in, BitBucket *out) DBG_PRINT(("End of block\n")); Bitio_Write(out, 0x2, 2); /* end of block marker */ } + + + diff --git a/converter/ppm/ppmtompeg/mpeg.c b/converter/ppm/ppmtompeg/mpeg.c index e67eec1e..ff8c6035 100644 --- a/converter/ppm/ppmtompeg/mpeg.c +++ b/converter/ppm/ppmtompeg/mpeg.c @@ -285,7 +285,6 @@ SetBitRateFileName(const char * const fileName) { - static void finishFrameOutput(MpegFrame * const frameP, BitBucket * const bbP, @@ -316,7 +315,6 @@ finishFrameOutput(MpegFrame * const frameP, - static void outputIFrame(MpegFrame * const frameP, BitBucket * const bbP, @@ -1241,6 +1239,7 @@ SetStatFileName(const char * const fileName) { } + /*===========================================================================* * * SetGOPSize @@ -1260,6 +1259,7 @@ SetGOPSize(size) } + /*===========================================================================* * * PrintStartStats @@ -1463,6 +1463,7 @@ SetFrameRate() } + /*=====================* * INTERNAL PROCEDURES * *=====================*/ diff --git a/converter/ppm/ppmtompeg/mquant.c b/converter/ppm/ppmtompeg/mquant.c index 99b1cb8e..0251a142 100644 --- a/converter/ppm/ppmtompeg/mquant.c +++ b/converter/ppm/ppmtompeg/mquant.c @@ -42,3 +42,6 @@ void mp_quant_block(Block in, Block out) { out[i][7] = in[i][7] / qtable[i][7]; } } + + + diff --git a/converter/ppm/ppmtompeg/nojpeg.c b/converter/ppm/ppmtompeg/nojpeg.c index 5b86ab56..dc1b222e 100644 --- a/converter/ppm/ppmtompeg/nojpeg.c +++ b/converter/ppm/ppmtompeg/nojpeg.c @@ -52,6 +52,7 @@ JMovie2JPEG(const char * const infilename, } + void ReadJPEG(MpegFrame * const mf, FILE * const fp) { @@ -59,3 +60,6 @@ ReadJPEG(MpegFrame * const mf, pm_error("This program has not been built with the " "ability to handle JPEG input files"); } + + + diff --git a/converter/ppm/ppmtompeg/noparallel.c b/converter/ppm/ppmtompeg/noparallel.c index 02c46a58..d21f3e9a 100644 --- a/converter/ppm/ppmtompeg/noparallel.c +++ b/converter/ppm/ppmtompeg/noparallel.c @@ -92,6 +92,7 @@ SetParallelPerfect(boolean const val) { } + void SetRemoteShell(const char * const shell) { /* do nothing -- this may be called during non-parallel execution */ @@ -228,3 +229,6 @@ GetRemoteDecodedRefFrame(MpegFrame * const frame, pm_error("This version of Ppmtompeg cannot run parallel mode because " "it does not have socket capability."); } + + + diff --git a/converter/ppm/ppmtompeg/opts.c b/converter/ppm/ppmtompeg/opts.c index 6f5f9816..9d750c54 100644 --- a/converter/ppm/ppmtompeg/opts.c +++ b/converter/ppm/ppmtompeg/opts.c @@ -157,7 +157,6 @@ SetupCollectQuantStats(const char * const charPtr) - /*===========================================================================* * * SetupKillDimAreas @@ -223,6 +222,7 @@ SetupSquashSmall(const char * const charPtr) } + /*===========================================================================* * * SetupLocalDCT @@ -254,6 +254,7 @@ SetupLocalDCT(const char * const charPtr) } + /*===========================================================================* * * SetupLaplace @@ -290,6 +291,8 @@ SetupLaplace() } } + + static void SetupWriteDistortions(const char * const charPtr) { @@ -341,6 +344,8 @@ SetupWriteDistortions(const char * const charPtr) }} } + + /*=====================* * EXPORTED PROCEDURES * *=====================*/ @@ -361,6 +366,7 @@ CalcLambdas(void) { } + /*===========================================================================* * * Mpost_UnQuantZigBlockLaplace @@ -424,6 +430,8 @@ Mpost_UnQuantZigBlockLaplace(in, out, qscale, iblock) } } + + int mse(Block blk1, Block blk2) { @@ -442,7 +450,6 @@ mse(Block blk1, Block blk2) - /*===========================================================================* * * Tune_Init @@ -489,6 +496,8 @@ void Tune_Init() } + + /*===========================================================================* * * ParseTuneParam @@ -545,3 +554,4 @@ void ParseTuneParam(const char * const charPtr) } + diff --git a/converter/ppm/ppmtompeg/parallel.c b/converter/ppm/ppmtompeg/parallel.c index b24764d6..fb0f2fe9 100644 --- a/converter/ppm/ppmtompeg/parallel.c +++ b/converter/ppm/ppmtompeg/parallel.c @@ -324,6 +324,7 @@ static void } + /*===========================================================================* * * NotifyDecodeServerReady @@ -446,6 +447,7 @@ int id; } + /*===========================================================================* * * SendDecodedFrame @@ -484,6 +486,7 @@ SendDecodedFrame(MpegFrame * const frameP) { } + /*===========================================================================* * * GetRemoteDecodedFrame @@ -524,6 +527,7 @@ GetRemoteDecodedRefFrame(MpegFrame * const frameP, } + /********* routines handling forks, execs, PIDs and signals save, system-style forks @@ -559,6 +563,8 @@ static void cleanup_fork( dummy ) /* try to kill all child processes */ } } + + /*===========================================================================* * * safe_fork @@ -611,6 +617,7 @@ static int safe_fork(command) /* fork child process and remember its PID * } + /*=====================* * EXPORTED PROCEDURES * *=====================*/ @@ -638,6 +645,7 @@ SetIOConvert(boolean const separate) { } + /*===========================================================================* * * SetParallelPerfect @@ -657,6 +665,7 @@ SetParallelPerfect(boolean val) } + /*===========================================================================* * * SetRemoteShell @@ -675,6 +684,7 @@ SetRemoteShell(const char * const shell) { } + static void decodedFrameToDisk(int const otherSock) { /*---------------------------------------------------------------------------- @@ -1146,6 +1156,7 @@ GetRemoteFrame(MpegFrame * const frameP, } + struct combineControl { unsigned int numFrames; }; @@ -1323,6 +1334,7 @@ CombineServer(int const numFrames, } + /*=====================* * MASTER SERVER STUFF * *=====================*/ diff --git a/converter/ppm/ppmtompeg/param.c b/converter/ppm/ppmtompeg/param.c index 9499b4ea..3408c6fc 100644 --- a/converter/ppm/ppmtompeg/param.c +++ b/converter/ppm/ppmtompeg/param.c @@ -241,6 +241,7 @@ ReadMachineNames(FILE * const fpointer) } + /*===========================================================================* * * GetFrameRate @@ -1044,6 +1045,7 @@ ReadParamFile(const char * const fileName, } + /* * Copyright (c) 1995 The Regents of the University of California. * All rights reserved. diff --git a/converter/ppm/ppmtompeg/pframe.c b/converter/ppm/ppmtompeg/pframe.c index d61848b1..89aab874 100644 --- a/converter/ppm/ppmtompeg/pframe.c +++ b/converter/ppm/ppmtompeg/pframe.c @@ -75,6 +75,8 @@ halfVector(vector const vector) { return half; } + + /*===========================================================================* * * decide if (0,0) motion is better than the given motion vector @@ -120,6 +122,7 @@ ZeroMotionBetter(const LumBlock * const currentBlockP, } + /*===========================================================================* * * USER-MODIFIABLE @@ -851,6 +854,7 @@ GenPFrame(BitBucket * const bb, } + /*===========================================================================* * * ResetPFrameStats @@ -876,6 +880,7 @@ void } + /*===========================================================================* * * SetPQScale @@ -895,6 +900,7 @@ int qP; } + /*===========================================================================* * * GetPQScale @@ -913,6 +919,7 @@ int } + float PFrameTotalTime(void) { return (float)totalTime/(float)TIME_RATE; @@ -992,6 +999,7 @@ float } + /*===========================================================================* * * ComputeHalfPixelData @@ -1048,6 +1056,7 @@ MpegFrame *frame; } + /* * Copyright (c) 1995 The Regents of the University of California. * All rights reserved. diff --git a/converter/ppm/ppmtompeg/postdct.c b/converter/ppm/ppmtompeg/postdct.c index 68712963..f3de075a 100644 --- a/converter/ppm/ppmtompeg/postdct.c +++ b/converter/ppm/ppmtompeg/postdct.c @@ -261,6 +261,7 @@ Mpost_UnQuantZigBlock(in, out, qscale, iblock) } + /*===========================================================================* * * Mpost_QuantZigBlock @@ -460,6 +461,7 @@ Mpost_RLEHuffIBlock(in, out) } + /*===========================================================================* * * Mpost_RLEHuffPBlock @@ -565,6 +567,7 @@ Mpost_RLEHuffPBlock(in, out) } + /*===========================================================================* * * CalcRLEHuffLength @@ -624,3 +627,6 @@ CalcRLEHuffLength(in) countbits += 2; /* end of block marker */ return countbits; } + + + diff --git a/converter/ppm/ppmtompeg/ppmtompeg.c b/converter/ppm/ppmtompeg/ppmtompeg.c index cc2cb27e..78e33c54 100644 --- a/converter/ppm/ppmtompeg/ppmtompeg.c +++ b/converter/ppm/ppmtompeg/ppmtompeg.c @@ -402,7 +402,6 @@ encodeSomeFrames(struct inputSource * const inputSourceP, - static void encodeFrames(struct inputSource * const inputSourceP, boolean const childProcess, @@ -507,7 +506,6 @@ encodeFrames(struct inputSource * const inputSourceP, - static void runMaster(struct inputSource * const inputSourceP, const char * const paramFileName, @@ -708,3 +706,6 @@ main(int argc, char **argv) { return 0; } + + + diff --git a/converter/ppm/ppmtompeg/psearch.c b/converter/ppm/ppmtompeg/psearch.c index de3d3e26..c82ad4ad 100644 --- a/converter/ppm/ppmtompeg/psearch.c +++ b/converter/ppm/ppmtompeg/psearch.c @@ -135,6 +135,7 @@ SetPixelSearch(const char * const searchType) { } + /*===========================================================================* * * SetPSearchAlg @@ -164,6 +165,7 @@ SetPSearchAlg(const char * const alg) } + /*===========================================================================* * * PSearchName @@ -198,6 +200,7 @@ PSearchName(void) } + /*===========================================================================* * * SetSearchRange @@ -232,6 +235,7 @@ SetSearchRange(int const pixelsP, int const pixelsB) { } + /*===========================================================================* * * USER-MODIFIABLE @@ -252,6 +256,7 @@ MotionSearchPreComputation(MpegFrame * const frameP) { } + /*===========================================================================* * * PSubSampleSearch @@ -649,6 +654,7 @@ PLocalSearch(const LumBlock * const currentBlockP, } + /*===========================================================================* * * PTwoLevelSearch @@ -837,6 +843,7 @@ ShowPMVHistogram(fpointer) } + void ShowBBMVHistogram(fpointer) FILE *fpointer; @@ -884,6 +891,7 @@ ShowBBMVHistogram(fpointer) } + void ShowBFMVHistogram(fpointer) FILE *fpointer; @@ -931,6 +939,7 @@ ShowBFMVHistogram(fpointer) } + /* * Copyright (c) 1995 The Regents of the University of California. * All rights reserved. diff --git a/converter/ppm/ppmtompeg/qtest.c b/converter/ppm/ppmtompeg/qtest.c index 85eda2c8..15e4e197 100644 --- a/converter/ppm/ppmtompeg/qtest.c +++ b/converter/ppm/ppmtompeg/qtest.c @@ -61,3 +61,6 @@ main() printf("Huffman output is %d bits\n", bb->totalbits); } + + + diff --git a/converter/ppm/ppmtompeg/rate.c b/converter/ppm/ppmtompeg/rate.c index 26c30ffe..4237427e 100644 --- a/converter/ppm/ppmtompeg/rate.c +++ b/converter/ppm/ppmtompeg/rate.c @@ -316,6 +316,8 @@ initRateControl(bool const wantUnderflowWarning, return result; } + + /*===========================================================================* * * initGOPRateControl @@ -464,7 +466,6 @@ targetRateControl(MpegFrame * const frame) { - static void updateVBVBuffer(int const frameBits) { /*---------------------------------------------------------------------------- @@ -580,6 +581,7 @@ updateRateControl(int const type) { } + /*===========================================================================* * * MB_RateOut @@ -647,6 +649,7 @@ void incNumBlocks(num) } + /*===========================================================================* * * incMacroBlockBits() @@ -670,6 +673,7 @@ void incMacroBlockBits(num) } + /*===========================================================================* * * needQScaleChange(current Q scale, 4 luminance blocks) @@ -707,6 +711,7 @@ int needQScaleChange(oldQScale, blk0, blk1, blk2, blk3) } + /*===========================================================================* * * determineMBCount() @@ -761,6 +766,7 @@ void checkBufferFullness (oldQScale) } + /*===========================================================================* * * void checkSpatialActivity() @@ -845,7 +851,6 @@ void checkSpatialActivity(blk0, blk1, blk2, blk3) - /*============================================================================* * * getRateMode () @@ -864,6 +869,7 @@ int getRateMode() } + /*===========================================================================* * * setBitRate () @@ -921,7 +927,6 @@ int getBitRate () - /*===========================================================================* * * setBufferSize () @@ -954,6 +959,7 @@ void setBufferSize (const char * const charPtr) } + /*===========================================================================* * * getBufferSize () diff --git a/converter/ppm/ppmtompeg/readframe.c b/converter/ppm/ppmtompeg/readframe.c index dcc02052..85f432d8 100644 --- a/converter/ppm/ppmtompeg/readframe.c +++ b/converter/ppm/ppmtompeg/readframe.c @@ -386,6 +386,7 @@ SetFileType(const char * const conversion) } + /*===========================================================================* * * SetFileFormat @@ -558,6 +559,8 @@ ReadEYUV(mf, fpointer, width, height) /* ignore leftover stuff on the bottom */ } + + /*===========================================================================* * * ReadAYUV @@ -616,6 +619,8 @@ ReadAYUV(mf, fpointer, width, height) } + + /*===========================================================================* * * SeparateLine @@ -702,6 +707,7 @@ SeparateLine(fpointer, lineptr, width) } + /*===========================================================================* * * ReadY @@ -749,6 +755,7 @@ ReadY(mf, fpointer, width, height) } + /*===========================================================================* * * ReadSub4 @@ -808,6 +815,7 @@ ReadSub4(mf, fpointer, width, height) } + /*=====================* * INTERNAL PROCEDURES * *=====================*/ @@ -846,7 +854,6 @@ int w,h; - /*===========================================================================* * * DoKillDim @@ -912,6 +919,7 @@ int w,h; } + /* * Copyright (c) 1995 The Regents of the University of California. * All rights reserved. diff --git a/converter/ppm/ppmtompeg/rgbtoycc.c b/converter/ppm/ppmtompeg/rgbtoycc.c index 9357c8d8..189003d7 100644 --- a/converter/ppm/ppmtompeg/rgbtoycc.c +++ b/converter/ppm/ppmtompeg/rgbtoycc.c @@ -108,6 +108,7 @@ compute_mult_tables(const pixval maxval) { } + /*=====================* * EXPORTED PROCEDURES * *=====================*/ @@ -202,3 +203,6 @@ PNMtoYUV(MpegFrame * const frameP, } } } + + + diff --git a/converter/ppm/ppmtompeg/specifics.c b/converter/ppm/ppmtompeg/specifics.c index e8597978..acf98116 100644 --- a/converter/ppm/ppmtompeg/specifics.c +++ b/converter/ppm/ppmtompeg/specifics.c @@ -247,6 +247,8 @@ FILE *fp; } + + /* Version 1 */ void Parse_Specifics_File_v1(fp) FILE *fp; @@ -442,7 +444,6 @@ Parse_Specifics_File_v2(FILE * const fP) { - /*================================================================= * * MakeFslEntry @@ -467,8 +468,6 @@ FrameSpecList *MakeFslEntry() - - /*================================================================ * * AddSlc @@ -503,8 +502,6 @@ int snum,qs; - - /*================================================================ * * AddBs @@ -544,9 +541,6 @@ int bnum,qs; - - - /*================================================================ * * SpecLookup @@ -685,6 +679,7 @@ int start_qs; } + /*================================================================ * * SpecTypeLookup @@ -718,3 +713,6 @@ int fn; #endif return tmp->frametype; } + + + diff --git a/converter/ppm/ppmtompeg/subsample.c b/converter/ppm/ppmtompeg/subsample.c index 93b76db0..e411feb4 100644 --- a/converter/ppm/ppmtompeg/subsample.c +++ b/converter/ppm/ppmtompeg/subsample.c @@ -199,6 +199,7 @@ LumMotionErrorB(const LumBlock * const currentBlockP, } + /*===========================================================================* * * LumMotionErrorC @@ -240,6 +241,7 @@ LumMotionErrorC(const LumBlock * const currentBlockP, } + /*===========================================================================* * * LumMotionErrorD @@ -279,3 +281,6 @@ LumMotionErrorD(const LumBlock * const currentBlockP, } return diff; } + + + -- cgit 1.4.1