Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

prototypes.h

Go to the documentation of this file.
00001 /*===========================================================================*
00002  * prototypes.h                                                              *
00003  *                                                                           *
00004  *      miscellaneous prototypes                                             *
00005  *                                                                           *
00006  *===========================================================================*/
00007 
00008 /*
00009  * Copyright (c) 1995 The Regents of the University of California.
00010  * All rights reserved.
00011  *
00012  * Permission to use, copy, modify, and distribute this software and its
00013  * documentation for any purpose, without fee, and without written agreement is
00014  * hereby granted, provided that the above copyright notice and the following
00015  * two paragraphs appear in all copies of this software.
00016  *
00017  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
00018  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
00019  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
00020  * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00021  *
00022  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
00023  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
00024  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
00025  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
00026  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
00027  */
00028 
00029 /*  
00030  *  $Header: /misc/elrond0/share/cvs/AFNI/src/mpeg_encodedir/headers/prototypes.h,v 1.4 2004/04/02 15:12:42 rwcox Exp $
00031  *  $Log: prototypes.h,v $
00032  *  Revision 1.4  2004/04/02 15:12:42  rwcox
00033  *  Cput
00034  *
00035  *  Revision 1.3  2003/12/23 13:50:09  rwcox
00036  *  Cput
00037  *
00038  *  Revision 1.2  2003/12/03 14:46:15  rwcox
00039  *  Cput
00040  *
00041  *  Revision 1.1  2001/12/17 18:25:45  rwcox
00042  *  Cadd
00043  *
00044  *  Revision 1.9  1995/03/30 01:46:58  smoot
00045  *  added SpecType
00046  *
00047  * Revision 1.8  1995/03/21  00:27:10  smoot
00048  * added pnm stuff
00049  *
00050  * Revision 1.7  1995/02/18  01:48:27  smoot
00051  * changed SpecLookup for version 2 specfiles
00052  *
00053  * Revision 1.6  1995/01/19  23:55:14  eyhung
00054  * Changed copyrights
00055  *
00056  * Revision 1.5  1995/01/17  21:53:10  smoot
00057  * Added Specs like
00058  * Make that: Added specifics prototypes
00059  *
00060  * Revision 1.4  1994/12/07  00:42:01  smoot
00061  * Added seperate P and B search ranges
00062  *
00063  * Revision 1.3  1994/11/12  02:12:56  keving
00064  * nothing
00065  *
00066  * Revision 1.2  1993/07/22  22:24:23  keving
00067  * nothing
00068  *
00069  * Revision 1.1  1993/07/09  00:17:23  keving
00070  * nothing
00071  *
00072  */
00073 
00074 
00075 /*==============*
00076  * HEADER FILES *
00077  *==============*/
00078 
00079 #include "general.h"
00080 #include "ansi.h"
00081 #include "frame.h"
00082 
00083 
00084 /*===============================*
00085  * EXTERNAL PROCEDURE prototypes *
00086  *===============================*/
00087 
00088 int     GetBQScale _ANSI_ARGS_((void));
00089 int     GetPQScale _ANSI_ARGS_((void));
00090 void    ResetBFrameStats _ANSI_ARGS_((void));
00091 void    ResetPFrameStats _ANSI_ARGS_((void));
00092 void    SetSearchRange _ANSI_ARGS_((int pixelsP, int pixelsB));
00093 void    ResetIFrameStats _ANSI_ARGS_((void));
00094 void    SetPixelSearch _ANSI_ARGS_((char *searchType));
00095 void    SetIQScale _ANSI_ARGS_((int qI));
00096 void    SetPQScale _ANSI_ARGS_((int qP));
00097 void    SetBQScale _ANSI_ARGS_((int qB));
00098 float   EstimateSecondsPerIFrame _ANSI_ARGS_((void));
00099 float   EstimateSecondsPerPFrame _ANSI_ARGS_((void));
00100 float   EstimateSecondsPerBFrame _ANSI_ARGS_((void));
00101 void    SetGOPSize _ANSI_ARGS_((int size));
00102 void    SetStatFileName _ANSI_ARGS_((char *fileName));
00103 void    SetSlicesPerFrame _ANSI_ARGS_((int number));
00104 void    SetBlocksPerSlice _ANSI_ARGS_((void));
00105 
00106 
00107 void DCTFrame _ANSI_ARGS_((MpegFrame * mf));
00108 
00109 void PPMtoYCC _ANSI_ARGS_((MpegFrame * mf));
00110 
00111 void    MotionSearchPreComputation _ANSI_ARGS_((MpegFrame *frame));
00112 boolean PMotionSearch _ANSI_ARGS_((LumBlock currentBlock, MpegFrame *prev,
00113                                    int by, int bx, int *motionY, int *motionX));
00114 void    ComputeHalfPixelData _ANSI_ARGS_((MpegFrame *frame));
00115 void mp_validate_size _ANSI_ARGS_((int *x, int *y));
00116 
00117 /* block.c */
00118 void    BlockToData _ANSI_ARGS_((uint8 **data, Block block, int by, int bx));
00119 void    AddMotionBlock _ANSI_ARGS_((Block block, uint8 **prev, int by, int bx,
00120                        int my, int mx));
00121 void    AddBMotionBlock _ANSI_ARGS_((Block block, uint8 **prev, uint8 **next,
00122                                      int by, int bx, int mode,
00123                                      int fmy, int fmx, int bmy, int bmx));
00124 
00125 void    BlockifyFrame _ANSI_ARGS_((MpegFrame *frame));
00126 
00127 
00128 
00129 extern void     SetFCode _ANSI_ARGS_((void));
00130 
00131 
00132 /* frametype.c */
00133 int     FType_Type _ANSI_ARGS_((int frameNum));
00134 int     FType_FutureRef _ANSI_ARGS_((int currFrameNum));
00135 int     FType_PastRef _ANSI_ARGS_((int currFrameNum));
00136 void    SetFramePattern _ANSI_ARGS_((char *pattern));
00137 void    ComputeFrameTable _ANSI_ARGS_((void));
00138 
00139 /* psearch.c */
00140 void    ShowPMVHistogram _ANSI_ARGS_((FILE *fpointer));
00141 void    ShowBBMVHistogram _ANSI_ARGS_((FILE *fpointer));
00142 void    ShowBFMVHistogram _ANSI_ARGS_((FILE *fpointer));
00143 
00144 /* specifics.c */
00145 void    Specifics_Init _ANSI_ARGS_((void));
00146 int     SpecLookup _ANSI_ARGS_((int fn, int typ, int num, 
00147                                 BlockMV **info, int start_qs));
00148 int SpecTypeLookup _ANSI_ARGS_((int fn));
00149 
00150 /* libpnm.c */
00151 
00152 void pnm_promoteformat _ANSI_ARGS_(( xel** xels, int cols, int rows, xelval maxval,
00153 int format, xelval newmaxval, int newformat ));
00154 void pnm_promoteformatrow _ANSI_ARGS_(( xel* xelrow, int cols, xelval maxval, 
00155 int format, xelval newmaxval, int newformat ));
 

Powered by Plone

This site conforms to the following standards: