TODO and deprecation
This commit is contained in:
parent
9c23216adb
commit
68aa693dd7
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue