linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: vivid: Support 480p for webcam capture
@ 2018-10-03  7:06 Keiichi Watanabe
  2018-10-03  7:08 ` Keiichi Watanabe
  2018-10-03 11:14 ` Kieran Bingham
  0 siblings, 2 replies; 17+ messages in thread
From: Keiichi Watanabe @ 2018-10-03  7:06 UTC (permalink / raw)
  To: linux-media
  Cc: Hans Verkuil, Mauro Carvalho Chehab, linux-kernel, tfiga,
	jcliang, shik, keiichiw

Support 640x480 as a frame size for video input devices of vivid.

Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org>
---
 drivers/media/platform/vivid/vivid-vid-cap.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/media/platform/vivid/vivid-vid-cap.c b/drivers/media/platform/vivid/vivid-vid-cap.c
index 58e14dd1dcd3..da80bf4bc365 100644
--- a/drivers/media/platform/vivid/vivid-vid-cap.c
+++ b/drivers/media/platform/vivid/vivid-vid-cap.c
@@ -51,7 +51,7 @@ static const struct vivid_fmt formats_ovl[] = {
 };
 
 /* The number of discrete webcam framesizes */
-#define VIVID_WEBCAM_SIZES 5
+#define VIVID_WEBCAM_SIZES 6
 /* The number of discrete webcam frameintervals */
 #define VIVID_WEBCAM_IVALS (VIVID_WEBCAM_SIZES * 2)
 
@@ -59,6 +59,7 @@ static const struct vivid_fmt formats_ovl[] = {
 static const struct v4l2_frmsize_discrete webcam_sizes[VIVID_WEBCAM_SIZES] = {
 	{  320, 180 },
 	{  640, 360 },
+	{  640, 480 },
 	{ 1280, 720 },
 	{ 1920, 1080 },
 	{ 3840, 2160 },
@@ -75,6 +76,8 @@ static const struct v4l2_fract webcam_intervals[VIVID_WEBCAM_IVALS] = {
 	{  1, 5 },
 	{  1, 10 },
 	{  1, 15 },
+	{  1, 15 },
+	{  1, 25 },
 	{  1, 25 },
 	{  1, 30 },
 	{  1, 50 },
-- 
2.19.0.605.g01d371f741-goog


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-10-09  6:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-03  7:06 [PATCH] media: vivid: Support 480p for webcam capture Keiichi Watanabe
2018-10-03  7:08 ` Keiichi Watanabe
2018-10-03 11:16   ` Kieran Bingham
2018-10-05  9:18   ` Hans Verkuil
2018-10-06 10:29     ` Keiichi Watanabe
2018-10-08  8:35       ` Kieran Bingham
2018-10-08  9:00         ` Hans Verkuil
2018-10-08  9:47           ` Kieran Bingham
2018-10-03 11:14 ` Kieran Bingham
2018-10-08 17:03   ` Mauro Carvalho Chehab
2018-10-08 17:53     ` Hans Verkuil
2018-10-08 18:23       ` Mauro Carvalho Chehab
2018-10-08 18:28         ` Mauro Carvalho Chehab
2018-10-08 18:31         ` Hans Verkuil
2018-10-08 19:00           ` Mauro Carvalho Chehab
2018-10-09  6:01             ` Keiichi Watanabe
2018-10-09  6:33               ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).