logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

opencolorio-1.1.0-fix-compile-error-with-Lut1DOp.cpp.patch (2786B)


  1. From 8d38317f68d0e4663abbccdceca0bcd41f3dcf4a Mon Sep 17 00:00:00 2001
  2. From: Patrick Hodoul <patrick.hodoul@autodesk.com>
  3. Date: Mon, 27 Nov 2017 17:29:57 -0500
  4. Subject: [PATCH 1/3] Fix compile error with Lut1DOp.cpp
  5. Fix Linux compilation
  6. Fix gcc 5.4.0 build breaks
  7. Fix the temp filename for Linux
  8. ---
  9. src/core/Lut1DOp.cpp | 4 +++-
  10. src/core/MathUtils.cpp | 23 ++++++++++++-----------
  11. src/pyglue/PyAllocationTransform.cpp | 1 -
  12. 3 files changed, 15 insertions(+), 13 deletions(-)
  13. diff --git a/src/core/Lut1DOp.cpp b/src/core/Lut1DOp.cpp
  14. index 404ee0b..180e30f 100644
  15. --- a/src/core/Lut1DOp.cpp
  16. +++ b/src/core/Lut1DOp.cpp
  17. @@ -188,7 +188,8 @@ OCIO_NAMESPACE_ENTER
  18. {
  19. return simple_lut[clamp(index, 0.0f, maxIndex)];
  20. }
  21. -
  22. +
  23. +#if defined(OCIO_UNIT_TEST) || !defined(USE_SSE)
  24. void Lut1D_Nearest(float* rgbaBuffer, long numPixels, const Lut1D & lut)
  25. {
  26. float maxIndex[3];
  27. @@ -218,6 +219,7 @@ OCIO_NAMESPACE_ENTER
  28. rgbaBuffer += 4;
  29. }
  30. }
  31. +#endif
  32. #ifdef USE_SSE
  33. void Lut1D_Nearest_SSE(float* rgbaBuffer, long numPixels, const Lut1D & lut)
  34. {
  35. diff --git a/src/core/MathUtils.cpp b/src/core/MathUtils.cpp
  36. index e1a26c0..3881eb3 100644
  37. --- a/src/core/MathUtils.cpp
  38. +++ b/src/core/MathUtils.cpp
  39. @@ -327,17 +327,6 @@ OCIO_NAMESPACE_ENTER
  40. GetV4Sum(vout, vout, v2);
  41. }
  42. - namespace
  43. - {
  44. -
  45. - void GetMxbResult(float* vout, float* m, float* x, float* v)
  46. - {
  47. - GetM44V4Product(vout, m, x);
  48. - GetV4Sum(vout, vout, v);
  49. - }
  50. -
  51. - } // anon namespace
  52. -
  53. bool GetMxbInverse(float* mout, float* vout,
  54. const float* m_, const float* v_)
  55. {
  56. @@ -372,6 +361,18 @@ OCIO_NAMESPACE_USING
  57. #include "UnitTest.h"
  58. +namespace
  59. +{
  60. +
  61. + void GetMxbResult(float* vout, float* m, float* x, float* v)
  62. + {
  63. + GetM44V4Product(vout, m, x);
  64. + GetV4Sum(vout, vout, v);
  65. + }
  66. +
  67. +}
  68. +
  69. +
  70. OIIO_ADD_TEST(MathUtils, M44_is_diagonal)
  71. {
  72. {
  73. diff --git a/src/pyglue/PyAllocationTransform.cpp b/src/pyglue/PyAllocationTransform.cpp
  74. index 20bb50e..06b418a 100644
  75. --- a/src/pyglue/PyAllocationTransform.cpp
  76. +++ b/src/pyglue/PyAllocationTransform.cpp
  77. @@ -53,7 +53,6 @@ OCIO_NAMESPACE_ENTER
  78. ///
  79. int PyOCIO_AllocationTransform_init(PyOCIO_Transform * self, PyObject * args, PyObject * kwds);
  80. - PyObject * PyOCIO_AllocationTransform_equals(PyObject * self, PyObject * args);
  81. PyObject * PyOCIO_AllocationTransform_getAllocation(PyObject * self);
  82. PyObject * PyOCIO_AllocationTransform_setAllocation(PyObject * self, PyObject * args);
  83. PyObject * PyOCIO_AllocationTransform_getNumVars(PyObject * self);
  84. --
  85. 2.15.1