public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* output overlay driver and pix format
@ 2008-10-27 21:18 Matt Porter
  2008-10-27 21:59 ` Hans Verkuil
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Porter @ 2008-10-27 21:18 UTC (permalink / raw)
  To: video4linux-list

I'm working on a driver for an internal image processing block in an
SoC. This functionality can combine a buffer stream in various YUV/RGB
formats (selectable) with the framebuffer (or any arbitrary buffer one
wishes to overlay).

This fits quite well into the OUTPUT_OVERLAY support for the most part.
However, the driver will not have OUTPUT capability at all. That is, there is
not a direct external output from the image processor so it doesn't not make
sense to define OUTPUT capability. The results of the image processing
are left in a target buffer that may be used for tv/lcd encoding or fed
back in for additional image processing operations.

So the idea is to set the OUTPUT_OVERLAY pix format to one of the supported
formats, set cropping/scaling/blending. Feed it buffers and it blends
with the framebuffer, shoving the result to the internal target buffer.

The problem is that the V4L2 spec seems to imply that an OUTPUT_OVERLAY
device should not touch the fmtdesc pix fields. In my case, the user needs
to configure 1 of N pixelformat types that can be fed to the OUTPUT_OVERLAY
device. Is this allowed or am I using OUTPUT_OVERLAY differently than
intended? It seems that overlay devices may only be intended to be used
with an associated OUTPUT (or INPUT) device that defines the pix format.

The bottom line is: does it make sense to have a driver with only
OUTPUT_OVERLAY capability?

Any clues here are appreciated.

Thanks,
Matt

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-10-28 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 21:18 output overlay driver and pix format Matt Porter
2008-10-27 21:59 ` Hans Verkuil
2008-10-28  2:00   ` Matt Porter
2008-10-28  7:20     ` Hans Verkuil
2008-10-28 15:28       ` Matt Porter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox