Parent Directory | Revision Log
Revision 1.8 - (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 : | chl | 1.7 | bool SMP_MotionEstimation(MBParam * const pParam, |
35 : | FRAMEINFO * const current, | ||
36 : | FRAMEINFO * const reference, | ||
37 : | const IMAGE * const pRefH, | ||
38 : | const IMAGE * const pRefV, | ||
39 : | const IMAGE * const pRefHV, | ||
40 : | const uint32_t iLimit); | ||
41 : | |||
42 : | |||
43 : | |||
44 : | Isibaar | 1.1 | /** MBMotionCompensation **/ |
45 : | edgomez | 1.6 | void MBMotionCompensation(MACROBLOCK * const pMB, |
46 : | const uint32_t j, | ||
47 : | const uint32_t i, | ||
48 : | const IMAGE * const pRef, | ||
49 : | const IMAGE * const pRefH, | ||
50 : | const IMAGE * const pRefV, | ||
51 : | const IMAGE * const pRefHV, | ||
52 : | IMAGE * const pCurrent, | ||
53 : | int16_t dct_codes[6 * 64], | ||
54 : | const uint32_t width, | ||
55 : | const uint32_t height, | ||
56 : | const uint32_t edged_width, | ||
57 : | const uint32_t rounding); | ||
58 : | Isibaar | 1.1 | |
59 : | |||
60 : | /** MBTransQuant.c **/ | ||
61 : | |||
62 : | |||
63 : | edgomez | 1.6 | void MBTransQuantIntra(const MBParam * pParam, |
64 : | FRAMEINFO * frame, | ||
65 : | MACROBLOCK * pMB, | ||
66 : | const uint32_t x_pos, /* <-- The x position of the MB to be searched */ | ||
67 : | Isibaar | 1.1 | |
68 : | edgomez | 1.6 | const uint32_t y_pos, /* <-- The y position of the MB to be searched */ |
69 : | |||
70 : | int16_t data[6 * 64], /* <-> the data of the MB to be coded */ | ||
71 : | |||
72 : | int16_t qcoeff[6 * 64] /* <-> the quantized DCT coefficients */ | ||
73 : | ); | ||
74 : | |||
75 : | |||
76 : | uint8_t MBTransQuantInter(const MBParam * pParam, /* <-- the parameter for DCT transformation and Quantization */ | ||
77 : | Isibaar | 1.1 | |
78 : | suxen_drol | 1.5 | FRAMEINFO * frame, |
79 : | edgomez | 1.6 | MACROBLOCK * pMB, |
80 : | const uint32_t x_pos, /* <-- The x position of the MB to be searched */ | ||
81 : | |||
82 : | const uint32_t y_pos, /* <-- The y position of the MB to be searched */ | ||
83 : | |||
84 : | int16_t data[6 * 64], /* <-> the data of the MB to be coded */ | ||
85 : | |||
86 : | int16_t qcoeff[6 * 64] /* <-> the quantized DCT coefficients */ | ||
87 : | ); | ||
88 : | h | 1.2 | |
89 : | |||
90 : | /** interlacing **/ | ||
91 : | |||
92 : | edgomez | 1.6 | uint32_t MBDecideFieldDCT(int16_t data[6 * 64]); /* <- decide whether to use field-based DCT |
93 : | for interlacing */ | ||
94 : | h | 1.2 | |
95 : | edgomez | 1.6 | void MBFrameToField(int16_t data[6 * 64]); /* de-interlace vertical Y blocks */ |
96 : | Isibaar | 1.1 | |
97 : | |||
98 : | /** MBCoding.c **/ | ||
99 : | |||
100 : | chl | 1.8 | void MBSkip(Bitstream * bs); /* just the bitstream. Since MB is skipped, no info is needed */ |
101 : | |||
102 : | |||
103 : | edgomez | 1.6 | void MBCoding(const FRAMEINFO * frame, /* <-- the parameter for coding of the bitstream */ |
104 : | |||
105 : | MACROBLOCK * pMB, /* <-- Info of the MB to be coded */ | ||
106 : | |||
107 : | int16_t qcoeff[6 * 64], /* <-- the quantized DCT coefficients */ | ||
108 : | |||
109 : | Bitstream * bs, /* <-> the bitstream */ | ||
110 : | |||
111 : | Statistics * pStat /* <-> statistical data collected for current frame */ | ||
112 : | ); | ||
113 : | Isibaar | 1.1 | |
114 : | #endif |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |