21 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
22 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
* |
* |
24 |
* $Id: encoder.c,v 1.95.2.38 2003-08-07 15:41:33 chl Exp $ |
* $Id: encoder.c,v 1.95.2.39 2003-08-22 16:11:58 edgomez Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
1568 |
|
|
1569 |
current->sStat.kblks++; |
current->sStat.kblks++; |
1570 |
|
|
1571 |
|
if (pEnc->current->vop_flags & XVID_VOP_GREYSCALE) |
1572 |
|
{ pMB->cbp &= 0x3C; /* keep only bits 5-2 */ |
1573 |
|
qcoeff[4*64+0]=0; /* zero, because for INTRA MBs DC value is saved */ |
1574 |
|
qcoeff[5*64+0]=0; |
1575 |
|
} |
1576 |
MBCoding(current, pMB, qcoeff, bs, ¤t->sStat); |
MBCoding(current, pMB, qcoeff, bs, ¤t->sStat); |
1577 |
stop_coding_timer(); |
stop_coding_timer(); |
1578 |
continue; |
continue; |
1899 |
} |
} |
1900 |
} |
} |
1901 |
|
|
1902 |
#ifdef BFRAMES_DEC_DEBUG |
/* keep only bits 5-2 -- Chroma blocks will just be skipped by the |
1903 |
BFRAME_DEBUG |
* coding function for BFrames, that's why we don't zero teh DC |
1904 |
#endif |
* coeffs */ |
1905 |
|
if ((frame->vop_flags & XVID_VOP_GREYSCALE)) |
1906 |
|
mb->cbp &= 0x3C; |
1907 |
|
|
1908 |
start_timer(); |
start_timer(); |
1909 |
MBCodingBVOP(mb, qcoeff, frame->fcode, frame->bcode, bs, |
MBCodingBVOP(mb, qcoeff, frame->fcode, frame->bcode, bs, |
1910 |
&frame->sStat, direction); |
&frame->sStat, direction); |