「App:Library:LVGL:docs:3rd party libraries:PNG decoder」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
7行目: 7行目:
 
|-
 
|-
 
|
 
|
Allow the use of PNG images in LVGL. This implementation uses lodepng library.
+
Allow the use of PNG images in LVGL.  
 +
 
 +
This implementation uses lodepng library.
  
 
If enabled in <code style="color: #bb0000;">lv_conf.h</code> by <code style="color: #bb0000;">LV_USE_PNG</code> LVGL will register a new image decoder automatically so PNG files can be directly used as any other image sources.
 
If enabled in <code style="color: #bb0000;">lv_conf.h</code> by <code style="color: #bb0000;">LV_USE_PNG</code> LVGL will register a new image decoder automatically so PNG files can be directly used as any other image sources.
  
 
Note that, a file system driver needs to registered to open images from files. Read more about it here or just enable one in <code style="color: #bb0000;">lv_conf.h</code> with <code style="color: #bb0000;">LV_USE_FS_...</code>
 
Note that, a file system driver needs to registered to open images from files. Read more about it here or just enable one in <code style="color: #bb0000;">lv_conf.h</code> with <code style="color: #bb0000;">LV_USE_FS_...</code>
 +
  
 
The whole PNG image is decoded so during decoding RAM equals to <code style="color: #bb0000;">image width x image height x 4</code> bytes are required.
 
The whole PNG image is decoded so during decoding RAM equals to <code style="color: #bb0000;">image width x image height x 4</code> bytes are required.
  
 
As it might take significant time to decode PNG images LVGL's images caching feature can be useful.
 
As it might take significant time to decode PNG images LVGL's images caching feature can be useful.
|LVGLでのPNG画像の使用を許可します。この実装はlodepngライブラリを使用します。
+
|LVGLでのPNG画像の使用を許可します。
 +
この実装は lodepng ライブラリを使用します。
 +
 
 +
 
 +
<code style="color: #bb0000;">lv_conf.h</code>の中の<code style="color: #bb0000;">LV_USE_PNG</code>を有効にすると、LVGLは自動的に新しい画像デコーダを登録し、PNGファイルを他の画像ソースと同様に直接使用することができます。
 +
 
  
LVGLで有効に<code style="color: #bb0000;">lv_conf.h</code>する<code style="color: #bb0000;">LV_USE_PNG</code>と、新しい画像デコーダーが自動的に登録されるため、PNGファイルを他の画像ソースとして直接使用できます。
+
ファイルから画像を開くには、ファイルシステムドライバを登録する必要があることに注意してください。詳しくは、ここを読むか、<code style="color: #bb0000;">LV_USE_FS_...</code>を使って、<code style="color: #bb0000;">lv_conf.h</code>で有効にしてください。
  
ファイルからイメージを開くには、ファイルシステムドライバを登録する必要があることに注意してください。詳細についてはこちらをご覧になるか、で有効に<code style="color: #bb0000;">lv_conf.h</code>してください<code style="color: #bb0000;">LV_USE_FS_...</code>
 
  
<code style="color: #bb0000;">image width x image height x 4</code>PNG画像全体がデコードされるため、デコード中にバイトに 等しいRAMが必要です。
+
PNG画像全体がデコードされるため、デコード時には<code style="color: #bb0000;">image width x image height x 4</code>バイトのRAMが必要です。
  
 
PNG画像のデコードにはかなりの時間がかかる場合があるため、LVGLの画像キャッシュ機能が役立つ場合があります。
 
PNG画像のデコードにはかなりの時間がかかる場合があるため、LVGLの画像キャッシュ機能が役立つ場合があります。

2022年6月29日 (水) 15:37時点における版

https://docs.lvgl.io/8.2/libs/png.html

PNG decoder

英文 自動翻訳

Allow the use of PNG images in LVGL.

This implementation uses lodepng library.

If enabled in lv_conf.h by LV_USE_PNG LVGL will register a new image decoder automatically so PNG files can be directly used as any other image sources.

Note that, a file system driver needs to registered to open images from files. Read more about it here or just enable one in lv_conf.h with LV_USE_FS_...


The whole PNG image is decoded so during decoding RAM equals to image width x image height x 4 bytes are required.

As it might take significant time to decode PNG images LVGL's images caching feature can be useful.

LVGLでのPNG画像の使用を許可します。

この実装は lodepng ライブラリを使用します。


lv_conf.hの中のLV_USE_PNGを有効にすると、LVGLは自動的に新しい画像デコーダを登録し、PNGファイルを他の画像ソースと同様に直接使用することができます。


ファイルから画像を開くには、ファイルシステムドライバを登録する必要があることに注意してください。詳しくは、ここを読むか、LV_USE_FS_...を使って、lv_conf.hで有効にしてください。


PNG画像全体がデコードされるため、デコード時にはimage width x image height x 4バイトのRAMが必要です。

PNG画像のデコードにはかなりの時間がかかる場合があるため、LVGLの画像キャッシュ機能が役立つ場合があります。


Example

英文 自動翻訳

Open a PNG image from file and variable

LVGL docs 3rdPartyLibs PNGdecoder 01.png|


API

英文 自動翻訳

Functions

void lv_png_init(void)[1]
Register the PNG d[2]ecoder functions in LVGL


戻る : Previous