o3dgcDVEncodeParams.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. Copyright (c) 2013 Khaled Mammou - Advanced Micro Devices, Inc.
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  17. THE SOFTWARE.
  18. */
  19. #pragma once
  20. #ifndef O3DGC_DV_ENCODE_PARAMS_H
  21. #define O3DGC_DV_ENCODE_PARAMS_H
  22. #include "o3dgcCommon.h"
  23. namespace o3dgc
  24. {
  25. class DVEncodeParams
  26. {
  27. public:
  28. //! Constructor.
  29. DVEncodeParams(void)
  30. {
  31. m_quantBits = 10;
  32. m_streamTypeMode = O3DGC_STREAM_TYPE_ASCII;
  33. m_encodeMode = O3DGC_DYNAMIC_VECTOR_ENCODE_MODE_LIFT;
  34. };
  35. //! Destructor.
  36. ~DVEncodeParams(void) {};
  37. unsigned long GetQuantBits() const { return m_quantBits;}
  38. O3DGCStreamType GetStreamType() const { return m_streamTypeMode;}
  39. O3DGCDVEncodingMode GetEncodeMode() const { return m_encodeMode;}
  40. void SetQuantBits (unsigned long quantBits ) { m_quantBits = quantBits;}
  41. void SetStreamType(O3DGCStreamType streamTypeMode) { m_streamTypeMode = streamTypeMode;}
  42. void SetEncodeMode(O3DGCDVEncodingMode encodeMode ) { m_encodeMode = encodeMode ;}
  43. private:
  44. unsigned long m_quantBits;
  45. O3DGCStreamType m_streamTypeMode;
  46. O3DGCDVEncodingMode m_encodeMode;
  47. };
  48. }
  49. #endif // O3DGC_DV_ENCODE_PARAMS_H