include/qpl/cpp_api/operations/operation_builder.hpp
/**
 * @brief Checks if given output width is supported by the library
 *
 * @param  value  width of the element in bits
 *
 * @return either @code true @endcode or throws @ref invalid_argument_exception
 */
@brief Checks if given output width is supported by the library
@param  value  width of the element in bits

@return either @code true @endcode or throws @ref invalid_argument_exception
@brief Checks if given output width is supported by the library @param value width of the element in bits @return either @code true @endcode or throws @ref invalid_argument_exception
static inline auto check_qpl_output_format(uint32_t value) -> bool {
    switch (value) {
        case 1:
        case 8:
        case 16:
        case 32: {
            return true;
        }
        default: {
            throw invalid_argument_exception("Intel QPL doesn't support such output format");
        }
    }
}
static inline auto check_qpl_output_format ( uint32_t value ) -> bool { switch ( value ) { case 1 : case 8 : case 16 : case 32 : { return true ; } default : { throw invalid_argument_exception ( " " ) ; } } }
@brief Checks if given output width is supported by the library
 @param  value  width of the element in bits
@brief Checks if given output width is supported by the library @param value width of the element in bits