Udostępnij za pośrednictwem


ETC1.EncodeBlock(Buffer, Int32, Buffer) Method

Definition

Encode a block of pixels.

[Android.Runtime.Register("encodeBlock", "(Ljava/nio/Buffer;ILjava/nio/Buffer;)V", "")]
public static void EncodeBlock (Java.Nio.Buffer? in, int validPixelMask, Java.Nio.Buffer? out);
[<Android.Runtime.Register("encodeBlock", "(Ljava/nio/Buffer;ILjava/nio/Buffer;)V", "")>]
static member EncodeBlock : Java.Nio.Buffer * int * Java.Nio.Buffer -> unit

Parameters

in
Buffer

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
Int32

is a 16-bit mask where bit (1 << (x + y * 4)) indicates whether the corresponding (x,y) pixel is valid. Invalid pixel color values are ignored when compressing.

out
Buffer

a native order direct buffer of size ENCODED_BLOCK_SIZE that receives the ETC1 compressed version of the data.

Attributes

Remarks

Encode a block of pixels.

Java documentation for android.opengl.ETC1.encodeBlock(java.nio.Buffer, int, java.nio.Buffer).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to