doc(jpeg): fix broken link in the example readme

This commit is contained in:
morris
2026-06-30 13:53:12 +08:00
parent 315e812d5b
commit 494135ddeb
4 changed files with 11 additions and 11 deletions
+1
View File
@@ -40,6 +40,7 @@ repos:
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: mixed-line-ending - id: mixed-line-ending
args: ['-f=lf'] args: ['-f=lf']
exclude: *whitespace_excludes
- id: double-quote-string-fixer - id: double-quote-string-fixer
- id: no-commit-to-branch - id: no-commit-to-branch
name: Do not use more than one slash in the branch name name: Do not use more than one slash in the branch name
@@ -57,11 +57,11 @@ TEST_CASE("JPEG encode performance test for 480*640 RGB->YUV picture", "[jpeg]")
}; };
jpeg_encode_memory_alloc_cfg_t rx_mem_cfg = { jpeg_encode_memory_alloc_cfg_t rx_mem_cfg = {
.buffer_direction = JPEG_DEC_ALLOC_OUTPUT_BUFFER, .buffer_direction = JPEG_ENC_ALLOC_OUTPUT_BUFFER,
}; };
jpeg_encode_memory_alloc_cfg_t tx_mem_cfg = { jpeg_encode_memory_alloc_cfg_t tx_mem_cfg = {
.buffer_direction = JPEG_DEC_ALLOC_INPUT_BUFFER, .buffer_direction = JPEG_ENC_ALLOC_INPUT_BUFFER,
}; };
size_t rx_buffer_size = 0; size_t rx_buffer_size = 0;
@@ -5,4 +5,4 @@ cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on. # "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON) idf_build_set_property(MINIMAL_BUILD ON)
project(jpeg_encode) project(jpeg_encode_example)
@@ -16,7 +16,6 @@ This example makes use of the hardware-based JPEG encoder. If you have multiple
* An Espressif development board based on a chip listed in supported targets * An Espressif development board based on a chip listed in supported targets
* A USB cable for power supply and serial communication * A USB cable for power supply and serial communication
* Computer with ESP-IDF installed and configured * Computer with ESP-IDF installed and configured
* The raw picture is the only source that you need to prepare (We have an [esp1080p.rgb](https://github.com/espressif/esp-idf/tree/master/examples/peripherals/jpeg/jpeg_encode/resources/esp1080.rgb) in resources folder, you can also get it from [jpeg_decode](https://github.com/espressif/esp-idf/tree/master/examples/peripherals/jpeg/jpeg_decode) example).
* ffmpeg can also be used to produce rgb picture. For example `ffmpeg -i input.jpg -pix_fmt rgb24 output.rgb` * ffmpeg can also be used to produce rgb picture. For example `ffmpeg -i input.jpg -pix_fmt rgb24 output.rgb`
### Build and Flash ### Build and Flash