69030 zoom video port for capture

2004-02-10 Thread Suhaib Chishtie



I have v4l device which outputs data to chips 69030 
using zoom video port in YUV format. When chip driver is called by X11 v4l 
module to open an offscreen surface in YUV format, the driver only sets up the 
BitBlt playback engine. It doesn't set up the capture engine (which enables 
playing back zoom port data).

Only the BitBlt playback engine is needed if the 
client is directly writing to offscreen frame buffer either using DMA or using 
memcpy (software decoders). But both the playback and the capture engines are 
needed to display the data being passed to zoom port directly (via dedicated 
hardware bus or direct cable connection to video chip).

My question is,
How should this be implemented? If I enable capture 
engine alongwith playback engine for any offscreen surface then software 
decoders and capture cards using DMA won't work. And if I don't do it then 
capture cards (like mine) using zoom port won't work.

Thanks in advance for any suggestion

Suhaib



Re: Newbie question, difference between offscreen and onscreen image formats?

2004-02-09 Thread Suhaib Chishtie
- Original Message -
From: Mark Vojkovich [EMAIL PROTECTED]
To: Suhaib Chishtie [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, February 09, 2004 5:36 PM
Subject: Re: Newbie question, difference between offscreen and onscreen
image formats?


 
  I know chiip and tech 69000/69030 supports both YUV and RGB overlays. So
I
  guess, all the formats should also be registered as offscreen formats.
Any
  idea what else needs to be changed? Like which functions get called to
  set/start/stop/capture overlays.
 
  Or should I contact one of the chips driver's developer?

   I think you should at least to verify that there's not a
 reason why it shouldn't be exposed.


I'll modify the code and make it work first. I'm sure its doable, I have it
running under DOS using debug code and windows using my frame grabber driver
and stock chips windows driver.

Suhaib



___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Newbie question, difference between offscreen and onscreen image formats?

2004-02-08 Thread Suhaib Chishtie
Sent: Saturday, February 07, 2004 6:29 PM
Subject: Re: Newbie question, difference between offscreen and onscreen
image formats?


 The image formats registered via xf86XVScreenInit are ones that
 are exported to the clients.  The ones registered via
 xf86XVRegisterOffscreenImages are for internal use only.  The
 idea being that they are the hardware's native overlay format or
 formats that can be exposed to other parts of the server such as
 a module which uses V4L.  Reasons why some formats would be
 exposed as client XvImages while they wouldn't be exposed as
 OffscreenImages could be:

   * The XvImage formats aren't implemented via the overlay, but
 with some texture or blit mechanism.

   * The XvImage formats, though using the overlay, aren't the native
 hardware format and require CPU reformating on the copy.

   * There are hardware or software complications related to other
 devices bus mastering data into those overlay formats.

   * Simply an oversight, or somebody just didn't get around to
 adding them, or didn't have a way to adequetly test them.



Thanks for the explaination.

I know chiip and tech 69000/69030 supports both YUV and RGB overlays. So I
guess, all the formats should also be registered as offscreen formats. Any
idea what else needs to be changed? Like which functions get called to
set/start/stop/capture overlays.

Or should I contact one of the chips driver's developer?

Suhaib


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Newbie question, difference between offscreen and onscreen image formats?

2004-02-07 Thread Suhaib Chishtie



I'm trying to make v4l driver to work with chips (Chips and tech
69030) x11 driver. The frame grabber can only write directly to
offscreen video memory in YUV format. But the X11 v4l driver reports
RGB as the only offscreen image format available. Althoough the chips
does support both RGB and YUV for offscreen overlays.

Further investigation in chips driver revealed that chips driver is
registering only RGB as offscreen format and both RGB and YUV as
supported image format by calling xf86XVListGenericAdaptors and
xf86XVScreenInit functions.

My question is, What is the difference between offscreen image format
registered via xf86XVRegisterOffscreenImages and image formats
registered via calls to xf86XVListGenericAdaptors and
xf86XVScreenInit?

Almost all of the video drivers register only one (usually YUV) format
as Offscreen image format and more formats via the screeninit calls.
If they support overlay in both RGB and YUV formats, should they not
be registering all the formats as offscreen formats too?

Any suggestion/advice is appreciated

Cheers,
Suhaib