39 |
* MinChen <chenm001@163.com> |
* MinChen <chenm001@163.com> |
40 |
* 14.04.2002 added FrameCodeB() |
* 14.04.2002 added FrameCodeB() |
41 |
* |
* |
42 |
* $Id: encoder.c,v 1.76.2.26 2002-12-09 10:47:05 suxen_drol Exp $ |
* $Id: encoder.c,v 1.76.2.28 2002-12-11 10:47:43 syskin Exp $ |
43 |
* |
* |
44 |
****************************************************************************/ |
****************************************************************************/ |
45 |
|
|
1590 |
stop_coding_timer(); |
stop_coding_timer(); |
1591 |
} |
} |
1592 |
|
|
1593 |
|
if ((pEnc->current->global_flags & XVID_REDUCED)) |
1594 |
|
{ |
1595 |
|
image_deblock_rrv(&pEnc->current->image, pEnc->mbParam.edged_width, |
1596 |
|
pEnc->current->mbs, mb_width, mb_height, pEnc->mbParam.mb_width); |
1597 |
|
} |
1598 |
emms(); |
emms(); |
1599 |
|
|
1600 |
*pBits = BitstreamPos(bs) - *pBits; |
*pBits = BitstreamPos(bs) - *pBits; |
1637 |
|
|
1638 |
if ((pEnc->current->global_flags & XVID_REDUCED)) |
if ((pEnc->current->global_flags & XVID_REDUCED)) |
1639 |
{ |
{ |
1640 |
// mb_width = (pEnc->mbParam.width + 31) / 32; |
mb_width = (pEnc->mbParam.width + 31) / 32; |
1641 |
// mb_height = (pEnc->mbParam.height + 31) / 32; |
mb_height = (pEnc->mbParam.height + 31) / 32; |
|
|
|
|
/* XXX: reduced resoltion not yet supported */ |
|
|
pEnc->current->global_flags &= ~XVID_REDUCED; |
|
1642 |
} |
} |
1643 |
|
|
1644 |
|
|
1678 |
if (pEnc->current->global_flags & XVID_HINTEDME_SET) { |
if (pEnc->current->global_flags & XVID_HINTEDME_SET) { |
1679 |
HintedMESet(pEnc, &bIntra); |
HintedMESet(pEnc, &bIntra); |
1680 |
if (bIntra == 0) { |
if (bIntra == 0) { |
|
pEnc->current->fcode = FindFcode(&pEnc->mbParam, pEnc->current); |
|
1681 |
MotionEstimationHinted(&pEnc->mbParam, pEnc->current, pEnc->reference, |
MotionEstimationHinted(&pEnc->mbParam, pEnc->current, pEnc->reference, |
1682 |
&pEnc->vInterH, &pEnc->vInterV, &pEnc->vInterHV); |
&pEnc->vInterH, &pEnc->vInterV, &pEnc->vInterHV); |
1683 |
} |
} |
1835 |
} |
} |
1836 |
} |
} |
1837 |
|
|
1838 |
|
if ((pEnc->current->global_flags & XVID_REDUCED)) |
1839 |
|
{ |
1840 |
|
image_deblock_rrv(&pEnc->current->image, pEnc->mbParam.edged_width, |
1841 |
|
pEnc->current->mbs, mb_width, mb_height, pEnc->mbParam.mb_width); |
1842 |
|
} |
1843 |
|
|
1844 |
emms(); |
emms(); |
1845 |
|
|
1846 |
if (pEnc->current->global_flags & XVID_HINTEDME_GET) { |
if (pEnc->current->global_flags & XVID_HINTEDME_GET) { |
1909 |
} |
} |
1910 |
*/ |
*/ |
1911 |
|
|
1912 |
|
|
1913 |
*pBits = BitstreamPos(bs) - *pBits; |
*pBits = BitstreamPos(bs) - *pBits; |
1914 |
|
|
1915 |
return 0; // inter |
return 0; // inter |