fun advanceToNextRow()

in plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/util/pngj/IdatSet.kt [234:246]


    fun advanceToNextRow(): Int {
        // PngHelperInternal.LOGGER.info("advanceToNextRow");
        val bytesNextRow: Int = if (deinterlacer == null) {
            if (rown >= imgInfo.rows - 1) 0 else imgInfo.bytesPerRow + 1
        } else {
            val more: Boolean = deinterlacer.nextRow()
            if (more) deinterlacer.bytesToRead + 1 else 0
        }
        if (!callbackMode) { // in callback mode, setNextRowLen() is called internally
            prepareForNextRow(bytesNextRow)
        }
        return bytesNextRow
    }