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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (view) (download)

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

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