語言

ETC1.DecodeBlock(Buffer, Buffer) 方法

定義

解碼一組像素。

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

參數

in
Buffer

一個原生的順序直接緩衝區,大小為 ENCODED_BLOCK_SIZE,包含 ETC1 壓縮版本的資料。

out
Buffer

DECODED_BLOCK_SIZE一個原生的有序直接緩衝區,大小為 ,該緩衝區會接收解碼資料。 資料代表一個 4 x 4 的 3 位元組像素方格,格式為 R、G、B。位元組(3 * (x + 4 * y)是像素 (x, y) 的 R 值。

屬性

備註

解碼一組像素。

Java 文件 android.opengl.ETC1.decodeBlock(java.nio.Buffer, java.nio.Buffer)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於