android.opengl.ETC1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of androidstub Show documentation
Show all versions of androidstub Show documentation
provide android hidden api definition ,helper for android super framework development
package android.opengl;
public class ETC1
{
public ETC1() { throw new RuntimeException("Stub!"); }
public static native void encodeBlock(java.nio.Buffer in, int validPixelMask, java.nio.Buffer out);
public static native void decodeBlock(java.nio.Buffer in, java.nio.Buffer out);
public static native int getEncodedDataSize(int width, int height);
public static native void encodeImage(java.nio.Buffer in, int width, int height, int pixelSize, int stride, java.nio.Buffer out);
public static native void decodeImage(java.nio.Buffer in, java.nio.Buffer out, int width, int height, int pixelSize, int stride);
public static native void formatHeader(java.nio.Buffer header, int width, int height);
public static native boolean isValid(java.nio.Buffer header);
public static native int getWidth(java.nio.Buffer header);
public static native int getHeight(java.nio.Buffer header);
public static final int ENCODED_BLOCK_SIZE = 8;
public static final int DECODED_BLOCK_SIZE = 48;
public static final int ETC_PKM_HEADER_SIZE = 16;
public static final int ETC1_RGB8_OES = 36196;
}