#ifndef BMODESETTINGPRESETVALUES_T_H #define BMODESETTINGPRESETVALUES_T_H #include #include #include "model/ssm/dtoInternal/SsmPresetValues.h" struct BModeSettingPresetValues_t { int angle; int ao; int criFilter; int depth; int dynContB; int lineDensity; int rejectB; int frameFilter; bool lineFilterBypass; int lineFilter; int criLineFilter; int cri; int enhanceB; int gainB; int focusNumber; int persist; int focus; bool sriBypass; int sri; int oti; int frequency; bool hi; bool ffc; bool virtualConvex; bool criBypass; void init(SsmPresetValues_t temp) { angle = temp.angle; ao = 100 + temp.apcTxPower; criFilter = temp.criFilter; depth = temp.depth; dynContB = temp.dynContB; lineDensity = temp.lineDensity; rejectB = temp.rejectB; frameFilter = temp.framFilter; lineFilterBypass = lineFilter == 0; lineFilter = temp.lineFilter > 0 ? temp.lineFilter - 1 : temp.lineFilter; criLineFilter = temp.criLineFilter > 0 ? temp.criLineFilter - 1 : temp.criLineFilter; cri = temp.cri; enhanceB = temp.enhanceB; gainB = temp.gainB; focusNumber = temp.focusNumber; persist = temp.persist; focus = temp.focus; sriBypass = temp.sriBypass; sri = temp.sri; oti = temp.oti; frequency = temp.frequency; hi = temp.hi; ffc = temp.ffc; virtualConvex = temp.virtualConvex; criBypass = temp.criBypass; } }; #endif //BMODESETTINGPRESETVALUES_T_H