Changeset 9369 for trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc
- Timestamp:
- 03/01/09 21:54:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmovie/MMovieWrite.cc
r9303 r9369 290 290 } 291 291 292 #ifdef USE_TIMING 292 293 TStopwatch clockT, clock1, clock2, clock3; 294 #endif 293 295 294 296 // -------------------------------------------------------------------------- … … 304 306 } 305 307 308 #ifdef USE_TIMING 306 309 *fLog << all << endl; 307 310 *fLog << "Snap: " << flush; … … 314 317 clockT.Print(); 315 318 *fLog << endl; 319 #endif 316 320 317 321 return kTRUE; … … 338 342 339 343 double r[6] = {1.0, 1.0, 1.0, 0.85, 0.1, 0.0 }; 340 double g[6] = {1.0, 1.0, 1.0, 0. 0,0.1, 0.0 };341 double b[6] = {0.9, 0.55, 0.4, 0. 0,0.7, 0.1 };344 double g[6] = {1.0, 1.0, 1.0, 0.15, 0.1, 0.0 }; 345 double b[6] = {0.9, 0.55, 0.4, 0.15, 0.7, 0.1 }; 342 346 343 347 TArrayI col(99); … … 481 485 UInt_t *argb = img.GetArgbArray(); 482 486 for (UInt_t *ptr=argb; ptr<argb+img.GetWidth()*img.GetHeight(); ptr++) 483 fwrite(ptr, 1, 3, fPipe); 487 if (fwrite(ptr, 3, 1, fPipe)!=1) 488 break; 484 489 485 490 return CheckPipe(); … … 493 498 Bool_t MMovieWrite::WriteImage(TASImage &img, TVirtualPad &pad) 494 499 { 500 #ifdef USE_TIMING 495 501 clock1.Start(kFALSE); 496 502 UpdateImage(img, pad); … … 502 508 503 509 return rc; 510 #else 511 UpdateImage(img, pad); 512 return WriteImage(img); 513 #endif 504 514 } 505 515 … … 524 534 continue; 525 535 526 const MGeom Pix&gpix = (*fCam)[i];536 const MGeom &gpix = (*fCam)[i]; 527 537 528 538 Int_t num = 0; … … 572 582 continue; 573 583 574 const MGeom Pix&gpix = (*fCam)[i];584 const MGeom &gpix = (*fCam)[i]; 575 585 576 586 // … … 671 681 Int_t MMovieWrite::Process() 672 682 { 683 #ifdef USE_TIMING 673 684 clockT.Start(kFALSE); 674 685 675 686 clock3.Start(kFALSE); 676 687 #endif 677 688 // ---------------- Prepare display ------------------ 678 689 … … 802 813 // ---------------- Show data ------------------ 803 814 gStyle->SetOptStat(1000000001); 804 /* 815 /* 805 816 p0.Modified(); 806 817 p1.Modified(); … … 815 826 816 827 // ---------------- Show data ------------------ 817 828 #ifdef USE_TIMING 818 829 clock3.Stop(); 830 #endif 819 831 820 832 // Switch off automatical adding to directory (SetName would do) … … 827 839 TH1::AddDirectory(add); 828 840 841 #ifdef USE_TIMING 829 842 clockT.Stop(); 843 #endif 830 844 831 845 gROOT->SetBatch(batch);
Note:
See TracChangeset
for help on using the changeset viewer.