etc1tool
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
etc1tool
是一個指令列公用程式,可讓您將 PNG 編碼
圖像轉換成 ETC1 壓縮標準,並將 ETC1 壓縮圖片解碼回 PNG 格式。
etc1tool
的使用方法如下:
etc1tool infile [--help | --encode | --encodeNoHeader | --decode] [--showDifference
diff-file] [-o outfile]
下表列出了不同指令選項:
選項 |
說明 |
infile |
要壓縮的輸入檔案。 |
--help |
列印使用情況資訊。 |
--encode |
從 PNG 檔案建立 ETC1 檔案。
如果未指定,此為工具的預設模式。 |
--encodeNoHeader |
從 PNG 檔案建立原始 ETC1 資料檔案 (不含標頭)。 |
--decode |
從 ETC1 檔案建立 PNG 檔案。 |
--showDifference diff-file |
將原始圖片與編碼圖片之間的差異寫入
diff-file 。只有在編碼時,這個選項才會生效。 |
-o outfile |
指定輸出檔案名稱。
如未指定 outfile ,則會建構輸出檔案
以適當的後置字串 (.pkm 或 .png ) 取代輸入檔案名稱。
|
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# etc1tool\n\n`etc1tool` is a command line utility that lets you encode PNG\nimages to the [ETC1](https://registry.khronos.org/OpenGL/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt) compression standard and decode ETC1 compressed images back to PNG.\n\nThe usage for `etc1tool` is: \n\n```\netc1tool infile [--help | --encode | --encodeNoHeader | --decode] [--showDifference\ndiff-file] [-o outfile]\n```\n\nThis table lists the command options:\n\n| Option | Description |\n|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `infile` | The input file to compress. |\n| `--help` | Print usage information. |\n| `--encode` | Create an ETC1 file from a PNG file. This is the default mode for the tool if nothing is specified. |\n| `--encodeNoHeader` | Create a raw ETC1 data file without a header from a PNG file. |\n| `--decode` | Create a PNG file from an ETC1 file. |\n| `--showDifference `*diff-file* | Write the difference between the original and encoded image to *diff-file*. This option is only valid when encoding. |\n| `-o `*outfile* | Specify the name of the output file. If *outfile* is not specified, the output file is constructed from the input filename with the appropriate suffix (`.pkm` or `.png`). |"]]