From 9b1605c01656b1b577c5fa075c40075268b40370 Mon Sep 17 00:00:00 2001 From: Doug Walker Date: Fri, 25 Oct 2024 22:59:55 -0400 Subject: [PATCH] Fix hue curve unit tests Signed-off-by: Doug Walker --- .../ops/fixedfunction/FixedFunctionOpCPU.cpp | 4 ++-- tests/osl/FixedFunctionOp_test.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/OpenColorIO/ops/fixedfunction/FixedFunctionOpCPU.cpp b/src/OpenColorIO/ops/fixedfunction/FixedFunctionOpCPU.cpp index 9a91b69c9..6f33ee6f7 100644 --- a/src/OpenColorIO/ops/fixedfunction/FixedFunctionOpCPU.cpp +++ b/src/OpenColorIO/ops/fixedfunction/FixedFunctionOpCPU.cpp @@ -1547,7 +1547,7 @@ void applyHSYToRGB(const void * inImg, void * outImg, long numPixels, float min0 const float * in = (const float *)inImg; float * out = (float *)outImg; - for(unsigned idx=0; idxm_threshold = 1e-6f; } -OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LIN_fwd) +OCIO_OSL_TEST(FixedFunction, style_RGB_TO_HSY_LIN_fwd) { OCIO::FixedFunctionTransformRcPtr func = OCIO::FixedFunctionTransform::Create(OCIO::FIXED_FUNCTION_RGB_TO_HSY_LIN); @@ -414,7 +414,7 @@ OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LIN_fwd) m_data->m_relativeComparison = true; } -OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LIN_inv) +OCIO_OSL_TEST(FixedFunction, style_RGB_TO_HSY_LIN_inv) { OCIO::FixedFunctionTransformRcPtr func = OCIO::FixedFunctionTransform::Create(OCIO::FIXED_FUNCTION_RGB_TO_HSY_LIN); @@ -426,7 +426,7 @@ OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LIN_inv) m_data->m_relativeComparison = true; } -OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LOG_fwd) +OCIO_OSL_TEST(FixedFunction, style_RGB_TO_HSY_LOG_fwd) { OCIO::FixedFunctionTransformRcPtr func = OCIO::FixedFunctionTransform::Create(OCIO::FIXED_FUNCTION_RGB_TO_HSY_LOG); @@ -438,7 +438,7 @@ OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LOG_fwd) m_data->m_relativeComparison = true; } -OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LOG_inv) +OCIO_OSL_TEST(FixedFunction, style_RGB_TO_HSY_LOG_inv) { OCIO::FixedFunctionTransformRcPtr func = OCIO::FixedFunctionTransform::Create(OCIO::FIXED_FUNCTION_RGB_TO_HSY_LOG); @@ -450,7 +450,7 @@ OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_LOG_inv) m_data->m_relativeComparison = true; } -OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_VID_fwd) +OCIO_OSL_TEST(FixedFunction, style_RGB_TO_HSY_VID_fwd) { OCIO::FixedFunctionTransformRcPtr func = OCIO::FixedFunctionTransform::Create(OCIO::FIXED_FUNCTION_RGB_TO_HSY_VID); @@ -462,7 +462,7 @@ OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_VID_fwd) m_data->m_relativeComparison = true; } -OCIO_ADD_GPU_TEST(FixedFunction, style_RGB_TO_HSY_VID_inv) +OCIO_OSL_TEST(FixedFunction, style_RGB_TO_HSY_VID_inv) { OCIO::FixedFunctionTransformRcPtr func = OCIO::FixedFunctionTransform::Create(OCIO::FIXED_FUNCTION_RGB_TO_HSY_VID);