Parent Directory
|
Revision Log
Revision 1.5 - (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 : | bool MotionEstimation( | ||
26 : | edgomez | 1.3 | MBParam * const pParam, |
27 : | suxen_drol | 1.5 | FRAMEINFO * const current, |
28 : | FRAMEINFO * const reference, | ||
29 : | edgomez | 1.3 | const IMAGE * const pRefH, |
30 : | const IMAGE * const pRefV, | ||
31 : | const IMAGE * const pRefHV, | ||
32 : | const uint32_t iLimit); | ||
33 : | Isibaar | 1.1 | |
34 : | |||
35 : | /** MBMotionCompensation **/ | ||
36 : | void MBMotionCompensation( | ||
37 : | edgomez | 1.3 | 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 | 1.1 | |
51 : | |||
52 : | /** MBTransQuant.c **/ | ||
53 : | |||
54 : | |||
55 : | void MBTransQuantIntra(const MBParam *pParam, | ||
56 : | suxen_drol | 1.5 | FRAMEINFO * frame, |
57 : | edgomez | 1.3 | 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 | 1.5 | int16_t qcoeff[6*64] /* <-> the quantized DCT coefficients */ |
62 : | Isibaar | 1.1 | ); |
63 : | |||
64 : | |||
65 : | suxen_drol | 1.5 | uint8_t MBTransQuantInter(const MBParam *pParam, /* <-- the parameter for DCT transformation and Quantization */ |
66 : | FRAMEINFO * frame, | ||
67 : | edgomez | 1.3 | 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 | 1.5 | int16_t qcoeff[6*64] /* <-> the quantized DCT coefficients */ |
72 : | Isibaar | 1.1 | ); |
73 : | h | 1.2 | |
74 : | |||
75 : | /** interlacing **/ | ||
76 : | |||
77 : | edgomez | 1.3 | uint32_t MBDecideFieldDCT(int16_t data[6*64]); /* <- decide whether to use field-based DCT |
78 : | for interlacing */ | ||
79 : | h | 1.2 | |
80 : | edgomez | 1.3 | void MBFrameToField(int16_t data[6*64]); /* de-interlace vertical Y blocks */ |
81 : | Isibaar | 1.1 | |
82 : | |||
83 : | /** MBCoding.c **/ | ||
84 : | |||
85 : | suxen_drol | 1.5 | void MBCoding(const FRAMEINFO *frame, /* <-- the parameter for coding of the bitstream */ |
86 : | edgomez | 1.3 | 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 | 1.1 | ); |
91 : | |||
92 : | #endif |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |