/src/pyglue/PyTransform.h

http://github.com/imageworks/OpenColorIO · C Header · 81 lines · 36 code · 17 blank · 28 comment · 0 complexity · 310149b215a5ee0acfbde99072bec6cf MD5 · raw file

  1. /*
  2. Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
  3. All Rights Reserved.
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions are
  6. met:
  7. * Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12. * Neither the name of Sony Pictures Imageworks nor the names of its
  13. contributors may be used to endorse or promote products derived from
  14. this software without specific prior written permission.
  15. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  16. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  17. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  18. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  19. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  20. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  21. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  23. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  25. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. #ifndef INCLUDED_PYOCIO_PYTRANSFORM_H
  28. #define INCLUDED_PYOCIO_PYTRANSFORM_H
  29. #include <PyOpenColorIO/PyOpenColorIO.h>
  30. OCIO_NAMESPACE_ENTER
  31. {
  32. // TODO: Maybe put this in a pyinternal namespace?
  33. typedef struct {
  34. PyObject_HEAD
  35. ConstTransformRcPtr * constcppobj;
  36. TransformRcPtr * cppobj;
  37. bool isconst;
  38. } PyOCIO_Transform;
  39. extern PyTypeObject PyOCIO_TransformType;
  40. bool AddTransformObjectToModule( PyObject* m );
  41. extern PyTypeObject PyOCIO_AllocationTransformType;
  42. bool AddAllocationTransformObjectToModule( PyObject* m );
  43. extern PyTypeObject PyOCIO_CDLTransformType;
  44. bool AddCDLTransformObjectToModule( PyObject* m );
  45. extern PyTypeObject PyOCIO_ColorSpaceTransformType;
  46. bool AddColorSpaceTransformObjectToModule( PyObject* m );
  47. extern PyTypeObject PyOCIO_DisplayTransformType;
  48. bool AddDisplayTransformObjectToModule( PyObject* m );
  49. extern PyTypeObject PyOCIO_ExponentTransformType;
  50. bool AddExponentTransformObjectToModule( PyObject* m );
  51. extern PyTypeObject PyOCIO_FileTransformType;
  52. bool AddFileTransformObjectToModule( PyObject* m );
  53. extern PyTypeObject PyOCIO_GroupTransformType;
  54. bool AddGroupTransformObjectToModule( PyObject* m );
  55. extern PyTypeObject PyOCIO_LogTransformType;
  56. bool AddLogTransformObjectToModule( PyObject* m );
  57. extern PyTypeObject PyOCIO_LookTransformType;
  58. bool AddLookTransformObjectToModule( PyObject* m );
  59. extern PyTypeObject PyOCIO_MatrixTransformType;
  60. bool AddMatrixTransformObjectToModule( PyObject* m );
  61. }
  62. OCIO_NAMESPACE_EXIT
  63. #endif