[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 136 - (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 MBParam * const pParam,
27 : suxen_drol 136 FRAMEINFO * const current,
28 :     FRAMEINFO * const reference,
29 : edgomez 78 const IMAGE * const pRefH,
30 :     const IMAGE * const pRefV,
31 :     const IMAGE * const pRefHV,
32 :     const uint32_t iLimit);
33 : Isibaar 3
34 :    
35 :     /** MBMotionCompensation **/
36 :     void MBMotionCompensation(
37 : edgomez 78 MACROBLOCK * const pMB,
38 :     const uint32_t j,
39 :     const uint32_t i,
40 :     const IMAGE * const pRef,
41 :     const IMAGE * const pRefH,
42 :     const IMAGE * const pRefV,
43 :     const IMAGE * const pRefHV,
44 :     IMAGE * const pCurrent,
45 :     int16_t dct_codes[6*64],
46 :     const uint32_t width,
47 :     const uint32_t height,
48 :     const uint32_t edged_width,
49 :     const uint32_t rounding);
50 : Isibaar 3
51 :    
52 :     /** MBTransQuant.c **/
53 :    
54 :    
55 :     void MBTransQuantIntra(const MBParam *pParam,
56 : suxen_drol 136 FRAMEINFO * frame,
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 : suxen_drol 136 int16_t qcoeff[6*64] /* <-> the quantized DCT coefficients */
62 : Isibaar 3 );
63 :    
64 :    
65 : suxen_drol 136 uint8_t MBTransQuantInter(const MBParam *pParam, /* <-- the parameter for DCT transformation and Quantization */
66 :     FRAMEINFO * frame,
67 : edgomez 78 MACROBLOCK * pMB,
68 :     const uint32_t x_pos, /* <-- The x position of the MB to be searched */
69 :     const uint32_t y_pos, /* <-- The y position of the MB to be searched */
70 :     int16_t data[6*64], /* <-> the data of the MB to be coded */
71 : suxen_drol 136 int16_t qcoeff[6*64] /* <-> the quantized DCT coefficients */
72 : Isibaar 3 );
73 :    
74 :    
75 : h 69 /** interlacing **/
76 :    
77 : edgomez 78 uint32_t MBDecideFieldDCT(int16_t data[6*64]); /* <- decide whether to use field-based DCT
78 :     for interlacing */
79 : h 69
80 : edgomez 78 void MBFrameToField(int16_t data[6*64]); /* de-interlace vertical Y blocks */
81 : h 69
82 :    
83 : Isibaar 3 /** MBCoding.c **/
84 :    
85 : suxen_drol 136 void MBCoding(const FRAMEINFO *frame, /* <-- the parameter for coding of the bitstream */
86 : edgomez 78 MACROBLOCK *pMB, /* <-- Info of the MB to be coded */
87 :     int16_t qcoeff[6*64], /* <-- the quantized DCT coefficients */
88 :     Bitstream * bs, /* <-> the bitstream */
89 :     Statistics * pStat /* <-> statistical data collected for current frame */
90 : Isibaar 3 );
91 :    
92 :     #endif

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