mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
f0b4a2c037
This adds an option for higher frame rates from a simulated webcam. Currently, vivid emulates (amongst other things) a webcam with somewhat limited bandwidth - higher resolutions deliver fewer frames per second. $ yavta --enum-formats -c /dev/video0 Device /dev/video0 opened. Device `vivid' on `platform:vivid-000' (driver 'vivid') supports video, capture, without mplanes. - Available formats: Format 0: YUYV (56595559) Type: Video capture (1) Name: YUYV 4:2:2 Frame size: 320x180 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25, 1/30, 1/40, 1/50, 1/60) Frame size: 640x360 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25, 1/30, 1/40) Frame size: 640x480 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25) Frame size: 1280x720 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25) Frame size: 1920x1080 (1/1, 1/2, 1/4, 1/5) Frame size: 3840x2160 (1/1, 1/2) In some test cases, it is useful to allow for higher frame rates, as configurations such as 720p@30 FPS have become commonplace now. This patch allows: 0- 719p - 120fps 720-1079p - 60fps 1080-2159p - 30fps 2160p - 15fps $ yavta --enum-formats -c /dev/video0 Device /dev/video0 opened. Device `vivid' on `platform:vivid-000' (driver 'vivid') supports video, capture, without mplanes. - Available formats: Format 0: YUYV (56595559) Type: Video capture (1) Name: YUYV 4:2:2 Frame size: 320x180 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25, 1/30, 1/40, 1/50, 1/60, 1/120) Frame size: 640x360 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25, 1/30, 1/40, 1/50, 1/60, 1/120) Frame size: 640x480 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25, 1/30, 1/40, 1/50, 1/60, 1/120) Frame size: 1280x720 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25, 1/30, 1/40, 1/50, 1/60) Frame size: 1920x1080 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15, 1/25, 1/30) Frame size: 3840x2160 (1/1, 1/2, 1/4, 1/5, 1/10, 2/25, 1/15) Passes: v4l2-compliance 1.25.0-5039 from v4l-utils git ccc08732823f Signed-off-by: Max Staudt <mstaudt@chromium.org> Reviewed-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: unsigned -> unsigned int] |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
vivid-cec.c | ||
vivid-cec.h | ||
vivid-core.c | ||
vivid-core.h | ||
vivid-ctrls.c | ||
vivid-ctrls.h | ||
vivid-kthread-cap.c | ||
vivid-kthread-cap.h | ||
vivid-kthread-out.c | ||
vivid-kthread-out.h | ||
vivid-kthread-touch.c | ||
vivid-kthread-touch.h | ||
vivid-meta-cap.c | ||
vivid-meta-cap.h | ||
vivid-meta-out.c | ||
vivid-meta-out.h | ||
vivid-osd.c | ||
vivid-osd.h | ||
vivid-radio-common.c | ||
vivid-radio-common.h | ||
vivid-radio-rx.c | ||
vivid-radio-rx.h | ||
vivid-radio-tx.c | ||
vivid-radio-tx.h | ||
vivid-rds-gen.c | ||
vivid-rds-gen.h | ||
vivid-sdr-cap.c | ||
vivid-sdr-cap.h | ||
vivid-touch-cap.c | ||
vivid-touch-cap.h | ||
vivid-vbi-cap.c | ||
vivid-vbi-cap.h | ||
vivid-vbi-gen.c | ||
vivid-vbi-gen.h | ||
vivid-vbi-out.c | ||
vivid-vbi-out.h | ||
vivid-vid-cap.c | ||
vivid-vid-cap.h | ||
vivid-vid-common.c | ||
vivid-vid-common.h | ||
vivid-vid-out.c | ||
vivid-vid-out.h |