共用方式為


ETC1.EncodeBlock(Buffer, Int32, Buffer) 方法

定義

編碼圖元區塊。

[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

參數

in
Buffer

大小為 DECODED_BLOCK_SIZE的原生順序直接緩衝區,代表以 R、G、B. 位元組 (3 * (x + 4 * y) 格式為 4 x 4 平方的 3 位元組像素是像素 (x, y) 的 R 值。

validPixelMask
Int32

是 16 位遮罩,其中位 (1 << (x + y * 4))指出對應的 (x,y) 圖元是否有效。 壓縮時會忽略無效的圖元色彩值。

out
Buffer

大小為的原生順序直接緩衝區,ENCODED_BLOCK_SIZE接收 ETC1 壓縮版本的數據。

屬性

備註

編碼圖元區塊。

android.opengl.ETC1.encodeBlock(java.nio.Buffer, int, java.nio.Buffer)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於