SupportQ7.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #include "SupportQ7.h"
  2. #include "Error.h"
  3. void SupportQ7::test_copy_q7()
  4. {
  5. }
  6. void SupportQ7::test_fill_q7()
  7. {
  8. }
  9. void SupportQ7::test_q15_to_q7()
  10. {
  11. }
  12. void SupportQ7::test_q31_to_q7()
  13. {
  14. }
  15. void SupportQ7::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr)
  16. {
  17. std::vector<Testing::param_t>::iterator it = params.begin();
  18. this->nbSamples = *it;
  19. output.create(this->nbSamples,SupportQ7::OUT_SAMPLES_Q7_ID,mgr);
  20. switch(id)
  21. {
  22. case TEST_COPY_Q7_1:
  23. case TEST_FILL_Q7_2:
  24. samples.reload(SupportQ7::SAMPLES_Q7_ID,mgr,this->nbSamples);
  25. this->pSrc=samples.ptr();
  26. break;
  27. case TEST_Q31_TO_Q7_3:
  28. samplesQ31.reload(SupportQ7::SAMPLES_Q31_ID,mgr,this->nbSamples);
  29. this->pSrcQ31=samplesQ31.ptr();
  30. break;
  31. case TEST_Q15_TO_Q7_4:
  32. samplesQ15.reload(SupportQ7::SAMPLES_Q15_ID,mgr,this->nbSamples);
  33. this->pSrcQ15=samplesQ15.ptr();
  34. break;
  35. }
  36. this->pDst=output.ptr();
  37. }
  38. void SupportQ7::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  39. {
  40. }