From ecc068e2811812f9036c6a906c0417b2006ffe92 Mon Sep 17 00:00:00 2001 From: lxowalle Date: Mon, 2 Dec 2024 15:44:42 +0800 Subject: [PATCH] * update photos's readme --- projects/app_photos/README.md | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/projects/app_photos/README.md b/projects/app_photos/README.md index 6db3f50d..72b7e137 100644 --- a/projects/app_photos/README.md +++ b/projects/app_photos/README.md @@ -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 -``` \ No newline at end of file +## 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`. \ No newline at end of file