BitMiracle.LibJpeg.Classic.Internal.my_1pass_cquantizer.largest_input_value C# (CSharp) Méthode

largest_input_value() private static méthode

Return largest input value that should map to j'th output value Must have largest(j=0) >= 0, and largest(j=maxj) >= MAXJSAMPLE
private static largest_input_value ( int j, int maxj ) : int
j int
maxj int
Résultat int
        private static int largest_input_value(int j, int maxj)
        {
            /* Breakpoints are halfway between values returned by output_value */
            return (int)(((2 * j + 1) * JpegConstants.MAXJSAMPLE + maxj) / (2 * maxj));
        }