All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Francois Moine <moinejf@free.fr>
To: Antonio Ospite <ospite@studenti.unina.it>
Cc: video4linux-list@redhat.com
Subject: Re: [PATCH] gspca_ov534: Print only frame_rate actually used.
Date: Thu, 27 Nov 2008 13:22:33 +0100	[thread overview]
Message-ID: <1227788553.1752.42.camel@localhost> (raw)
In-Reply-To: <20081127120536.62b35cd6.ospite@studenti.unina.it>

On Thu, 2008-11-27 at 12:05 +0100, Antonio Ospite wrote:
> > The patch also includes removing the bulk_size setting at streamon time:
> > the value is already used at this time, and also, there is only one
> > resolution.
> We will add this again when we add other resolutions, OK.

The bulk_size must be set at the max resolution because it is used for
buffer allocation before stream on.

	[snip]
> >  /* V4L2 controls supported by the driver */
> > @@ -59,7 +58,7 @@
> >  	{640, 480, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE,
> >  	 .bytesperline = 640 * 2,
> >  	 .sizeimage = 640 * 480 * 2,
> > -	 .colorspace = V4L2_COLORSPACE_JPEG,
> > +	 .colorspace = V4L2_COLORSPACE_SRGB,
> >  	 .priv = 0},
> >  };
> >
> 
> Can you explain this one, please?

I think the JPEG images embed colorspace information, and here, it is
simple RGB.

> [snip]
> > @@ -433,7 +429,6 @@
> >  	int framesize = gspca_dev->cam.bulk_size;
> >  
> >  	if (len == framesize - 4) {
> > -		frame =
> >  		    gspca_frame_add(gspca_dev, FIRST_PACKET, frame, data, len);
> 
> This change is just to follow the convention used by other drivers,
> right? You could also adjust indentation on following line, then.

If you look carefully, the frame returned by gspca_frame_add() is
changed only when the packet type is LAST_PACKET. OK for the
indentation.

Cheers.

-- 
Ken ar c'hentañ |             ** Breizh ha Linux atav! **
Jef             |               http://moinejf.free.fr/


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

  reply	other threads:[~2008-11-27 12:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25 22:52 [PATCH] gspca_ov534: Print only frame_rate actually used Antonio Ospite
2008-11-27  9:23 ` Jean-Francois Moine
2008-11-27 11:05   ` Antonio Ospite
2008-11-27 12:22     ` Jean-Francois Moine [this message]
2008-11-27 13:52       ` Antonio Ospite
2008-12-03 16:45         ` Antonio Ospite
2008-12-03 18:01           ` Jim Paris
2008-12-03 18:44             ` Antonio Ospite
2008-12-03 19:17               ` Jean-Francois Moine
2008-12-04 11:55                 ` Antonio Ospite

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=1227788553.1752.42.camel@localhost \
    --to=moinejf@free.fr \
    --cc=ospite@studenti.unina.it \
    --cc=video4linux-list@redhat.com \
    /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.