[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5b236e95-b737-51b3-df4f-eea41a36735e@xs4all.nl>
Date: Fri, 5 Oct 2018 11:18:36 +0200
From: Hans Verkuil <hverkuil@...all.nl>
To: Keiichi Watanabe <keiichiw@...omium.org>,
Linux Media Mailing List <linux-media@...r.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Tomasz Figa <tfiga@...omium.org>,
Ricky Liang <jcliang@...omium.org>,
Shik Chen <shik@...omium.org>
Subject: Re: [PATCH] media: vivid: Support 480p for webcam capture
On 10/03/18 09:08, Keiichi Watanabe wrote:
> I think 480p is a common frame size and it's worth supporting in vivid.
> But, my patch might be ad-hoc. Actually, I'm not sure which values are
> suitable for the intervals.
I can apply this ad-hoc patch as-is.
Or do you want to postpone this and work on a more generic solution?
Although I am not sure what that would look like.
Proposals are welcome!
The main purpose of this code is to have something that kind of acts like
a real webcam that has various resolutions, and a slower framerate for
higher resolutions (as you would expect).
Regards,
Hans
>
> We might want to add a more flexible/extensible way to specify frame sizes.
> e.g. passing frame sizes and intervals as module parameters
>
> Kei
>
> On Wed, Oct 3, 2018 at 4:06 PM, Keiichi Watanabe <keiichiw@...omium.org> wrote:
>> Support 640x480 as a frame size for video input devices of vivid.
>>
>> Signed-off-by: Keiichi Watanabe <keiichiw@...omium.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
>>
Powered by blists - more mailing lists