combining Render's Composite + SHM's PutImage

2015-04-08 Thread Nigel Tao
I'm possibly Doing It Wrong, but... I'm playing around with an X client, I have some shared memory full of pixels, and I want to paint them on a window, with alpha-blending. I also want to know when the paint is complete, so I can re-use that shared memory buffer for different pixels. IIUC, Rende

Re: combining Render's Composite + SHM's PutImage

2015-04-09 Thread Nigel Tao
On Thu, Apr 9, 2015 at 6:39 PM, Chris Wilson wrote: > You can either read cairo for an example of how to mix SHM and Render, > or > http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/tools/virtual.c#n1819 Thanks for the tip. I'll give it more than a skim later, but one thing looked od

Re: combining Render's Composite + SHM's PutImage

2015-04-13 Thread Nigel Tao
On Fri, Apr 10, 2015 at 10:23 PM, Nigel Tao wrote: > Even where SHM CreatePixmap works, I can only seem to create a > depth-24 pixmap, which defeats the purpose of alpha-blending if the > shared-memory image's alpha channel is implicitly fully opaque. If I > try to create a depth

Re: combining Render's Composite + SHM's PutImage

2015-04-16 Thread Nigel Tao
On Fri, Apr 17, 2015 at 5:53 AM, Aaron Plattner wrote: > SHM pixmaps are only allowed if the driver enables them. It's the > application's job to check before trying to create one. In NVIDIA's case, > we disabled them because they can't be accelerated by the GPU and are > generally terrible for

X/Render, rotation transform, Src PICTOP: can I ignore pixels in the bounding box but outside the polygon?

2015-10-09 Thread Nigel Tao
I'm using X Render, and want to draw a playing card image onto my window, rotated (e.g. as part of a fan of cards in hand). For simplicity, suppose that playing cards are square and the rotation is by 45 degrees. The result is a diamond shape, so that in its bounding box, the pixels in (1) and out

Re: X/Render, rotation transform, Src PICTOP: can I ignore pixels in the bounding box but outside the polygon?

2016-05-17 Thread Nigel Tao
I sent this a few months ago, but got no response, not even a "what you're asking for isn't possible". I'd still like to know the answer (even if it's no), so I'm sending it out another (final) time. On Sat, Oct 10, 2015 at 3:38 PM, Nigel Tao wrote: >

Re: X/Render, rotation transform, Src PICTOP: can I ignore pixels in the bounding box but outside the polygon?

2016-05-21 Thread Nigel Tao
On Wed, May 18, 2016 at 8:07 PM, Ilya Anfimov wrote: > But anyway you can specify clip-mask with ChangePicture to use > bitmap of enabled pixels. Whould be better IMO than restricting > output line-by-line. > And that mask bitmap also could be calculated by RENDER. I suppose that will 'work