mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: volodya@mindspring.com
To: Nate Dannenberg <natedac@kscable.com>
Cc: livid-gatos@linuxvideo.org, video4linux-list@redhat.com,
	linux-kernel@vger.kernel.org
Subject: Re: [livid-gatos] [RFC] alternative kernel multimedia API
Date: Thu, 25 Oct 2001 19:14:47 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.20.0110251911520.9634-100000@node2.localnet.net> (raw)
In-Reply-To: <Pine.LNX.4.33.0110251534240.31044-100000@daconcepts.dyndns.org>



On Thu, 25 Oct 2001, Nate Dannenberg wrote:

> On Thu, 25 Oct 2001 volodya@mindspring.com wrote:
> 
> >
> >  After looking at and working with Xv, v4l and v4l2 I became somewhat
> > dissatisfied with the current state of affairs. I have attached a
> > description of the API that would make (at least) me much happier.
> >
> >  I would very much appreciate comments from interested people..
> 
> I'm not a coder for Linux or X, but I figured this would be a good read
> anyway, as it might provide some ideas for a similar (albeit less complex)
> issue on another platform I use >:-)
> 
> Anyways since this is an RFC, here's the only a couple of comments I can
> think of (the RFC otherwise looks clear to me):
> 
> 
> Commands/queries should also include some kind of (arbitrary, decided by the
> calling program) command serial number, so that an out-of-sequence reply
> (those prepended with a colon as you describe) can be matched to a previous
> command/query.  This could allow several commands to be sent and handled by
> multiple processes/threads/whatever.

out of sequence replies are meant to be volunteered by the driver, not
requested by the application (thought the application may want to turn
on/off their generation)  I thought about putting a restriction that
prohibits the user application from doing this: write one query, write
another query, read one reply, read another reply and instead require it
to always: write query, read all replies, repeat if necessary. This will
conserve the space used by buffers for the control device.

                        Vladimir Dergachev

> 
>  05,HUE=7\n
>  07,some unrelated command
> +05\n				# The HUE command was successful
> :07,reply to unrelated command
> :05,HUE=6\n			# Driver reported the HUE parameter as
> 				# different from that most recently set.
> 
> The program wanted to set HUE to 7, command successful, value later returned
> was 6 (maybe the device only allows even values), while at the same time some
> other command was sent and processed.
> 
> Also, it might be a nice idea to return the range of one or more parameters if
> a command given is out of range.  Suppose HUE is only valid for values 0-255:
> 
>  06,HUE=300\n
> -06,HUE=INVALID,0,255\n
> 
> ..Would tell the calling program that a value given for HUE is only valid for
> a range of 0 to 255.  This would be useful for a program that wants to attempt
> to guess the range a device accepts for a given parameter.
> 
> -- 
>  _________________________ ___ ___
> |  natedac@kscable.com    //ZZ]__ |
> |      C64/C128/SCPU     |'/  |Z/ |
> | What's *YOUR* Hobby!?  | \__|_\ |
> |_________________________\___]___|
> 
> 


  reply	other threads:[~2001-10-25 23:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-25 17:06 volodya
2001-10-25 20:51 ` [livid-gatos] " Nate Dannenberg
2001-10-25 23:14   ` volodya [this message]
2001-10-26 10:35     ` Xavier Bestel
2001-10-26 11:58       ` volodya
2001-10-26 16:38         ` Morgan Collins [Ax0n]
2001-10-26 13:32 ` Pavel Machek
2001-10-27  1:04 ` [livid-gatos] " Mark Whitis
2001-10-27  4:06   ` volodya

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=Pine.LNX.4.20.0110251911520.9634-100000@node2.localnet.net \
    --to=volodya@mindspring.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=livid-gatos@linuxvideo.org \
    --cc=natedac@kscable.com \
    --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

all inboxes | Powered by JetHome®