26 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
28 |
* |
* |
29 |
* $Id: smp_motion_est.h,v 1.4 2003-02-15 15:22:19 edgomez Exp $ |
* $Id: smp_motion_est.h,v 1.4.2.1 2003-02-22 18:19:32 chl Exp $ |
30 |
* |
* |
31 |
***************************************************************************/ |
***************************************************************************/ |
32 |
|
|
35 |
|
|
36 |
#ifdef _SMP |
#ifdef _SMP |
37 |
|
|
38 |
#define MAXNUMTHREADS 16 |
#error SMP support has been removed until B-frame API is stable. |
|
|
|
|
//#define NUMTHREADS 2 |
|
|
|
|
|
typedef struct |
|
|
{ |
|
|
|
|
|
MBParam * pParam; |
|
|
|
|
|
FRAMEINFO* reference; |
|
|
FRAMEINFO* current; |
|
|
|
|
|
IMAGE* pRef; |
|
|
IMAGE* pRefH; |
|
|
IMAGE* pRefV; |
|
|
IMAGE* pRefHV; |
|
|
|
|
|
// int iLimit; /* currently unused */ |
|
|
|
|
|
MACROBLOCK * pMBs; |
|
|
MACROBLOCK * prevMBs; |
|
|
|
|
|
} globaldata; /* this data is the same for all threads */ |
|
|
|
|
|
typedef struct |
|
|
{ |
|
|
int id; |
|
|
|
|
|
int minx; |
|
|
int maxx; |
|
|
int miny; |
|
|
int maxy; |
|
|
|
|
|
globaldata *gdata; |
|
|
|
|
|
} jobdata; /* every thread get it's personal version of these */ |
|
|
|
|
|
|
|
|
void |
|
|
SMP_correct_pmv(int x, int y, int iWcount, MACROBLOCK* pMBs); |
|
|
|
|
|
void |
|
|
SMP_MotionEstimationWorker(jobdata *arg); |
|
|
|
|
|
bool |
|
|
SMP_MotionEstimation(MBParam * const pParam, |
|
|
FRAMEINFO * const current, |
|
|
FRAMEINFO * const reference, |
|
|
const IMAGE * const pRefH, |
|
|
const IMAGE * const pRefV, |
|
|
const IMAGE * const pRefHV, |
|
|
const uint32_t iLimit); |
|
|
|
|
|
#endif |
|
39 |
|
|
40 |
#endif |
#endif |