On Mon, Sep 15, 2008 at 01:22:14PM -0700, Jon Dufresne wrote:
> > Using df_layer...
> 
> Ok, I have been testing with this utility today and I have a question,
> 
> if I dump the contents of lock->addr, for the size of a the image
> (while accounting for the pitch), should I have a copy of the image
> that is to be display in the overlay?

If you do the dumping in FlipRegion() and the application has actually
filled the buffer with the correct data, then yes, you should get a
copy of the image. Naturally you need to take the layer's pixelformat
into account when doing the dumping. If you try to dump in SetRegion()
then you will probably get garbage since the application hasn't filled
the buffer with the correct data yet. Note that df_layer apparently
doesn't use double buffering so FlipRegion() won't be called.

> I ask because if I dump the contents of this buffer, then I typically
> see all green,

All green could be a YUV buffer that has been memset() to 0.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to