Android Guides | Samples

Android.Opengl.ETC1.DecodeBlock Method

Decode a block of pixels.

Syntax

[Android.Runtime.Register("decodeBlock", "(Ljava/nio/Buffer;Ljava/nio/Buffer;)V", "")]
public static Void DecodeBlock (Buffer in, Buffer out)

Parameters

in
a native order direct buffer of size ENCODED_BLOCK_SIZE that contains the ETC1 compressed version of the data.
out
a native order direct buffer of size DECODED_BLOCK_SIZE that will receive the decoded data. The data represents a 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R value of pixel (x, y).

Remarks

Decode a block of pixels.

[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