* Re: Looking for a suitable framework for my driver
[not found] <262680468.1060510.1419425058997.JavaMail.yahoo@jws11159.mail.ir2.yahoo.com>
@ 2014-12-24 12:56 ` Hans Verkuil
0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2014-12-24 12:56 UTC (permalink / raw)
To: sadegh abbasi, linux-media@vger.kernel.org
On 12/24/2014 01:44 PM, sadegh abbasi wrote:
> Hello everybody,
>
> I need to write a driver for a video-in device and need
> to choose the best framework for it. I think V4L2 can be used but would like to
> know if any more suitable framework exists. Also if there is an existing similar
> driver under linux that you are aware of please let me know. The idea is not to
> waste people's time with the wrong approach or wrong subsystem.
> Here is a brief description of the hardware capabilities:
> 1. It captures digital video input and writes it to memory after optional colour space conversion (CSC) and scaling.
> 2. It supports DVI/HDMI inputs, providing 20/24/30/48-bit RGB/YCbCr, and running at up to 1600x1280x75Hz.
> 3. It supports frame sizes up to UHD 4096x2304, interlaced and progressive video, and range of RGB and YCbCr formats
> for input and output.
> 4. Both packed and planar formats are supported. The supported output formats are as follows.
>
> 444 YUV101010; 422 UYVY10101010; PL12Y10/422PL12UV10; PL12Y10/420PL12UV10; PL12Y8/422PL12UV8; PL12Y8/420PL12UV8; RGB121212.5. The CSC is applied to the RGB input performing a 3x3 Matrix multiply with
> programmable coefficients and programmable input and output offsets. It can also adjust brightness, contrast,
> saturation and hue.
> 6. It has its own MMU and DMA.
>
> Any suggestions is highly appreciated.
>
V4L2 is the right and only framework for this.
The vivid driver emulates an HDMI input, so that's not a bad place to start.
Another template to use is Documentation/video4linux/v4l2-pci-skeleton.c.
You might have to make some additions to the framework to support deep color
formats (nobody needed it until now), but that's trivial and we can help with
that.
There is also no support yet for programmable CSC coefficients, but work is in
progress for that.
Regards,
Hans
^ permalink raw reply [flat|nested] 2+ messages in thread
* Looking for a suitable framework for my driver
@ 2015-01-02 10:06 Sadegh Abbasi
0 siblings, 0 replies; 2+ messages in thread
From: Sadegh Abbasi @ 2015-01-02 10:06 UTC (permalink / raw)
To: linux-media
Hello everybody,
I need to write a driver for a video-in device and need
to choose the best framework for it. I think V4L2 can be used but would like to
know if any more suitable framework exists. Also if there is an existing similar
driver under linux that you are aware of please let me know. The idea is not to
waste people's time with the wrong approach or wrong subsystem.
Here is a brief description of the hardware capabilities:
1. It captures digital video input and writes it to memory after
optional colour space conversion (CSC) and scaling.
2. It supports DVI/HDMI inputs, providing 20/24/30/48-bit RGB/YCbCr,
and running at up to 1600x1280x75Hz.
3. It supports frame sizes up to UHD 4096x2304, interlaced and
progressive video, and range of RGB and YCbCr formats
for input and output.
4. Both packed and planar formats are supported. The supported output
formats are as follows.
444 YUV101010; 422 UYVY10101010; PL12Y10/422PL12UV10;
PL12Y10/420PL12UV10; PL12Y8/422PL12UV8; PL12Y8/420PL12UV8;
RGB121212.5. The CSC is applied to the RGB input performing a 3x3
Matrix multiply with
programmable coefficients and programmable input and output offsets.
It can also adjust brightness, contrast,
saturation and hue.
6. It has its own MMU and DMA.
Any suggestions is highly appreciated.
Sadegh Abbasi
4abbasi@gmail.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-02 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <262680468.1060510.1419425058997.JavaMail.yahoo@jws11159.mail.ir2.yahoo.com>
2014-12-24 12:56 ` Looking for a suitable framework for my driver Hans Verkuil
2015-01-02 10:06 Sadegh Abbasi
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).