「App:Library:LVGL:docs:3rd party libraries:FFmpeg support」の版間の差分
82行目: | 82行目: | ||
Enums | Enums | ||
− | enum lv_ffmpeg_player_cmd_t | + | <span style="background-color:#e7f2fa;color:#2980b9;">enum lv_ffmpeg_player_cmd_t </span> |
: ''Values:'' | : ''Values:'' | ||
− | :; enumerator LV_FFMPEG_PLAYER_CMD_START | + | :; <span style="background-color: #eeeeee;">enumerator LV_FFMPEG_PLAYER_CMD_START </span> |
:: | :: | ||
− | :; enumerator LV_FFMPEG_PLAYER_CMD_STOP | + | :; <span style="background-color: #eeeeee;">enumerator LV_FFMPEG_PLAYER_CMD_STOP </span> |
:: | :: | ||
− | :; enumerator LV_FFMPEG_PLAYER_CMD_PAUSE | + | :; <span style="background-color: #eeeeee;">enumerator LV_FFMPEG_PLAYER_CMD_PAUSE </span> |
:: | :: | ||
− | :; enumerator LV_FFMPEG_PLAYER_CMD_RESUME | + | :; <span style="background-color: #eeeeee;">enumerator LV_FFMPEG_PLAYER_CMD_RESUME </span> |
:: | :: | ||
− | :; enumerator _LV_FFMPEG_PLAYER_CMD_LAST | + | :; <span style="background-color: #eeeeee;">enumerator _LV_FFMPEG_PLAYER_CMD_LAST </span> |
:: | :: | ||
Functions | Functions | ||
− | void lv_ffmpeg_init(void) | + | <span style="background-color:#e7f2fa;color:#2980b9;">void lv_ffmpeg_init(void) </span> |
: Register FFMPEG image decoder | : Register FFMPEG image decoder | ||
− | int lv_ffmpeg_get_frame_num(const char *path) | + | <span style="background-color:#e7f2fa;color:#2980b9;">int lv_ffmpeg_get_frame_num(const char *path) </span> |
: Get the number of frames contained in the file | : Get the number of frames contained in the file | ||
:; Parameters | :; Parameters | ||
107行目: | 107行目: | ||
:: Number of frames, less than 0 means failed | :: Number of frames, less than 0 means failed | ||
− | lv_obj_t *lv_ffmpeg_player_create(lv_obj_t *parent) | + | <span style="background-color:#e7f2fa;color:#2980b9;">lv_obj_t *lv_ffmpeg_player_create(lv_obj_t *parent) </span> |
: Create ffmpeg_player object | : Create ffmpeg_player object | ||
:; Parameters | :; Parameters | ||
114行目: | 114行目: | ||
:: pointer to the created ffmpeg_player | :: pointer to the created ffmpeg_player | ||
− | lv_res_t lv_ffmpeg_player_set_src(lv_obj_t *obj, const char *path) | + | <span style="background-color:#e7f2fa;color:#2980b9;">lv_res_t lv_ffmpeg_player_set_src(lv_obj_t *obj, const char *path) </span> |
: Set the path of the file to be played | : Set the path of the file to be played | ||
:; Parameters | :; Parameters | ||
122行目: | 122行目: | ||
:: LV_RES_OK: no error; LV_RES_INV: can't get the info. | :: LV_RES_OK: no error; LV_RES_INV: can't get the info. | ||
− | void lv_ffmpeg_player_set_cmd(lv_obj_t *obj, lv_ffmpeg_player_cmd_t cmd) | + | <span style="background-color:#e7f2fa;color:#2980b9;">void lv_ffmpeg_player_set_cmd(lv_obj_t *obj, lv_ffmpeg_player_cmd_t cmd) </span> |
: Set command control video player | : Set command control video player | ||
:; Parameters | :; Parameters | ||
128行目: | 128行目: | ||
::* cmd -- control commands | ::* cmd -- control commands | ||
− | void lv_ffmpeg_player_set_auto_restart(lv_obj_t *obj, bool en) | + | <span style="background-color:#e7f2fa;color:#2980b9;">void lv_ffmpeg_player_set_auto_restart(lv_obj_t *obj, bool en) </span> |
: Set the video to automatically replay | : Set the video to automatically replay | ||
:; Parameters | :; Parameters | ||
136行目: | 136行目: | ||
Variables | Variables | ||
− | const lv_obj_class_t lv_ffmpeg_player_class | + | <span style="background-color:#e7f2fa;color:#2980b9;">const lv_obj_class_t lv_ffmpeg_player_class </span> |
: | : | ||
− | struct lv_ffmpeg_player_t | + | <span style="background-color:#e7f2fa;color:#2980b9;">struct lv_ffmpeg_player_t </span> |
: Public Members | : Public Members | ||
− | :; lv_img_t img | + | :; <span style="background-color: #eeeeee;">lv_img_t img </span> |
:: | :: | ||
− | :; lv_timer_t *timer | + | :; <span style="background-color: #eeeeee;">lv_timer_t *timer </span> |
:: | :: | ||
− | :; lv_img_dsc_t imgdsc | + | :; <span style="background-color: #eeeeee;">lv_img_dsc_t imgdsc </span> |
:: | :: | ||
− | :; bool auto_restart | + | :; <span style="background-color: #eeeeee;">bool auto_restart </span> |
:: | :: | ||
− | :; struct ffmpeg_context_s *ffmpeg_ctx | + | :; <span style="background-color: #eeeeee;">struct ffmpeg_context_s *ffmpeg_ctx</span> |
| | | | ||
|} | |} |
2022年6月29日 (水) 17:41時点における版
https://docs.lvgl.io/8.2/libs/ffmpeg.html
FFmpeg support
英文 | 自動翻訳 |
---|---|
FFmpeg A complete, cross-platform solution to record, convert and stream audio and video. |
Install FFmpeg
英文 | 自動翻訳 |
---|---|
|
Add FFmpeg to your project
英文 | 自動翻訳 |
---|---|
|
Usage
英文 | 自動翻訳 |
---|---|
Enable See the examples below. Note that, the FFmpeg extension doesn't use LVGL's file system. You can simply pass the path to the image or video as usual on your operating system or platform. |
Example
英文 | 自動翻訳 |
---|---|
Decode image |
|
Decode video |
API
英文 | 自動翻訳 |
---|---|
Enums enum lv_ffmpeg_player_cmd_t
Functions void lv_ffmpeg_init(void)
int lv_ffmpeg_get_frame_num(const char *path)
lv_obj_t *lv_ffmpeg_player_create(lv_obj_t *parent)
lv_res_t lv_ffmpeg_player_set_src(lv_obj_t *obj, const char *path)
void lv_ffmpeg_player_set_cmd(lv_obj_t *obj, lv_ffmpeg_player_cmd_t cmd)
void lv_ffmpeg_player_set_auto_restart(lv_obj_t *obj, bool en)
Variables const lv_obj_class_t lv_ffmpeg_player_class struct lv_ffmpeg_player_t
|