This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const INDEX: u8 = 0x0; | |
const RUN_8: u8 = 0x40; | |
const RUN_16: u8 = 0x60; | |
const DIFF_8: u8 = 0x80; | |
const DIFF_16: u8 = 0xc0; | |
const DIFF_24: u8 = 0xe0; | |
const COLOR: u8 = 0xf0; | |
const MASK_2: u8 = 0xc0; | |
const MASK_3: u8 = 0xe0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package st235.com.github.picassotransformer | |
import android.graphics.Bitmap | |
import androidx.annotation.IntRange | |
import androidx.annotation.Px | |
fun Bitmap?.blur( | |
@IntRange(from = 1L) @Px radius: Int, | |
@IntRange(from = 1L) downscale: Int | |
): Bitmap? { |