37 |
* MinChen <chenm001@163.com> |
* MinChen <chenm001@163.com> |
38 |
* 14.04.2002 added FrameCodeB() |
* 14.04.2002 added FrameCodeB() |
39 |
* |
* |
40 |
* $Id: encoder.c,v 1.51 2002-06-30 10:46:29 suxen_drol Exp $ |
* $Id: encoder.c,v 1.52 2002-07-06 17:04:57 chl Exp $ |
41 |
* |
* |
42 |
****************************************************************************/ |
****************************************************************************/ |
43 |
|
|
66 |
#include "quant/quant_matrix.h" |
#include "quant/quant_matrix.h" |
67 |
#include "utils/mem_align.h" |
#include "utils/mem_align.h" |
68 |
|
|
69 |
|
#ifdef _SMP |
70 |
|
#include "motion/smp_motion_est.h" |
71 |
|
#endif |
72 |
/***************************************************************************** |
/***************************************************************************** |
73 |
* Local macros |
* Local macros |
74 |
****************************************************************************/ |
****************************************************************************/ |
1594 |
if (pEnc->current->global_flags & XVID_HINTEDME_SET) { |
if (pEnc->current->global_flags & XVID_HINTEDME_SET) { |
1595 |
HintedMESet(pEnc, &bIntra); |
HintedMESet(pEnc, &bIntra); |
1596 |
} else { |
} else { |
1597 |
|
|
1598 |
|
#ifdef _SMP |
1599 |
|
if (NUMTHREADS > 1) |
1600 |
|
bIntra = |
1601 |
|
SMP_MotionEstimation(&pEnc->mbParam, pEnc->current, pEnc->reference, |
1602 |
|
&pEnc->vInterH, &pEnc->vInterV, &pEnc->vInterHV, |
1603 |
|
iLimit); |
1604 |
|
else |
1605 |
|
#endif |
1606 |
|
|
1607 |
bIntra = |
bIntra = |
1608 |
MotionEstimation(&pEnc->mbParam, pEnc->current, pEnc->reference, |
MotionEstimation(&pEnc->mbParam, pEnc->current, pEnc->reference, |
1609 |
&pEnc->vInterH, &pEnc->vInterV, &pEnc->vInterHV, |
&pEnc->vInterH, &pEnc->vInterV, &pEnc->vInterHV, |
1610 |
iLimit); |
iLimit); |
1611 |
|
|
1612 |
|
|
1613 |
} |
} |
1614 |
stop_motion_timer(); |
stop_motion_timer(); |
1615 |
|
|