Habsburg

Untitled

Mar 14th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. // BLin
  2. m_demosaicAlgBLin->SetUsingSSE(false);
  3. start = std::chrono::steady_clock::now();
  4.  
  5. m_imageProcApi->ExecuteAlgorithm(m_demosaicAlgBLin, m_adjustGainBitmap, m_demosaicBitmapBLin, m_demosaicParamsBLin);
  6.  
  7. end = std::chrono::steady_clock::now();
  8. auto BLinSSE = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
  9.  
  10.  
  11. m_demosaicAlgBLin->SetUsingSSE(true);
  12. start = std::chrono::steady_clock::now();
  13.  
  14. m_imageProcApi->ExecuteAlgorithm(m_demosaicAlgBLin, m_adjustGainBitmap, m_demosaicBitmapBLin, m_demosaicParamsBLin);
  15.  
  16. end = std::chrono::steady_clock::now();
  17. auto BLin = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
  18.  
  19.  
  20. // HQ
  21. m_demosaicAlgHQ->SetUsingSSE(false);
  22. start = std::chrono::steady_clock::now();
  23.  
  24. m_imageProcApi->ExecuteAlgorithm(m_demosaicAlgHQ, m_adjustGainBitmap, m_demosaicBitmapHQ, m_demosaicParamsHQ);
  25.  
  26. end = std::chrono::steady_clock::now();
  27. auto HQSSE = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
  28.  
  29.  
  30. m_demosaicAlgHQ->SetUsingSSE(true);
  31. start = std::chrono::steady_clock::now();
  32.  
  33. m_imageProcApi->ExecuteAlgorithm(m_demosaicAlgHQ, m_adjustGainBitmap, m_demosaicBitmapHQ, m_demosaicParamsHQ);
  34.  
  35. end = std::chrono::steady_clock::now();
  36. auto HQ = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count();
  37.  
  38. std::ofstream myfile("example.txt", std::ios::app);
  39. //myfile << BLin << "," << BLinSSE << "," << HQ << "," << HQSSE << "\n";
  40. myfile.flush();
  41. myfile.close();
Advertisement
Add Comment
Please, Sign In to add comment