Android Guides | Samples

Android.Opengl.ETC1.EncodeBlock Method

Encode a block of pixels.

Syntax

[Android.Runtime.Register("encodeBlock", "(Ljava/nio/Buffer;ILjava/nio/Buffer;)V", "")]
public static Void EncodeBlock (Buffer in, Int32 validPixelMask, Buffer out)

Parameters

in
a native order direct buffer of size DECODED_BLOCK_SIZE that represent 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).
validPixelMask
is a 16-bit mask where bit (1
out
a native order direct buffer of size ENCODED_BLOCK_SIZE that receives the ETC1 compressed version of the data.

Remarks

Encode 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