Skip to content

Commit

Permalink
add BslColorAdjustmentHue/Saturation to workaround list
Browse files Browse the repository at this point in the history
  • Loading branch information
thiesmoeller committed Mar 24, 2023
1 parent 58b0c5d commit 181f8ec
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions gst-libs/gst/pylon/gstpylonintrospection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ void gst_pylon_find_limits(GenApi::INode *node, T &minimum_under_all_settings,
std::vector<GenApi::INode *> 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" &&
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 181f8ec

Please sign in to comment.