1 |
/************************************************************************** |
/***************************************************************************** |
2 |
* |
* |
3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Motion header - |
* - Motion module header - |
5 |
|
* |
6 |
|
* Copyright(C) 2002-2003 Radoslaw Czyz <xvid@syskin.cjb.net> |
7 |
|
* 2002 Michael Militzer <michael@xvid.org> |
8 |
* |
* |
|
* This program is an implementation of a part of one or more MPEG-4 |
|
|
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
|
|
* to use this software module in hardware or software products are |
|
|
* advised that its use may infringe existing patents or copyrights, and |
|
|
* any such use would be at such party's own risk. The original |
|
|
* developer of this software module and his/her company, and subsequent |
|
|
* editors and their companies, will have no liability for use of this |
|
|
* software or modifications or derivatives thereof. |
|
9 |
* |
* |
10 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
11 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
47 |
|
|
48 |
/** MotionEstimation **/ |
/** MotionEstimation **/ |
49 |
|
|
50 |
bool MotionEstimation(MBParam * const pParam, |
void MotionEstimation(MBParam * const pParam, |
51 |
FRAMEINFO * const current, |
FRAMEINFO * const current, |
52 |
FRAMEINFO * const reference, |
FRAMEINFO * const reference, |
53 |
const IMAGE * const pRefH, |
const IMAGE * const pRefH, |
54 |
const IMAGE * const pRefV, |
const IMAGE * const pRefV, |
55 |
const IMAGE * const pRefHV, |
const IMAGE * const pRefHV, |
56 |
const IMAGE * const pGMC, |
const IMAGE * const pGMC, |
57 |
const uint32_t iLimit); |
const uint32_t iLimit, |
58 |
|
const int num_slices); |
59 |
|
|
60 |
void |
void |
61 |
MotionEstimationBVOP(MBParam * const pParam, |
MotionEstimationBVOP(MBParam * const pParam, |
71 |
const IMAGE * const b_ref, |
const IMAGE * const b_ref, |
72 |
const IMAGE * const b_refH, |
const IMAGE * const b_refH, |
73 |
const IMAGE * const b_refV, |
const IMAGE * const b_refV, |
74 |
const IMAGE * const b_refHV); |
const IMAGE * const b_refHV, |
75 |
|
const int num_slices); |
76 |
|
|
77 |
void |
void |
78 |
GMEanalysis(const MBParam * const pParam, |
GMEanalysis(const MBParam * const pParam, |
80 |
const FRAMEINFO * const reference, |
const FRAMEINFO * const reference, |
81 |
const IMAGE * const pRefH, |
const IMAGE * const pRefH, |
82 |
const IMAGE * const pRefV, |
const IMAGE * const pRefV, |
83 |
const IMAGE * const pRefHV); |
const IMAGE * const pRefHV, |
84 |
|
const int num_slices); |
85 |
|
|
86 |
WARPPOINTS |
WARPPOINTS |
87 |
GlobalMotionEst(MACROBLOCK * const pMBs, |
GlobalMotionEst(MACROBLOCK * const pMBs, |
90 |
const FRAMEINFO * const reference, |
const FRAMEINFO * const reference, |
91 |
const IMAGE * const pRefH, |
const IMAGE * const pRefH, |
92 |
const IMAGE * const pRefV, |
const IMAGE * const pRefV, |
93 |
const IMAGE * const pRefHV); |
const IMAGE * const pRefHV, |
94 |
|
const int num_slices); |
95 |
|
|
96 |
int |
int |
97 |
GlobalMotionEstRefine( |
GlobalMotionEstRefine( |
143 |
const uint32_t height, |
const uint32_t height, |
144 |
const uint32_t edged_width, |
const uint32_t edged_width, |
145 |
const int32_t quarterpel, |
const int32_t quarterpel, |
146 |
const int reduced_resolution, |
const int32_t rounding, |
147 |
const int32_t rounding); |
uint8_t * const tmp); |
148 |
|
|
149 |
void |
void |
150 |
MBMotionCompensationBVOP(MBParam * pParam, |
MBMotionCompensationBVOP(MBParam * pParam, |
160 |
const IMAGE * const b_refh, |
const IMAGE * const b_refh, |
161 |
const IMAGE * const b_refv, |
const IMAGE * const b_refv, |
162 |
const IMAGE * const b_refhv, |
const IMAGE * const b_refhv, |
163 |
int16_t * dct_codes); |
int16_t * dct_codes, |
164 |
|
uint8_t * const tmp); |
165 |
|
|
166 |
#endif /* _MOTION_H_ */ |
#endif /* _MOTION_H_ */ |