I hereby claim:
- I am pnemonic78 on github.
- I am pnemonic (https://keybase.io/pnemonic) on keybase.
- I have a public key ASAjeu2za3lmo8DaxNxD_mMgSAIRkmjF82qBwrKIEtV1Zgo
To claim this, I am signing this object:
/** Convert I420 (YYYYYYYY:UU:VV) to NV21 (YYYYYYYYY:VUVU) */ | |
public byte[] I420toNV21(final byte[] input, byte[] output, final int width, final int height) { | |
if (output == null) { | |
output = new byte[input.length]; | |
} | |
final int size = width * height; | |
final int quarter = size / 4; | |
final int v0 = size + quarter; | |
System.arraycopy(input, 0, output, 0, size); // Y is same |
/** Convert YV12 (YYYYYYYY:UU:VV) to NV21 (YYYYYYYYY:VUVU) */ | |
public byte[] YV12toNV21(final byte[] input, byte[] output, final int width, final int height) { | |
if (output == null) { | |
output = new byte[input.length]; | |
} | |
final int size = width * height; | |
final int quarter = size / 4; | |
final int u0 = size + quarter; | |
System.arraycopy(input, 0, output, 0, size); // Y is same |
I hereby claim:
To claim this, I am signing this object:
import kotlin.enums.EnumEntries | |
import kotlinx.serialization.ExperimentalSerializationApi | |
import kotlinx.serialization.KSerializer | |
import kotlinx.serialization.SerialName | |
import kotlinx.serialization.SerializationException | |
import kotlinx.serialization.descriptors.PrimitiveKind | |
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor | |
import kotlinx.serialization.descriptors.SerialDescriptor | |
import kotlinx.serialization.encoding.Decoder | |
import kotlinx.serialization.encoding.Encoder |