[svn] / trunk / xvidcore / src / utils / mbfunctions.h Repository:
ViewVC logotype

Annotation of /trunk/xvidcore/src/utils/mbfunctions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (view) (download)

1 : Isibaar 3 /**************************************************************************
2 :     *
3 :     * Modifications:
4 :     *
5 : h 82 * 29.03.2002 removed MBFieldToFrame - no longer used (transfers instead)
6 : h 69 * 26.03.2002 interlacing support
7 : Isibaar 3 * 02.12.2001 motion estimation/compensation split
8 :     * 16.11.2001 const/uint32_t changes to MBMotionEstComp()
9 :     * 26.08.2001 added inter4v_mode parameter to MBMotionEstComp()
10 :     *
11 :     * Michael Militzer <isibaar@videocoding.de>
12 :     *
13 :     **************************************************************************/
14 :    
15 :     #ifndef _ENCORE_BLOCK_H
16 :     #define _ENCORE_BLOCK_H
17 :    
18 :     #include "../encoder.h"
19 :     #include "../bitstream/bitstream.h"
20 :    
21 :    
22 :    
23 :     /** MotionEstimation **/
24 :    
25 :     bool MotionEstimation(
26 : edgomez 78 MACROBLOCK * const pMBs,
27 :     MBParam * const pParam,
28 :     const IMAGE * const pRef,
29 :     const IMAGE * const pRefH,
30 :     const IMAGE * const pRefV,
31 :     const IMAGE * const pRefHV,
32 :     IMAGE * const pCurrent,
33 :     const uint32_t iLimit);
34 : Isibaar 3
35 :    
36 :     /** MBMotionCompensation **/
37 :     void MBMotionCompensation(
38 : edgomez 78 MACROBLOCK * const pMB,
39 :     const uint32_t j,
40 :     const uint32_t i,
41 :     const IMAGE * const pRef,
42 :     const IMAGE * const pRefH,
43 :     const IMAGE * const pRefV,
44 :     const IMAGE * const pRefHV,
45 :     IMAGE * const pCurrent,
46 :     int16_t dct_codes[6*64],
47 :     const uint32_t width,
48 :     const uint32_t height,
49 :     const uint32_t edged_width,
50 :     const uint32_t rounding);
51 : Isibaar 3
52 :    
53 :     /** MBTransQuant.c **/
54 :    
55 :    
56 :     void MBTransQuantIntra(const MBParam *pParam,
57 : edgomez 78 MACROBLOCK * pMB,
58 :     const uint32_t x_pos, /* <-- The x position of the MB to be searched */
59 :     const uint32_t y_pos, /* <-- The y position of the MB to be searched */
60 :     int16_t data[6*64], /* <-> the data of the MB to be coded */
61 :     int16_t qcoeff[6*64], /* <-> the quantized DCT coefficients */
62 :     IMAGE * const pCurrent /* <-> the reconstructed image */
63 :     /* (function will update one MB in it with data from data[]) */
64 : Isibaar 3 );
65 :    
66 :    
67 :     uint8_t MBTransQuantInter(const MBParam *pParam, /* <-- the parameter for DCT transformation
68 : edgomez 78 and Quantization */
69 :     MACROBLOCK * pMB,
70 :     const uint32_t x_pos, /* <-- The x position of the MB to be searched */
71 :     const uint32_t y_pos, /* <-- The y position of the MB to be searched */
72 :     int16_t data[6*64], /* <-> the data of the MB to be coded */
73 :     int16_t qcoeff[6*64], /* <-> the quantized DCT coefficients */
74 :     IMAGE * const pCurrent /* <-> the reconstructed image ( function will
75 :     update one MB in it with data from data[] ) */
76 : Isibaar 3 );
77 :    
78 :    
79 : h 69 /** interlacing **/
80 :    
81 : edgomez 78 uint32_t MBDecideFieldDCT(int16_t data[6*64]); /* <- decide whether to use field-based DCT
82 :     for interlacing */
83 : h 69
84 : edgomez 78 void MBFrameToField(int16_t data[6*64]); /* de-interlace vertical Y blocks */
85 : h 69
86 :    
87 : Isibaar 3 /** MBCoding.c **/
88 :    
89 : edgomez 78 void MBCoding(const MBParam *pParam, /* <-- the parameter for coding of the bitstream */
90 :     MACROBLOCK *pMB, /* <-- Info of the MB to be coded */
91 :     int16_t qcoeff[6*64], /* <-- the quantized DCT coefficients */
92 :     Bitstream * bs, /* <-> the bitstream */
93 :     Statistics * pStat /* <-> statistical data collected for current frame */
94 : Isibaar 3 );
95 :    
96 :     #endif

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4