19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid_bench.c,v 1.23 2005-08-05 20:49:23 Skal Exp $ |
* $Id: xvid_bench.c,v 1.24 2005-09-20 11:51:40 suxen_drol Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
1447 |
xframe.bitstream = buf + pos; |
xframe.bitstream = buf + pos; |
1448 |
xframe.length = buf_size - pos; |
xframe.length = buf_size - pos; |
1449 |
xframe.output.plane[0] = (uint8_t*)(((size_t)yuv_out + 15) & ~15); |
xframe.output.plane[0] = (uint8_t*)(((size_t)yuv_out + 15) & ~15); |
1450 |
xframe.output.plane[1] = xframe.output.plane[0] + bps*height; |
xframe.output.plane[1] = (uint8_t*)xframe.output.plane[0] + bps*height; |
1451 |
xframe.output.plane[2] = xframe.output.plane[1] + bps/2; |
xframe.output.plane[2] = (uint8_t*)xframe.output.plane[1] + bps/2; |
1452 |
xframe.output.stride[0] = bps; |
xframe.output.stride[0] = bps; |
1453 |
xframe.output.stride[1] = bps; |
xframe.output.stride[1] = bps; |
1454 |
xframe.output.stride[2] = bps; |
xframe.output.stride[2] = bps; |
1466 |
nb++; |
nb++; |
1467 |
|
|
1468 |
for(y=0; y<height/2; ++y) { |
for(y=0; y<height/2; ++y) { |
1469 |
chksum = calc_crc(xframe.output.plane[0] + (2*y+0)*bps, width, chksum); |
chksum = calc_crc((uint8_t*)xframe.output.plane[0] + (2*y+0)*bps, width, chksum); |
1470 |
chksum = calc_crc(xframe.output.plane[0] + (2*y+1)*bps, width, chksum); |
chksum = calc_crc((uint8_t*)xframe.output.plane[0] + (2*y+1)*bps, width, chksum); |
1471 |
chksum = calc_crc(xframe.output.plane[1] + y*bps, width/2, chksum); |
chksum = calc_crc((uint8_t*)xframe.output.plane[1] + y*bps, width/2, chksum); |
1472 |
chksum = calc_crc(xframe.output.plane[2] + y*bps, width/2, chksum); |
chksum = calc_crc((uint8_t*)xframe.output.plane[2] + y*bps, width/2, chksum); |
1473 |
} |
} |
1474 |
if (pos==buf_size) |
if (pos==buf_size) |
1475 |
break; |
break; |