public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: CityK <cityk@rogers.com>
To: Sergei Antonov <sa@sa.pp.ru>
Cc: video4linux-list@redhat.com
Subject: Re: Genius Look 317
Date: Sun, 22 Feb 2009 15:49:20 -0500	[thread overview]
Message-ID: <49A1BA50.4090201@rogers.com> (raw)
In-Reply-To: <F13ADD43ECED4C45A8BE7A74E5B02BFE@W1>

Sergei Antonov wrote:
> Hi!
> I'm trying to make 'Genius Look 317' (0c45:60b0, gspca recognizes it)
> webcam work.
>
> v4lgrab.c (from linux-2.6.28.5\Documentation\video4linux) loops
> infinitely in this code:
>
>  do {
>    int newbright;
>    read(fd, buffer, win.width * win.height * bpp);
>    f = get_brightness_adj(buffer, win.width * win.height, &newbright);
>    if (f) {
>      vpic.brightness += (newbright << 8);
>      if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
>        perror("VIDIOSPICT");
>        break;
>      }
>    }
>  } while (f);
>
> because variable 'f' is always non-zero.
> If I write 'while(0);' the resulting .ppm contains some random pixels
> in the top and the rest of the picture is black.
> Need help.

Hi, I'd re-title your message to include the fact that its a gspca based
webcam (to attract those developers attention) and send it off to the
linux-media mailing list (which is where discussion is transitioning to:
http://www.linuxtv.org/news.php?entry=2009-01-06.mchehab)

Cheers

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

  reply	other threads:[~2009-02-22 20:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-21 10:55 Genius Look 317 Sergei Antonov
2009-02-22 20:49 ` CityK [this message]
2009-02-23  8:52   ` Sergei Antonov

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=49A1BA50.4090201@rogers.com \
    --to=cityk@rogers.com \
    --cc=sa@sa.pp.ru \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox