Re: [Interest] allocate QImage data in QSharedMemory

2016-12-12 Thread Philip Schuchardt
Josh, I'm curious how this worked out for you? Were you able to get the CPU load down? On Mon, Dec 12, 2016 at 5:03 PM Joshua Grauman wrote: > Brilliant! How did I miss that constructor?! > > Josh > > > Hi,Why not construct the image object from the shared memory buffer to > begin with? Then lo

Re: [Interest] allocate QImage data in QSharedMemory

2016-12-12 Thread Joshua Grauman
Brilliant! How did I miss that constructor?! Josh Hi,Why not construct the image object from the shared memory buffer to begin with? Then lock the sm while drawing. Look for example this constructor: http://doc.qt.io/qt-5/qimage.html#QImage-3 On Mon, Dec 12, 2016 at 11:45 PM, Joshua Grauman

Re: [Interest] allocate QImage data in QSharedMemory

2016-12-12 Thread Konstantin Shegunov
Hi, Why not construct the image object from the shared memory buffer to begin with? Then lock the sm while drawing. Look for example this constructor: http://doc.qt.io/qt-5/qimage.html#QImage-3 On Mon, Dec 12, 2016 at 11:45 PM, Joshua Grauman wrote: > Hello all, > > I have been able to generate

[Interest] allocate QImage data in QSharedMemory

2016-12-12 Thread Joshua Grauman
Hello all, I have been able to generate a screen capture of my program by rendering a window into a QImage at 30fps (called from QTimer), and then copying the QImage to shared memory (QSharedMemory) where another program grabs the frames and outputs them to ffmpeg. It all works great. Howeve