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.27 2002-12-10 11:13:50 suxen_drol 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 |
|
|
1836 |
} |
} |
1837 |
} |
} |
1838 |
|
|
1839 |
|
if ((pEnc->current->global_flags & XVID_REDUCED)) |
1840 |
|
{ |
1841 |
|
image_deblock_rrv(&pEnc->current->image, pEnc->mbParam.edged_width, |
1842 |
|
pEnc->current->mbs, mb_width, mb_height, pEnc->mbParam.mb_width); |
1843 |
|
} |
1844 |
|
|
1845 |
emms(); |
emms(); |
1846 |
|
|
1847 |
if (pEnc->current->global_flags & XVID_HINTEDME_GET) { |
if (pEnc->current->global_flags & XVID_HINTEDME_GET) { |
1910 |
} |
} |
1911 |
*/ |
*/ |
1912 |
|
|
1913 |
|
|
1914 |
*pBits = BitstreamPos(bs) - *pBits; |
*pBits = BitstreamPos(bs) - *pBits; |
1915 |
|
|
1916 |
return 0; // inter |
return 0; // inter |