[svn] / trunk / xvidcore / examples / xvid_bench.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/examples/xvid_bench.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1629, Fri Aug 5 20:49:23 2005 UTC revision 1638, Tue Sep 20 11:51:40 2005 UTC
# Line 19  Line 19 
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    
# Line 1447  Line 1447 
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;
# Line 1466  Line 1466 
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;

Legend:
Removed from v.1629  
changed lines
  Added in v.1638

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4