#ifndef KERNELPARAMS_H #define KERNELPARAMS_H #include #include #include #include #define ARRAY_SIZE(X) X.length() #define DYN_CNTR_CONST_PIECE_NO 256U #define MIN_OUTPUT_LEVEL 3U #define MAX_OUTPUT_LEVEL 252U #define MAX_LOG_INPUT_LEVEL 24*2048 #define MIN_LOG_INPUT_DEFAULT 6U #define MAX_LOG_INPUT_DEFAULT 21 #define GAIN_DEFAULT 4 #define CONTRAST_NUM_DEFAULT 1U struct DynamicContrastParameters { float gain; float min_output_level; float max_output_level; QList const_piecewise_x; QList const_piecewise_y; float max_log_input_level; float app_min_log_input_level; float app_max_log_input_level; }; float linear_interpolate (float output, QList x, QList y, quint32 num); float DynamicContrast(float input, DynamicContrastParameters ¶ms); #endif // KERNELPARAMS_H