318 |
Data8->RefP[2] = Data->RefP[2] + 8*((i&1) + (i>>1)*Data->iEdgedWidth); |
Data8->RefP[2] = Data->RefP[2] + 8*((i&1) + (i>>1)*Data->iEdgedWidth); |
319 |
Data8->RefP[1] = Data->RefP[1] + 8*((i&1) + (i>>1)*Data->iEdgedWidth); |
Data8->RefP[1] = Data->RefP[1] + 8*((i&1) + (i>>1)*Data->iEdgedWidth); |
320 |
Data8->RefP[3] = Data->RefP[3] + 8*((i&1) + (i>>1)*Data->iEdgedWidth); |
Data8->RefP[3] = Data->RefP[3] + 8*((i&1) + (i>>1)*Data->iEdgedWidth); |
321 |
*Data8->cbp = (Data->cbp[1] & (1<<(5-i))) ? 1:0; // copy corresponding cbp bit |
*Data8->cbp = (Data->cbp[1] & (1<<(5-i))) ? 1:0; /* copy corresponding cbp bit */ |
322 |
|
|
323 |
if(Data->qpel) { |
if(Data->qpel) { |
324 |
Data8->predMV = get_qpmv2(pMBs, pParam->mb_width, 0, x, y, i); |
Data8->predMV = get_qpmv2(pMBs, pParam->mb_width, 0, x, y, i); |
586 |
pMB->pmvs[0].y = Data->currentMV[0].y - Data->predMV.y; |
pMB->pmvs[0].y = Data->currentMV[0].y - Data->predMV.y; |
587 |
} |
} |
588 |
|
|
589 |
} else if (mode == MODE_INTER ) { // but mcsel == 1 |
} else if (mode == MODE_INTER ) { /* but mcsel == 1 */ |
590 |
|
|
591 |
pMB->mcsel = 1; |
pMB->mcsel = 1; |
592 |
if (Data->qpel) { |
if (Data->qpel) { |
734 |
thresh = 0; |
thresh = 0; |
735 |
|
|
736 |
if((x > 0) && (y > 0) && (x < (int32_t) pParam->mb_width)) { |
if((x > 0) && (y > 0) && (x < (int32_t) pParam->mb_width)) { |
737 |
left = (&pMBs[(x-1) + y * pParam->mb_width])->sad16; // left |
left = (&pMBs[(x-1) + y * pParam->mb_width])->sad16; /* left */ |
738 |
top = (&pMBs[x + (y-1) * pParam->mb_width])->sad16; // top |
top = (&pMBs[x + (y-1) * pParam->mb_width])->sad16; /* top */ |
739 |
top_right = (&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16; // top right |
top_right = (&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16; /* top right */ |
740 |
|
|
741 |
if(((&pMBs[(x-1) + y * pParam->mb_width])->mode != MODE_INTRA) && |
if(((&pMBs[(x-1) + y * pParam->mb_width])->mode != MODE_INTRA) && |
742 |
((&pMBs[x + (y-1) * pParam->mb_width])->mode != MODE_INTRA) && |
((&pMBs[x + (y-1) * pParam->mb_width])->mode != MODE_INTRA) && |
844 |
pMB->pmvs[0].y = Data->currentMV[0].y - Data->predMV.y; |
pMB->pmvs[0].y = Data->currentMV[0].y - Data->predMV.y; |
845 |
} |
} |
846 |
|
|
847 |
} else if (mode == MODE_INTER ) { // but mcsel == 1 |
} else if (mode == MODE_INTER ) { /* but mcsel == 1 */ |
848 |
|
|
849 |
pMB->mcsel = 1; |
pMB->mcsel = 1; |
850 |
if (Data->qpel) { |
if (Data->qpel) { |