Skip to content

Commit a0afa02

Browse files
committed
More code consistency
1 parent bce35a1 commit a0afa02

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ Open any webcam viewer and select the new camera device:
4141

4242
- **UVC stream settings**: resolution, frame rate, and transport mode (bulk/isochronous) are configured via `idf.py menuconfig` (the exact menu path depends on the `usb_device_uvc` component version).
4343
- **Frame size limits**: these demos commonly budget ~**60 KiB** per JPEG frame. If your JPEGs exceed that, streaming can fail or frames can be dropped.
44-
- **JPEG encoder buffer**: some demos expose `USB_UAV_JPEG_OUTBUF_SIZE` (Kconfig) as an upper bound for encoded JPEG size.
44+
- **JPEG encoder buffer**: some demos expose `USB_UVC_JPEG_OUTBUF_SIZE` (Kconfig) as an upper bound for encoded JPEG size.
4545

pong/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ It uses Espressif’s `usb_device_uvc` component (see upstream: [`usb_device_uvc
2727

2828
In `idf.py menuconfig`:
2929

30-
- **`usb_uav_testUSB_UAV_JPEG_OUTBUF_SIZE`**: max JPEG size the encoder can output
31-
- **`usb_uav_test → PONG_ENABLE_POT / PONG_POT_GPIO`**: enable/assign ADC input for paddle control
30+
- **`pongUSB_UVC_JPEG_OUTBUF_SIZE`**: max JPEG size the encoder can output
31+
- **`pong → PONG_ENABLE_POT / PONG_POT_GPIO`**: enable/assign ADC input for paddle control
3232
- **UVC component settings** (resolution / frame rate / bulk vs isochronous), depending on your `usb_device_uvc` version
3333

3434
### Build / flash / view

pong/main/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
menu "usb_uav_test"
1+
menu "pong"
22

3-
config USB_UAV_JPEG_OUTBUF_SIZE
3+
config USB_UVC_JPEG_OUTBUF_SIZE
44
int "JPEG encoder output buffer size (bytes)"
55
range 8192 262144
66
default 61440

pong/main/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const uint8_t *test_card_jpeg_data = test_card_jpeg_start;
4444
static constexpr int kStartupDelaySeconds = 5;
4545
static constexpr size_t kUvcMaxFrameSize = 60u * 1024u;
4646

47-
#ifndef CONFIG_USB_UAV_JPEG_OUTBUF_SIZE
48-
#define CONFIG_USB_UAV_JPEG_OUTBUF_SIZE (60 * 1024)
47+
#ifndef CONFIG_USB_UVC_JPEG_OUTBUF_SIZE
48+
#define CONFIG_USB_UVC_JPEG_OUTBUF_SIZE (60 * 1024)
4949
#endif
5050

5151
extern "C" void app_main(void)
@@ -97,7 +97,7 @@ extern "C" void app_main(void)
9797
static const JpegEncoder encoder(JpegEncoder::Config{
9898
.quality = 60,
9999
.subsampling = JPEG_SUBSAMPLE_420,
100-
.outbuf_size = CONFIG_USB_UAV_JPEG_OUTBUF_SIZE,
100+
.outbuf_size = CONFIG_USB_UVC_JPEG_OUTBUF_SIZE,
101101
});
102102

103103
ESP_LOGI(TAG, "Displaying test card");

static_test_card/main/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
menu "usb_uav_test"
1+
menu "static_test_card"
22

3-
config USB_UAV_JPEG_OUTBUF_SIZE
3+
config USB_UVC_JPEG_OUTBUF_SIZE
44
int "JPEG encoder output buffer size (bytes)"
55
range 8192 262144
66
default 61440

streaming_gif/main/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
menu "usb_uav_test"
1+
menu "streaming_gif"
22

3-
config USB_UAV_JPEG_OUTBUF_SIZE
3+
config USB_UVC_JPEG_OUTBUF_SIZE
44
int "JPEG encoder output buffer size (bytes)"
55
range 8192 262144
66
default 61440

0 commit comments

Comments
 (0)