question: static boolean isRepeatingLine ( final byte [ ] lineData , final int height ) { if ( lineData . length % height != 0 ) { return false ; } final int step = lineData . length / height ; for ( int x = 0 ; x < ( lineData . length / height ) - 1 ; x ++ ) { int targetIndex = step ; while ( targetIndex < lineData . length - 1 ) { if ( lineData [ x ] != lineData [ targetIndex ] ) { return false ; } targetIndex += step ; } } return true ; }
target:  Test whether the data representing a line is uniform along it height