ETC1.EncodeImage(Buffer, Int32, Int32, Int32, Int32, Buffer) ETC1.EncodeImage(Buffer, Int32, Int32, Int32, Int32, Buffer) Method

Definition

Encode an entire image.

[Android.Runtime.Register("encodeImage", "(Ljava/nio/Buffer;IIIILjava/nio/Buffer;)V", "")]
public static void EncodeImage (Java.Nio.Buffer in, int width, int height, int pixelSize, int stride, Java.Nio.Buffer out);
static member EncodeImage : Java.Nio.Buffer * int * int * int * int * Java.Nio.Buffer -> unit

Parameters

in
Buffer Buffer

a native order direct buffer of the image data. Formatted such that pixel (x,y) is at pIn + pixelSize * x + stride * y;

width
Int32 Int32
height
Int32 Int32
pixelSize
Int32 Int32

must be 2 or 3. 2 is an GL_UNSIGNED_SHORT_5_6_5 image, 3 is a GL_BYTE RGB image.

stride
Int32 Int32
out
Buffer Buffer

a native order direct buffer of the encoded data. Must be large enough to store entire encoded image.

Remarks

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