Parent Directory | Revision Log
Revision 1565 - (view) (download)
1 : | edgomez | 851 | /************************************************************************** |
2 : | chl | 326 | * |
3 : | * XVID MPEG-4 VIDEO CODEC | ||
4 : | edgomez | 1382 | * - Motion header - |
5 : | chl | 326 | * |
6 : | edgomez | 851 | * This program is an implementation of a part of one or more MPEG-4 |
7 : | * Video tools as specified in ISO/IEC 14496-2 standard. Those intending | ||
8 : | * to use this software module in hardware or software products are | ||
9 : | * advised that its use may infringe existing patents or copyrights, and | ||
10 : | * any such use would be at such party's own risk. The original | ||
11 : | * developer of this software module and his/her company, and subsequent | ||
12 : | * editors and their companies, will have no liability for use of this | ||
13 : | * software or modifications or derivatives thereof. | ||
14 : | chl | 430 | * |
15 : | edgomez | 851 | * This program is free software; you can redistribute it and/or modify |
16 : | * it under the terms of the GNU General Public License as published by | ||
17 : | chl | 326 | * the Free Software Foundation; either version 2 of the License, or |
18 : | * (at your option) any later version. | ||
19 : | * | ||
20 : | * This program is distributed in the hope that it will be useful, | ||
21 : | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22 : | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
23 : | * GNU General Public License for more details. | ||
24 : | * | ||
25 : | * You should have received a copy of the GNU General Public License | ||
26 : | * along with this program; if not, write to the Free Software | ||
27 : | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
28 : | * | ||
29 : | syskin | 1565 | * $Id: motion.h,v 1.23 2004-12-05 13:01:27 syskin Exp $ |
30 : | chl | 326 | * |
31 : | ***************************************************************************/ | ||
32 : | |||
33 : | #ifndef _MOTION_H_ | ||
34 : | #define _MOTION_H_ | ||
35 : | |||
36 : | #include "../portab.h" | ||
37 : | #include "../global.h" | ||
38 : | |||
39 : | edgomez | 872 | /***************************************************************************** |
40 : | edgomez | 1382 | * Modified rounding tables -- defined in estimation_common.c |
41 : | edgomez | 872 | * Original tables see ISO spec tables 7-6 -> 7-9 |
42 : | ****************************************************************************/ | ||
43 : | chl | 326 | |
44 : | edgomez | 872 | extern const uint32_t roundtab[16]; |
45 : | edgomez | 851 | /* K = 4 */ |
46 : | edgomez | 872 | extern const uint32_t roundtab_76[16]; |
47 : | edgomez | 851 | /* K = 2 */ |
48 : | edgomez | 872 | extern const uint32_t roundtab_78[8]; |
49 : | edgomez | 851 | /* K = 1 */ |
50 : | edgomez | 872 | extern const uint32_t roundtab_79[4]; |
51 : | chl | 326 | |
52 : | |||
53 : | edgomez | 1382 | /** MotionEstimation **/ |
54 : | chl | 326 | |
55 : | edgomez | 1382 | bool MotionEstimation(MBParam * const pParam, |
56 : | FRAMEINFO * const current, | ||
57 : | FRAMEINFO * const reference, | ||
58 : | const IMAGE * const pRefH, | ||
59 : | const IMAGE * const pRefV, | ||
60 : | const IMAGE * const pRefHV, | ||
61 : | const IMAGE * const pGMC, | ||
62 : | const uint32_t iLimit); | ||
63 : | |||
64 : | void | ||
65 : | MotionEstimationBVOP(MBParam * const pParam, | ||
66 : | syskin | 904 | FRAMEINFO * const frame, |
67 : | const int32_t time_bp, | ||
68 : | const int32_t time_pp, | ||
69 : | const MACROBLOCK * const f_mbs, | ||
70 : | const IMAGE * const f_ref, | ||
71 : | const IMAGE * const f_refH, | ||
72 : | const IMAGE * const f_refV, | ||
73 : | const IMAGE * const f_refHV, | ||
74 : | const FRAMEINFO * const b_reference, | ||
75 : | const IMAGE * const b_ref, | ||
76 : | const IMAGE * const b_refH, | ||
77 : | const IMAGE * const b_refV, | ||
78 : | const IMAGE * const b_refHV); | ||
79 : | chl | 326 | |
80 : | edgomez | 1382 | void |
81 : | GMEanalysis(const MBParam * const pParam, | ||
82 : | const FRAMEINFO * const current, | ||
83 : | const FRAMEINFO * const reference, | ||
84 : | const IMAGE * const pRefH, | ||
85 : | const IMAGE * const pRefV, | ||
86 : | const IMAGE * const pRefHV); | ||
87 : | |||
88 : | WARPPOINTS | ||
89 : | GlobalMotionEst(MACROBLOCK * const pMBs, | ||
90 : | const MBParam * const pParam, | ||
91 : | const FRAMEINFO * const current, | ||
92 : | const FRAMEINFO * const reference, | ||
93 : | const IMAGE * const pRefH, | ||
94 : | const IMAGE * const pRefV, | ||
95 : | const IMAGE * const pRefHV); | ||
96 : | |||
97 : | int | ||
98 : | GlobalMotionEstRefine( | ||
99 : | WARPPOINTS *const startwp, | ||
100 : | MACROBLOCK * const pMBs, | ||
101 : | const MBParam * const pParam, | ||
102 : | const FRAMEINFO * const current, | ||
103 : | const FRAMEINFO * const reference, | ||
104 : | const IMAGE * const pCurr, | ||
105 : | const IMAGE * const pRef, | ||
106 : | const IMAGE * const pRefH, | ||
107 : | const IMAGE * const pRefV, | ||
108 : | const IMAGE * const pRefHV); | ||
109 : | |||
110 : | int | ||
111 : | globalSAD(const WARPPOINTS *const wp, | ||
112 : | const MBParam * const pParam, | ||
113 : | const MACROBLOCK * const pMBs, | ||
114 : | const FRAMEINFO * const current, | ||
115 : | const IMAGE * const pRef, | ||
116 : | const IMAGE * const pCurr, | ||
117 : | uint8_t *const GMCblock); | ||
118 : | |||
119 : | |||
120 : | int | ||
121 : | MEanalysis( const IMAGE * const pRef, | ||
122 : | const FRAMEINFO * const Current, | ||
123 : | const MBParam * const pParam, | ||
124 : | const int maxIntra, | ||
125 : | const int intraCount, | ||
126 : | const int bCount, | ||
127 : | const int b_thresh, | ||
128 : | const MACROBLOCK * const prev_mbs); | ||
129 : | |||
130 : | /** MotionCompensation **/ | ||
131 : | |||
132 : | void | ||
133 : | MBMotionCompensation(MACROBLOCK * const mb, | ||
134 : | const uint32_t i, | ||
135 : | const uint32_t j, | ||
136 : | const IMAGE * const ref, | ||
137 : | const IMAGE * const refh, | ||
138 : | const IMAGE * const refv, | ||
139 : | const IMAGE * const refhv, | ||
140 : | const IMAGE * const refGMC, | ||
141 : | IMAGE * const cur, | ||
142 : | int16_t * dct_codes, | ||
143 : | const uint32_t width, | ||
144 : | const uint32_t height, | ||
145 : | const uint32_t edged_width, | ||
146 : | const int32_t quarterpel, | ||
147 : | const int32_t rounding); | ||
148 : | |||
149 : | void | ||
150 : | MBMotionCompensationBVOP(MBParam * pParam, | ||
151 : | syskin | 904 | MACROBLOCK * const mb, |
152 : | const uint32_t i, | ||
153 : | const uint32_t j, | ||
154 : | IMAGE * const cur, | ||
155 : | const IMAGE * const f_ref, | ||
156 : | const IMAGE * const f_refh, | ||
157 : | const IMAGE * const f_refv, | ||
158 : | const IMAGE * const f_refhv, | ||
159 : | const IMAGE * const b_ref, | ||
160 : | const IMAGE * const b_refh, | ||
161 : | const IMAGE * const b_refv, | ||
162 : | const IMAGE * const b_refhv, | ||
163 : | int16_t * dct_codes); | ||
164 : | |||
165 : | chl | 326 | #endif /* _MOTION_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |