discord-jadx/app/src/main/java/com/facebook/animated/webp/WebPFrame.java

77 lines
1.6 KiB
Java

package com.facebook.animated.webp;
import android.graphics.Bitmap;
import c.f.d.d.c;
import c.f.j.a.a.d;
public class WebPFrame implements d {
@c
private long mNativeContext;
@c
public WebPFrame(long j) {
this.mNativeContext = j;
}
private native void nativeDispose();
private native void nativeFinalize();
private native int nativeGetDurationMs();
private native int nativeGetHeight();
private native int nativeGetWidth();
private native int nativeGetXOffset();
private native int nativeGetYOffset();
private native boolean nativeIsBlendWithPreviousFrame();
private native void nativeRenderFrame(int i, int i2, Bitmap bitmap);
private native boolean nativeShouldDisposeToBackgroundColor();
@Override // c.f.j.a.a.d
public void a(int i, int i2, Bitmap bitmap) {
nativeRenderFrame(i, i2, bitmap);
}
@Override // c.f.j.a.a.d
public int b() {
return nativeGetXOffset();
}
@Override // c.f.j.a.a.d
public int c() {
return nativeGetYOffset();
}
public boolean d() {
return nativeIsBlendWithPreviousFrame();
}
@Override // c.f.j.a.a.d
public void dispose() {
nativeDispose();
}
public boolean e() {
return nativeShouldDisposeToBackgroundColor();
}
public void finalize() {
nativeFinalize();
}
@Override // c.f.j.a.a.d
public int getHeight() {
return nativeGetHeight();
}
@Override // c.f.j.a.a.d
public int getWidth() {
return nativeGetWidth();
}
}