On Wed, Sep 19, 2001 at 07:52:16PM -0700, Mark Vojkovich wrote:
> > I'd like to propose a change to Xv standard, to add a function
> > "XvGetImage",
> > which could be used to transfer data from videoram to system memory. 2
> > possible situations it can be used:
> What's the prototype look like. Ie, what's the source. Port
> or Drawable?
Hmm I haven't gone so far yet, I'd like to find out first whether my idea has
support in general or not.
I'm looking at R128's XvPutVideo function now, and I think the proposed
XvGetVideo should look similarly, but instead of copying the data from bt829
to a different place in video memory and telling the card to perfom YUV
conversion and scaling, it should be copied into userspace. Hence it seems to
be more reasonable to have Port as a source, as it will allow to capture
without displaying something which actually is what I want.
I.e. something like this:
int XvGetImage (
ScrnInfoPtr pScrn,
short src_x, short src_y,
short dst_x, short dst_y,
short src_w, short src_h,
short dst_w, short dst_h,
unsigned char* buf, // pointer to userspace
pointer data); // information about port and stuff
Hmm as I think more, having Drawable as a source could also allow interesting
stuff, like capturing over network (if you use remote Xserver).
What do you think?
Bye,
Peter Surda (Shurdeek) <[EMAIL PROTECTED]>, ICQ 10236103, +436505122023
--
PGP signature