/src/core/OpBuilders.h

http://github.com/imageworks/OpenColorIO · C Header · 125 lines · 76 code · 21 blank · 28 comment · 0 complexity · a7308f5ad46a730e539b6ea2194eefc1 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_OCIO_OPBUILDERS_H
  28. #define INCLUDED_OCIO_OPBUILDERS_H
  29. #include <OpenColorIO/OpenColorIO.h>
  30. #include "Op.h"
  31. #include "LookParse.h"
  32. #include "PrivateTypes.h"
  33. OCIO_NAMESPACE_ENTER
  34. {
  35. void BuildOps(OpRcPtrVec & ops,
  36. const Config & config,
  37. const ConstContextRcPtr & context,
  38. const ConstTransformRcPtr & transform,
  39. TransformDirection dir);
  40. ////////////////////////////////////////////////////////////////////////
  41. void BuildAllocationOps(OpRcPtrVec & ops,
  42. const Config & config,
  43. const AllocationTransform & transform,
  44. TransformDirection dir);
  45. void BuildCDLOps(OpRcPtrVec & ops,
  46. const Config & config,
  47. const CDLTransform & transform,
  48. TransformDirection dir);
  49. void BuildColorSpaceOps(OpRcPtrVec & ops,
  50. const Config& config,
  51. const ConstContextRcPtr & context,
  52. const ColorSpaceTransform & transform,
  53. TransformDirection dir);
  54. void BuildColorSpaceOps(OpRcPtrVec & ops,
  55. const Config & config,
  56. const ConstContextRcPtr & context,
  57. const ConstColorSpaceRcPtr & srcColorSpace,
  58. const ConstColorSpaceRcPtr & dstColorSpace);
  59. void BuildDisplayOps(OpRcPtrVec & ops,
  60. const Config & config,
  61. const ConstContextRcPtr & context,
  62. const DisplayTransform & transform,
  63. TransformDirection dir);
  64. void BuildExponentOps(OpRcPtrVec & ops,
  65. const Config& config,
  66. const ExponentTransform & transform,
  67. TransformDirection dir);
  68. void BuildFileOps(OpRcPtrVec & ops,
  69. const Config& config,
  70. const ConstContextRcPtr & context,
  71. const FileTransform & transform,
  72. TransformDirection dir);
  73. void BuildGroupOps(OpRcPtrVec & ops,
  74. const Config& config,
  75. const ConstContextRcPtr & context,
  76. const GroupTransform & transform,
  77. TransformDirection dir);
  78. void BuildLogOps(OpRcPtrVec & ops,
  79. const Config& config,
  80. const LogTransform& transform,
  81. TransformDirection dir);
  82. void BuildLookOps(OpRcPtrVec & ops,
  83. const Config& config,
  84. const ConstContextRcPtr & context,
  85. const LookTransform & lookTransform,
  86. TransformDirection dir);
  87. void BuildLookOps(OpRcPtrVec & ops,
  88. ConstColorSpaceRcPtr & currentColorSpace,
  89. bool skipColorSpaceConversions,
  90. const Config& config,
  91. const ConstContextRcPtr & context,
  92. const LookParseResult & looks);
  93. void BuildMatrixOps(OpRcPtrVec & ops,
  94. const Config& config,
  95. const MatrixTransform & transform,
  96. TransformDirection dir);
  97. void BuildTruelightOps(OpRcPtrVec & ops,
  98. const Config & config,
  99. const TruelightTransform & transform,
  100. TransformDirection dir);
  101. }
  102. OCIO_NAMESPACE_EXIT
  103. #endif