From: Kirill Smelkov <kirr@mns.spb.ru>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,
linux-media@vger.kernel.org
Subject: Re: [PATCH v5] [media] vivi: Teach it to tune FPS
Date: Fri, 16 Nov 2012 19:02:05 +0400 [thread overview]
Message-ID: <20121116150205.GB14917@tugrik.mns.mnsspb.ru> (raw)
In-Reply-To: <201211161551.23525.hverkuil@xs4all.nl>
On Fri, Nov 16, 2012 at 03:51:23PM +0100, Hans Verkuil wrote:
> On Fri November 16 2012 15:48:41 Kirill Smelkov wrote:
> > On Fri, Nov 16, 2012 at 02:38:09PM +0100, Hans Verkuil wrote:
> > > On Wed November 7 2012 12:30:01 Kirill Smelkov wrote:
> > [...]
> >
> > > > diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c
> > > > index 37d0af8..5d1b374 100644
> > > > --- a/drivers/media/platform/vivi.c
> > > > +++ b/drivers/media/platform/vivi.c
> > > > @@ -65,8 +65,11 @@ MODULE_PARM_DESC(vid_limit, "capture memory limit in megabytes");
> > > > /* Global font descriptor */
> > > > static const u8 *font8x16;
> > > >
> > > > -/* default to NTSC timeperframe */
> > > > -static const struct v4l2_fract TPF_DEFAULT = {.numerator = 1001, .denominator = 30000};
> > > > +/* timeperframe: min/max and default */
> > > > +static const struct v4l2_fract
> > > > + tpf_min = {.numerator = 1, .denominator = UINT_MAX}, /* 1/infty */
> > > > + tpf_max = {.numerator = UINT_MAX, .denominator = 1}, /* infty */
> > >
> > > I understand your reasoning here, but I wouldn't go with UINT_MAX here. Something like
> > > 1/1000 tpf (or 1 ms) up to 86400/1 tpf (or once a day). With UINT_MAX I am afraid we
> > > might hit application errors when they manipulate these values. The shortest time
> > > between frames is 1 ms anyway.
> > >
> > > It's the only comment I have, it looks good otherwise.
> >
> > Thanks, Let's then merge it with 1/1000 - 1000/1 limit. Ok?
>
> OK.
Thanks.
next prev parent reply other threads:[~2012-11-16 15:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-22 13:54 [PATCH 1/2] [media] vivi: Kill BUFFER_TIMEOUT macro Kirill Smelkov
2012-10-22 13:54 ` [PATCH 2/2] [media] vivi: Teach it to tune FPS Kirill Smelkov
2012-10-22 14:16 ` Hans Verkuil
2012-10-22 17:01 ` Kirill Smelkov
2012-10-22 17:29 ` Kirill Smelkov
2012-10-23 6:27 ` Hans Verkuil
2012-10-23 6:40 ` Hans Verkuil
2012-10-23 13:35 ` [PATCH v3] " Kirill Smelkov
2012-11-02 14:09 ` Kirill Smelkov
2012-11-02 14:42 ` Hans Verkuil
2012-11-02 16:44 ` Kirill Smelkov
2012-11-07 11:30 ` [PATCH v4] " Kirill Smelkov
2012-11-12 8:12 ` Kirill Smelkov
2012-11-12 9:46 ` Hans Verkuil
2012-11-12 10:45 ` Kirill Smelkov
2012-11-16 13:38 ` Hans Verkuil
2012-11-16 14:48 ` [PATCH v5] " Kirill Smelkov
2012-11-16 14:51 ` Hans Verkuil
2012-11-16 15:02 ` Kirill Smelkov [this message]
2012-11-16 15:46 ` [PATCH v4] " Mauro Carvalho Chehab
2012-11-17 10:45 ` Kirill Smelkov
2012-11-18 9:24 ` Mauro Carvalho Chehab
2012-11-18 9:25 ` Mauro Carvalho Chehab
2012-11-19 5:52 ` [PATCH v6] " Kirill Smelkov
2012-11-30 11:02 ` Kirill Smelkov
2012-11-30 11:10 ` Hans Verkuil
2012-11-30 12:16 ` Kirill Smelkov
2012-10-22 14:16 ` [PATCH 1/2] [media] vivi: Kill BUFFER_TIMEOUT macro Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121116150205.GB14917@tugrik.mns.mnsspb.ru \
--to=kirr@mns.spb.ru \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.