Created
January 1, 2019 02:31
-
-
Save npjohnson/912614a0759cac3e25f6d943ab66a22c to your computer and use it in GitHub Desktop.
Yellowstone - KOT49H.161129 - com.nvidia.graphics.jar JADX Output
This file contains 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 com.nvidia.graphics; | |
import android.graphics.RectF; | |
import android.graphics.SurfaceTexture; | |
public class NvBlit { | |
public static final int AbsColorSpace_AdobeRGB = 3; | |
public static final int AbsColorSpace_DeviceRGB = 1; | |
public static final int AbsColorSpace_Rec709 = 5; | |
public static final int AbsColorSpace_WideGamutRGB = 4; | |
public static final int AbsColorSpace_sRGB = 2; | |
public static final int CmsLinkProfileType_LUT = 2; | |
public static final int CmsLinkProfileType_Matrix = 1; | |
public static final int Filter_Linear = 3; | |
public static final int Filter_Nearest = 1; | |
public static final int Transform_FlipHorizontal = 4; | |
public static final int Transform_FlipVertical = 6; | |
public static final int Transform_InvTranspose = 5; | |
public static final int Transform_None = 0; | |
public static final int Transform_Rotate180 = 2; | |
public static final int Transform_Rotate270 = 3; | |
public static final int Transform_Rotate90 = 1; | |
public static final int Transform_Transpose = 7; | |
public static class State { | |
private int mState; | |
private native void nativeClear(); | |
private native void nativeFinalize(); | |
private native void nativeInit(); | |
private native void nativeSetColorTransform(int i, int i2, int i3); | |
private native void nativeSetDstRect(float f, float f2, float f3, float f4); | |
private native void nativeSetFilter(int i); | |
private native void nativeSetSrcColor(int i); | |
private native void nativeSetSrcRect(float f, float f2, float f3, float f4); | |
private native void nativeSetSrcSurface(SurfaceTexture surfaceTexture); | |
private native void nativeSetTransform(int i); | |
public State() { | |
nativeInit(); | |
} | |
public void clear() { | |
nativeClear(); | |
} | |
public void setSrcSurface(SurfaceTexture srcSurface) { | |
nativeSetSrcSurface(srcSurface); | |
} | |
public void setSrcRect(RectF srcRect) { | |
nativeSetSrcRect(srcRect.left, srcRect.top, srcRect.right, srcRect.bottom); | |
} | |
public void setDstRect(RectF dstRect) { | |
nativeSetDstRect(dstRect.left, dstRect.top, dstRect.right, dstRect.bottom); | |
} | |
public void setTransform(int transform) { | |
nativeSetTransform(transform); | |
} | |
public void setFilter(int filter) { | |
nativeSetFilter(filter); | |
} | |
public void setSrcColor(int srcColor) { | |
nativeSetSrcColor(srcColor); | |
} | |
public void setColorTransform(int srcColorSpace, int dstColorSpace, int linkProfileType) { | |
nativeSetColorTransform(srcColorSpace, dstColorSpace, linkProfileType); | |
} | |
protected void finalize() throws Throwable { | |
try { | |
nativeFinalize(); | |
} finally { | |
super.finalize(); | |
} | |
} | |
} | |
private static native int nativeBlit(State state); | |
private static native void nativeClassInit(); | |
private static native void nativeClose(); | |
private static native int nativeFrameBegin(SurfaceTexture surfaceTexture); | |
private static native void nativeFrameEnd(); | |
private static native int nativeOpen(); | |
public static boolean open() { | |
return nativeOpen() == 0; | |
} | |
public static void close() { | |
nativeClose(); | |
} | |
public static boolean frameBegin(SurfaceTexture dstSurface) { | |
return nativeFrameBegin(dstSurface) == 0; | |
} | |
public static void frameEnd() { | |
nativeFrameEnd(); | |
} | |
public static boolean blit(State state) { | |
return nativeBlit(state) == 0; | |
} | |
static { | |
System.loadLibrary("nvidia_graphics_jni"); | |
nativeClassInit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment