On Tue, 2008-07-01 at 14:31 -0400, Kashyap Ashwin wrote: > with RGBA seems to be impossible. Does any one have any ideas on how > this can be done without memcopy and without multi-texture?
I'm only familiar with using fragment shaders to convert YV12 with multiple textures. I'm not sure how this would work with a packed format like YUY2. But yes, I assumed the multi-texture approach would be used. I don't see why you'd need an additional memcpy. You can call glTexSubImage2D, passing it pointers to each plane gotten straight from the video decoder. In fact, I believe if the planes are consecutive in memory, you just need one glTexSubImage2D call. (This is how Evas does it.) > With multi-texturing, you need to setup three textures in order to pull > it off. This is more suitable to do in a higher layer like the > clutter-gst-video-sink, don't you think? I think this is a useful enough operation to put in clutter proper. At least it'd be useful while implementing support for non-gstreamer players, and it'd be nice not to have duplicate that code. Jason. -- To unsubscribe send a mail to [EMAIL PROTECTED]
