413 |
{ |
{ |
414 |
|
|
415 |
if (frame->coding_type == P_VOP) { |
if (frame->coding_type == P_VOP) { |
|
if (pMB->cbp == 0 && pMB->mode == MODE_INTER && pMB->mvs[0].x == 0 && |
|
|
pMB->mvs[0].y == 0) { |
|
|
|
|
|
#ifdef _DISABLE_SKIP |
|
|
/* disable SKIP when Bframes active until some workaround for the B-SKIP problem is found */ |
|
|
BitstreamPutBit(bs, 0); // always coded! |
|
|
#else |
|
|
BitstreamPutBit(bs, 1); // not_coded |
|
|
|
|
|
return; |
|
|
#endif |
|
|
} else |
|
416 |
BitstreamPutBit(bs, 0); // coded |
BitstreamPutBit(bs, 0); // coded |
417 |
} |
} |
418 |
|
|
423 |
|
|
424 |
} |
} |
425 |
|
|
426 |
|
|
427 |
|
void |
428 |
|
MBSkip(Bitstream * bs) |
429 |
|
{ |
430 |
|
BitstreamPutBit(bs, 1); // not coded |
431 |
|
return; |
432 |
|
} |
433 |
|
|
434 |
|
|
435 |
/*************************************************************** |
/*************************************************************** |
436 |
* bframe encoding start |
* bframe encoding start |
437 |
***************************************************************/ |
***************************************************************/ |