From 181f8eca83032b71dac9789c1a743ecadf3eed51 Mon Sep 17 00:00:00 2001 From: Thies Moeller Date: Fri, 24 Mar 2023 10:18:06 +0100 Subject: [PATCH] add BslColorAdjustmentHue/Saturation to workaround list --- gst-libs/gst/pylon/gstpylonintrospection.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/pylon/gstpylonintrospection.cpp b/gst-libs/gst/pylon/gstpylonintrospection.cpp index 31e1591..098959c 100644 --- a/gst-libs/gst/pylon/gstpylonintrospection.cpp +++ b/gst-libs/gst/pylon/gstpylonintrospection.cpp @@ -515,8 +515,8 @@ void gst_pylon_find_limits(GenApi::INode *node, T &minimum_under_all_settings, std::vector available_parent_inv = gst_pylon_get_available_features(parent_invalidators); - /* workarounds for ace2/dart2 exposuretime and short exposuretime - * and other nodes with large dependencies + /* workarounds for ace2/dart2/boost features high + * dependency count * FIXME: refactor this into a filter class */ if (node->GetName() == "ExposureTime" && @@ -598,6 +598,16 @@ void gst_pylon_find_limits(GenApi::INode *node, T &minimum_under_all_settings, maximum_under_all_settings = 1023; GST_DEBUG("Apply AcquisitionBurstFrameCount feature workaround"); return; + } else if (node->GetName() == "BslColorAdjustmentHue") { + minimum_under_all_settings = -1; + maximum_under_all_settings = 1; + GST_DEBUG("Apply BslColorAdjustmentHue feature workaround"); + return; + } else if (node->GetName() == "BslColorAdjustmentSaturation") { + minimum_under_all_settings = 0; + maximum_under_all_settings = 2; + GST_DEBUG("Apply BslColorAdjustmentSaturation feature workaround"); + return; } available_parent_inv = gst_pylon_get_valid_categories(available_parent_inv);