summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Scally <dan.scally@ideasonboard.com>2022-09-05 10:08:15 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-11-17 23:39:24 +0000
commit26af36611ed23e9fa08b2ba92053f4ad42078343 (patch)
tree11be90f1978418389d1f6c097fa4bf25ccab8e3a /scripts
parent75c224d8963b0d1b42fb0b7e7634c3513cf52481 (diff)
uvc-gadget.sh: Add additional frame sizes for MJPEG format
Add a new frame describing a 640x480 frame size, and 640x360 frame size for MJPEG format. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/uvc-gadget.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/uvc-gadget.sh b/scripts/uvc-gadget.sh
index c21f52b..dceecd9 100755
--- a/scripts/uvc-gadget.sh
+++ b/scripts/uvc-gadget.sh
@@ -122,6 +122,8 @@ create_uvc() {
create_frame $FUNCTION 1280 720 uncompressed u
create_frame $FUNCTION 320 180 uncompressed u
create_frame $FUNCTION 1920 1080 mjpeg m
+ create_frame $FUNCTION 640 480 mjpeg m
+ create_frame $FUNCTION 640 360 mjpeg m
mkdir functions/$FUNCTION/streaming/header/h
cd functions/$FUNCTION/streaming/header/h