Skip to content

Commit

Permalink
Revert "JetBrains#778. Changing package location"
Browse files Browse the repository at this point in the history
This reverts commit 15b184b.
  • Loading branch information
RYangazov committed Jun 8, 2023
1 parent f8ec8ec commit 15cdd9f
Show file tree
Hide file tree
Showing 74 changed files with 378 additions and 278 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

internal fun arraycopy(
src: ByteArray,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

@file:Suppress("unused")
package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

internal class Deinterlacer(
private val imi: ImageInfo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

@file:Suppress("unused")
package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

internal enum class ErrorBehaviour( // we try hard to read, even garbage, without throwing exceptions
val c: Int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

@file:Suppress("unused")
package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Internal PNG predictor filter type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Bytes consumer.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

import jetbrains.datalore.plot.pythonExtension.pngj.chunks.ChunkRaw
import jetbrains.datalore.plot.pythonExtension.pngj.chunks.PngChunk
import org.jetbrains.letsPlot.util.pngj.chunks.ChunkRaw
import org.jetbrains.letsPlot.util.pngj.chunks.PngChunk


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* General format-translated image line.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* This interface is just for the sake of unifying some methods of
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Image Line factory.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Set of [IImageLine] elements.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Factory of [IImageLineSet], used by [PngReader].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

import jetbrains.datalore.plot.pythonExtension.pngj.arraycopy
import jetbrains.datalore.plot.pythonExtension.pngj.chunks.ChunkHelper
import jetbrains.datalore.plot.pythonExtension.pngj.chunks.ChunkRaw
import org.jetbrains.letsPlot.util.pngj.chunks.ChunkHelper
import org.jetbrains.letsPlot.util.pngj.chunks.ChunkRaw

/**
* Outputs a sequence of IDAT-like chunk, that is filled progressively until the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Simple immutable wrapper for basic image info.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

import jetbrains.datalore.plot.pythonExtension.pngj.arraycopy
package org.jetbrains.letsPlot.util.pngj

/**
* Lightweight wrapper for an image scanline, used for read and write.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

import jetbrains.datalore.plot.pythonExtension.pngj.fill
import jetbrains.datalore.plot.pythonExtension.pngj.chunks.PngChunkPLTE
import jetbrains.datalore.plot.pythonExtension.pngj.chunks.PngChunkTRNS
import org.jetbrains.letsPlot.util.pngj.chunks.PngChunkPLTE
import org.jetbrains.letsPlot.util.pngj.chunks.PngChunkTRNS

/**
* Bunch of utility static methods to proces an image line at the pixel level.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

@file:Suppress("KDocUnresolvedReference")

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

import jetbrains.datalore.plot.pythonExtension.pngj.ImageLineHelper.getMaskForPackedFormats
import org.jetbrains.letsPlot.util.pngj.ImageLineHelper.getMaskForPackedFormats

/**
* Represents an image line, integer format (one integer by sample). See
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Default implementation of [IImageLineSet].
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

import kotlin.math.min

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

open class OutputPngStream {
private val buffer = mutableListOf<Byte>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

@file:Suppress("unused", "UNUSED_PARAMETER", "KDocUnresolvedReference")
package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Some utility static methods for internal use.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
*/

@file:Suppress("unused", "KDocUnresolvedReference")
package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

import jetbrains.datalore.plot.pythonExtension.pngj.chunks.*
import jetbrains.datalore.plot.pythonExtension.pngj.pixels.PixelsWriter
import jetbrains.datalore.plot.pythonExtension.pngj.pixels.PixelsWriterDefault
import org.jetbrains.letsPlot.util.pngj.chunks.*
import org.jetbrains.letsPlot.util.pngj.pixels.PixelsWriter
import org.jetbrains.letsPlot.util.pngj.pixels.PixelsWriterDefault

/**
* Writes a PNG image, line by line.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Exception thrown by bad CRC check
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Generic exception for this library. It's a RuntimeException (unchecked)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Exception for anomalous internal problems (sort of asserts) that point to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Exception thrown when reading a PNG.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2023. JetBrains s.r.o.
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
*
* This file has been modified by JetBrains : Java code has been converted to Kotlin code.
* */

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

/**
* Exception thrown by writing process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

package jetbrains.datalore.plot.pythonExtension.pngj
package org.jetbrains.letsPlot.util.pngj

internal expect object Zip {
fun compressBytes(ori: ByteArray, offset: Int, len: Int, compress: Boolean): ByteArray
Expand Down
Loading

0 comments on commit 15cdd9f

Please sign in to comment.