TODO and deprecation

This commit is contained in:
Oupson 2021-02-06 13:40:54 +01:00
parent 9c23216adb
commit 68aa693dd7
2 changed files with 17 additions and 1 deletions

View File

@ -92,6 +92,9 @@ class ApngEncoder(
/** If the first frame should be included in the animation **/
private var firstFrameInAnim: Boolean = true
// TODO DOC + CODE
private var optimise : Boolean = true
init {
outputStream.write(Utils.pngSignature)
writeHeader()
@ -168,6 +171,19 @@ class ApngEncoder(
return this
}
/**
*
*/
// TODO DOC
fun setOptimiseApng(optimise : Boolean) {
this.optimise = optimise
}
// TODO DOC
fun getOptimiseApng() : Boolean {
return this.optimise
}
/**
* Write a frame into the output stream.
* @param inputStream An input stream that will be decoded in order to be written in the animation. Not freed.

View File

@ -6,7 +6,7 @@ import android.graphics.Color
import android.graphics.Paint
import oupson.apng.utils.Utils
// TODO Work on this class
@Deprecated("")
class BitmapDiffCalculator(firstBitmap: Bitmap, secondBitmap : Bitmap) {
val res : Bitmap
var xOffset : Int = 0