Android Guides | Samples

Android.Opengl.ETC1 Class

Methods for encoding and decoding ETC1 textures.

See Also: ETC1

Syntax

[Android.Runtime.Register("android/opengl/ETC1", DoNotGenerateAcw=true)]
public class ETC1 : Object

Remarks

Methods for encoding and decoding ETC1 textures.

The standard for the ETC1 texture format can be found at http://www.khronos.org/registry/gles/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt

The PKM file format is of a 16-byte header that describes the image bounds followed by the encoded ETC1 texture data.

See Also

[Android Documentation]

Requirements

Namespace: Android.Opengl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8

The members of Android.Opengl.ETC1 are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
DecodedBlockSizeInt32 (48). Size in bytes of a decoded block.
const
EncodedBlockSizeInt32 (8). Size in bytes of an encoded block.
const
Etc1Rgb8OesInt32 (36196). Accepted by the internalformat parameter of glCompressedTexImage2D.
const
EtcPkmHeaderSizeInt32 (16). Size of a PKM file header, in bytes.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
DecodeBlock(Buffer, Buffer)
Decode a block of pixels.
static
DecodeImage(Buffer, Buffer, Int32, Int32, Int32, Int32)
Decode an entire image.
static
EncodeBlock(Buffer, Int32, Buffer)
Encode a block of pixels.
static
EncodeImage(Buffer, Int32, Int32, Int32, Int32, Buffer)
Encode an entire image.
static
FormatHeader(Buffer, Int32, Int32)
Format a PKM header
static
GetEncodedDataSize(Int32, Int32) : Int32
Return the size of the encoded image data (does not include size of PKM header).
static
GetHeight(Buffer) : Int32
Read the image height from a PKM header
static
GetWidth(Buffer) : Int32
Read the image width from a PKM header
static
IsValid(Buffer) : Boolean
Check if a PKM header is correctly formatted.