JeVois Smart Embedded Machine Vision Toolkit Base Modules
Helper struct to handle rounding between different types. More...
Helper struct to handle rounding between different types.
Note that we aren't worried about clamping here, that is handled separately by convert_helper (see below). We have different specializations of round_helper depending on whether the src and dest types are integral or floating-point. The only case where we have to do any actual rounding is when we're going from floating->integral.