CC_def.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* CC_def.h
  2. *
  3. * Copyright (C) 1993-2013 David Weenink
  4. *
  5. * This code is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * This code is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #define ooSTRUCT CC_Frame
  19. oo_DEFINE_STRUCT (CC_Frame)
  20. oo_INTEGER (numberOfCoefficients)
  21. #if oo_READING_BINARY
  22. oo_VERSION_UNTIL (1)
  23. oo_FLOAT (c0)
  24. oo_FLOAT_VECTOR (c, numberOfCoefficients)
  25. oo_VERSION_ELSE
  26. oo_DOUBLE (c0)
  27. oo_DOUBLE_VECTOR (c, numberOfCoefficients)
  28. oo_VERSION_END
  29. #else
  30. oo_DOUBLE (c0)
  31. oo_DOUBLE_VECTOR (c, numberOfCoefficients)
  32. #endif
  33. oo_END_STRUCT (CC_Frame)
  34. #undef ooSTRUCT
  35. #define ooSTRUCT CC
  36. oo_DEFINE_CLASS (CC, Sampled)
  37. oo_DOUBLE (fmin)
  38. oo_DOUBLE (fmax)
  39. // c[0]..c[maximumNumberOfCoefficients] ; needed for inverse transform
  40. oo_INTEGER (maximumNumberOfCoefficients)
  41. oo_STRUCT_VECTOR (CC_Frame, frame, nx)
  42. #if oo_DECLARING
  43. void v_info ()
  44. override;
  45. #endif
  46. oo_END_CLASS (CC)
  47. #undef ooSTRUCT
  48. /* End of file CC_def.h */