include/qpl/cpp_api/util/qpl_util.hpp
/**
 * @brief Returns enum representation of output bit width format
 */
@brief Returns enum representation of output bit width format
@brief Returns enum representation of output bit width format
static inline auto integer_to_output_format(uint32_t value) -> ml::analytics::output_bit_width_format_t {
    using namespace qpl::ml::analytics;
    switch (value) {
        case 1: {
            return output_bit_width_format_t::same_as_input;
        }
        case 8: {
            return output_bit_width_format_t::bits_8;
        }
        case 16: {
            return output_bit_width_format_t::bits_16;
        }
        case 32: {
            return output_bit_width_format_t::bits_32;
        }
        default: {
            return output_bit_width_format_t::same_as_input;
        }
    }
}
static inline auto integer_to_output_format ( uint32_t value ) -> ml :: analytics :: output_bit_width_format_t { using namespace qpl :: ml :: analytics ; switch ( value ) { case 1 : { return output_bit_width_format_t :: same_as_input ; } case 8 : { return output_bit_width_format_t :: bits_8 ; } case 16 : { return output_bit_width_format_t :: bits_16 ; } case 32 : { return output_bit_width_format_t :: bits_32 ; } default : { return output_bit_width_format_t :: same_as_input ; } } }
@brief Returns enum representation of output bit width format
@brief Returns enum representation of output bit width format