Doxygen Source Code Documentation
        
Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search   
mproto.h
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046 
00047 
00048 
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 
00082 
00083 
00084 
00085 
00086 
00087 #include "general.h"
00088 #include "ansi.h"
00089 #include "bitio.h"
00090 
00091 
00092 #define DCTSIZE2    DCTSIZE*DCTSIZE
00093 typedef short DCTELEM;
00094 typedef DCTELEM DCTBLOCK[DCTSIZE2];
00095 
00096 
00097 
00098 
00099 
00100 
00101 
00102 
00103 
00104 
00105 void mp_reset _ANSI_ARGS_((void));
00106 void mp_free _ANSI_ARGS_((MpegFrame *mf));
00107 MpegFrame *mp_new _ANSI_ARGS_((int fnumber, char type, MpegFrame *oldFrame));
00108 void mp_ycc_calc _ANSI_ARGS_((MpegFrame *mf));
00109 void mp_dct_blocks _ANSI_ARGS_((MpegFrame *mf));
00110 void    AllocDecoded _ANSI_ARGS_((MpegFrame *frame));
00111 
00112 
00113 
00114 
00115 boolean mp_quant_zig_block _ANSI_ARGS_((Block in, FlatBlock out, int qscale, int iblock));
00116 void    UnQuantZig _ANSI_ARGS_((FlatBlock in, Block out, int qscale, boolean iblock));
00117 void mp_rle_huff_block _ANSI_ARGS_((FlatBlock in, BitBucket *out));
00118 void mp_rle_huff_pblock _ANSI_ARGS_((FlatBlock in, BitBucket *out));
00119 void mp_create_blocks _ANSI_ARGS_((MpegFrame *mf));
00120 
00121 
00122 
00123 
00124 void    ReadEYUV _ANSI_ARGS_((MpegFrame * mf, FILE *fpointer, int width,
00125                             int height));
00126 boolean ReadPPM _ANSI_ARGS_((MpegFrame *mf, FILE *fpointer));
00127 void PPMtoYCC _ANSI_ARGS_((MpegFrame * mf));
00128 
00129 void    MotionSearchPreComputation _ANSI_ARGS_((MpegFrame *frame));
00130 boolean PMotionSearch _ANSI_ARGS_((LumBlock currentBlock, MpegFrame *prev,
00131                                    int by, int bx, int *motionY, int *motionX));
00132 void    ComputeHalfPixelData _ANSI_ARGS_((MpegFrame *frame));
00133 void mp_validate_size _ANSI_ARGS_((int *x, int *y));
00134 void AllocYCC _ANSI_ARGS_((MpegFrame * mf));
00135 
00136 
00137 
00138 void init_pre_idct _ANSI_ARGS_((void ));
00139 void j_rev_dct_sparse _ANSI_ARGS_((DCTBLOCK data , int pos ));
00140 void j_rev_dct _ANSI_ARGS_((DCTBLOCK data ));
00141 void j_rev_dct_sparse _ANSI_ARGS_((DCTBLOCK data , int pos ));
00142 void j_rev_dct _ANSI_ARGS_((DCTBLOCK data ));
00143 
00144 
00145 void    BlockToData _ANSI_ARGS_((uint8 **data, Block block, int by, int bx));
00146 void    AddMotionBlock _ANSI_ARGS_((Block block, uint8 **prev, int by, int bx,
00147                        int my, int mx));