avdevice/xcbgrab: use a buffer pool for shared memory segments
authorMarton Balint <cus@passwd.hu>
Sat, 7 Dec 2019 19:41:44 +0000 (20:41 +0100)
committerMarton Balint <cus@passwd.hu>
Wed, 25 Dec 2019 23:47:24 +0000 (00:47 +0100)
commitc991e9cd91845044e93a9c89dd25b48ae707461b
tree6db3b2985008bf5ce6895b96a5920b0d44678260
parent16685114d5999a9b5ab3ea537d89fca3669d94c9
avdevice/xcbgrab: use a buffer pool for shared memory segments

Also by wrapping the SHM buffer in an AVBufferRef we eliminate yet another
possible memcpy improving performance.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/xcbgrab.c