public static WlBorderCoefFixed < WlCoef_I32 > convertToInt ( WlBorderCoefFixed < WlCoef_F32 > orig , WlCoef_I32 inner ) { WlBorderCoefFixed < WlCoef_I32 > ret = new WlBorderCoefFixed <> ( orig . getLowerLength ( ) , orig . getUpperLength ( ) ) ; for ( int i = 0 ; i < orig . getLowerLength ( ) ; i ++ ) { WlCoef_F32 o = orig . getLower ( i ) ; WlCoef_I32 r = new WlCoef_I32 ( ) ; ret . setLower ( i , r ) ; convertCoef_F32_to_I32 ( inner . denominatorScaling , inner . denominatorWavelet , o , r ) ; } for ( int i = 0 ; i < orig . getUpperLength ( ) ; i ++ ) { WlCoef_F32 o = orig . getUpper ( i ) ; WlCoef_I32 r = new WlCoef_I32 ( ) ; ret . setUpper ( i , r ) ; convertCoef_F32_to_I32 ( inner . denominatorScaling , inner . denominatorWavelet , o , r ) ; } ret . setInnerCoef ( inner ) ; return ret ; }
todo rename and move to a utility function?