-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
# Readme | ||
# README | ||
Displaying Images and Playing Videos | ||
|
||
The default picture path is: `/maixapp/share/picture`, you can also use `app::get_picture_path()` to get the picture path. | ||
## Displaying Images | ||
When the program starts, it will read and display images from the `/maixapp/share/picture/` directory. The program supports `jpg` and `png` image formats. It is recommended that the image resolution does not exceed `2560x1440`, and the width must be a multiple of `32`. | ||
|
||
Below is a reference for the format of saving images: | ||
|
||
```shell | ||
/maixapp/share/picture | ||
/2024-01-02 | ||
0.jpg | ||
1.jpg | ||
2.jpg | ||
/2024-02-03 | ||
0.jpg | ||
1.jpg | ||
2.jpg | ||
``` | ||
## Displaying Videos | ||
When the program starts, it will read videos from the `/maixapp/share/video/` directory. The program supports playing, pausing, and setting the playback position. Only `mp4` videos encoded in the `H.264` format are supported. It is recommended that the video resolution does not exceed `2560x1440`, and the width must be a multiple of `32`. |