linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Andy Walls <awalls@md.metrocast.net>
Cc: linux-media@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCHv1 02/12] vivid.txt: add documentation for the vivid driver.
Date: Fri, 01 Aug 2014 12:14:15 +0200	[thread overview]
Message-ID: <53DB6877.1070001@xs4all.nl> (raw)
In-Reply-To: <1406834177.1912.25.camel@palomino.walls.org>

On 07/31/2014 09:16 PM, Andy Walls wrote:
> On Wed, 2014-07-30 at 16:23 +0200, Hans Verkuil wrote:
>> From: Hans Verkuil <hans.verkuil@cisco.com>
>>
>> The vivid Virtual Video Test Driver helps testing V4L2 applications
>> and can emulate V4L2 hardware. Add the documentation for this driver
>> first.
>>
>> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
>> ---
>>  Documentation/video4linux/vivid.txt | 1108 +++++++++++++++++++++++++++++++++++
>>  1 file changed, 1108 insertions(+)
>>  create mode 100644 Documentation/video4linux/vivid.txt
>>
>> diff --git a/Documentation/video4linux/vivid.txt b/Documentation/video4linux/vivid.txt
>> new file mode 100644
>> index 0000000..2dc7354
>> --- /dev/null
>> +++ b/Documentation/video4linux/vivid.txt
>> @@ -0,0 +1,1108 @@
>> +vivid: Virtual Video Test Driver
>> +================================
> 
>> +
>> +Section 8: Software Defined Radio Receiver
>> +------------------------------------------
>> +
>> +The SDR receiver has three frequency bands for the ADC tuner:
>> +
>> +	- 300 kHz
>> +	- 900 kHz - 2800 kHz
>> +	- 3200 kHz
>> +
>> +The RF tuner supports 50 MHz - 2000 MHz.
>> +
>> +The generated data contains sinus and cosinus signals.
>> +
> 
> In (American) English the names are "sine" and "cosine" for sin(x) and
> cos(x).

I knew that. Really :-)

One of the rare (I think) cases where my native Dutch interfered with English.

> 
> Maybe say:
> 
> "The generated data contains the In-phase and Quadrature components of a
> 1 kHz tone that has an amplitude of sqrt(2)."
> 
> FWIW, the signals are the In-phase and Quadrature components of the
> signal A*cos(2*pi*f + phi), where f = 1 kHz, A = sqrt(2), and phi =
> -pi/4
> 
>> +
>> +Section 15: Some Future Improvements
>> +------------------------------------
>> +
>> +Just as a reminder and in no particular order:
>> +
>> +- Add a virtual alsa driver to test audio
>> +- Add virtual sub-devices and media controller support
>> +- Some support for testing compressed video
>> +- Add support to loop raw VBI output to raw VBI input
>> +- Fix sequence/field numbering when looping of video with alternate fields
>> +- Add support for V4L2_CID_BG_COLOR for video outputs
>> +- Add ARGB888 overlay support: better testing of the alpha channel
>> +- Add custom DV timings support
>> +- Add support for V4L2_DV_FL_REDUCED_FPS
>> +- Improve pixel aspect support in the tpg code by passing a real v4l2_fract
>> +- Use per-queue locks and/or per-device locks to improve throughput
>> +- Add support to loop from a specific output to a specific input across
>> +  vivid instances
>> +- Add support for VIDIOC_EXPBUF once support for that has been added to vb2
>> +- The SDR radio should use the same 'frequencies' for stations as the normal
>> +  radio receiver, and give back noise if the frequency doesn't match up with
>> +  a station frequency
>> +- Improve the sinus generation of the SDR radio.
> 
> Maybe a lookup table, containing the first quarter wave of cos() from 0
> to pi/2 in pi/200 steps, and then linear interpolation for cos() of
> angles in between those steps.  You could go with a larger lookup table
> with finer grained steps to reduce the approximation errors.  A lookup
> table with linear interpolation, I would think, requires fewer
> mutliplies and divides than the current Taylor expansion computation.

Yeah, I had plans for that. There actually is a sine-table already in vivid-tpg.c
since I'm using that to implement Hue support.

Regards,

	Hans

> 
> 
>> +- Make a thread for the RDS generation, that would help in particular for the
>> +  "Controls" RDS Rx I/O Mode as the read-only RDS controls could be updated
>> +  in real-time.
> 
> Regards,
> Andy
> 


  reply	other threads:[~2014-08-01 10:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 14:23 [PATCHv1 00/12] vivid: Virtual Video Test Driver Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 01/12] vb2: fix multiplanar read() with non-zero data_offset Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 02/12] vivid.txt: add documentation for the vivid driver Hans Verkuil
2014-07-31 19:16   ` Andy Walls
2014-08-01 10:14     ` Hans Verkuil [this message]
2014-08-01 15:19       ` Antonio Ospite
2014-08-01 15:33         ` Antti Palosaari
2014-08-01 20:50           ` Andy Walls
2014-07-30 14:23 ` [PATCHv1 03/12] vivid: add core driver code Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 04/12] vivid: add the control handling code Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 05/12] vivid: add the video capture and output parts Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 06/12] vivid: add VBI capture and output code Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 07/12] vivid: add the kthread code that controls the video rate Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 08/12] vivid: add a simple framebuffer device for overlay testing Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 09/12] vivid: add the Test Pattern Generator Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 10/12] vivid: add support for radio receivers and transmitters Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 11/12] vivid: add support for software defined radio Hans Verkuil
2014-07-30 14:23 ` [PATCHv1 12/12] vivid: enable the vivid driver 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=53DB6877.1070001@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=awalls@md.metrocast.net \
    --cc=hans.verkuil@cisco.com \
    --cc=linux-media@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).