android.opengl
Class ETC1

java.lang.Object
  extended by android.opengl.ETC1

public class ETC1
extends Object


Field Summary
static int DECODED_BLOCK_SIZE
           
static int ENCODED_BLOCK_SIZE
           
static int ETC_PKM_HEADER_SIZE
           
static int ETC1_RGB8_OES
           
 
Constructor Summary
ETC1()
           
 
Method Summary
static void decodeBlock(Buffer in, Buffer out)
           
static void decodeImage(Buffer in, Buffer out, int width, int height, int pixelSize, int stride)
           
static void encodeBlock(Buffer in, int validPixelMask, Buffer out)
           
static void encodeImage(Buffer in, int width, int height, int pixelSize, int stride, Buffer out)
           
static void formatHeader(Buffer header, int width, int height)
           
static int getEncodedDataSize(int width, int height)
           
static int getHeight(Buffer header)
           
static int getWidth(Buffer header)
           
static boolean isValid(Buffer header)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODED_BLOCK_SIZE

public static final int ENCODED_BLOCK_SIZE
See Also:
Constant Field Values

DECODED_BLOCK_SIZE

public static final int DECODED_BLOCK_SIZE
See Also:
Constant Field Values

ETC_PKM_HEADER_SIZE

public static final int ETC_PKM_HEADER_SIZE
See Also:
Constant Field Values

ETC1_RGB8_OES

public static final int ETC1_RGB8_OES
See Also:
Constant Field Values
Constructor Detail

ETC1

public ETC1()
Method Detail

encodeBlock

public static void encodeBlock(Buffer in,
                               int validPixelMask,
                               Buffer out)

decodeBlock

public static void decodeBlock(Buffer in,
                               Buffer out)

getEncodedDataSize

public static int getEncodedDataSize(int width,
                                     int height)

encodeImage

public static void encodeImage(Buffer in,
                               int width,
                               int height,
                               int pixelSize,
                               int stride,
                               Buffer out)

decodeImage

public static void decodeImage(Buffer in,
                               Buffer out,
                               int width,
                               int height,
                               int pixelSize,
                               int stride)

formatHeader

public static void formatHeader(Buffer header,
                                int width,
                                int height)

isValid

public static boolean isValid(Buffer header)

getWidth

public static int getWidth(Buffer header)

getHeight

public static int getHeight(Buffer header)


Copyright © 2008-2012. All Rights Reserved.