Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
961 B

  1. /******************************************************************************
  2. * VqTable.h *
  3. *-----------*
  4. *
  5. *------------------------------------------------------------------------------
  6. * Copyright (C) 2000 Microsoft Corporation Date: 03/02/00 - 12/4/00
  7. * All Rights Reserved
  8. *
  9. ********************************************************************* mplumpe ***/
  10. #ifndef __VQTABLE_H_
  11. #define __VQTABLE_H_
  12. #include <stdio.h>
  13. class CVqTable
  14. {
  15. public:
  16. CVqTable();
  17. ~CVqTable();
  18. int LoadFromFile (FILE* fin);
  19. void Scale (double dContWeight);
  20. int Write (FILE* fin);
  21. int Dimension ();
  22. inline float& Element(int i, int j)
  23. {
  24. return m_ppfValue[i][j];
  25. };
  26. private:
  27. float *m_pfValue; // Data
  28. float **m_ppfValue; // pointers into the table
  29. int m_iDim; // The data is a square matrix dim x dim
  30. float m_fOldWeight;
  31. };
  32. #endif