~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to src/image.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
void Image::merge()
295
295
{
296
296
  MPI_Request requests[3];
297
 
  MPI_Status statuses[3];
298
297
 
299
298
  int nhalf = 1;
300
299
  while (nhalf < nprocs) nhalf *= 2;
307
306
      if (ssao)
308
307
        MPI_Irecv(surfacecopy,npixels*2,MPI_DOUBLE,
309
308
                  me+nhalf,0,world,&requests[2]);
310
 
      if (ssao) MPI_Waitall(3,requests,statuses);
311
 
      else MPI_Waitall(2,requests,statuses);
 
309
      if (ssao) MPI_Waitall(3,requests,MPI_STATUS_IGNORE);
 
310
      else MPI_Waitall(2,requests,MPI_STATUS_IGNORE);
312
311
 
313
312
      for (int i = 0; i < npixels; i++) {
314
313
        if (depthBuffer[i] < 0 || (depthcopy[i] >= 0 &&
1007
1006
  cinfo.in_color_space = JCS_RGB;
1008
1007
 
1009
1008
  jpeg_set_defaults(&cinfo);
1010
 
  jpeg_set_quality(&cinfo,85,true);
1011
 
  jpeg_start_compress(&cinfo,true);
 
1009
  jpeg_set_quality(&cinfo,85,TRUE);
 
1010
  jpeg_start_compress(&cinfo,TRUE);
1012
1011
 
1013
1012
  while (cinfo.next_scanline < cinfo.image_height) {
1014
1013
    row_pointer = (JSAMPROW)