compositor: add capability CAPTURE_YFLIP
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 22 May 2013 15:03:05 +0000 (18:03 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 22 May 2013 20:56:58 +0000 (16:56 -0400)
commit4fc5dd0099c2e7992983b91f89ce66d14ff74b1e
treedf40dba81587751f91dfe5479e758274bf23c82d
parent7bb6510748522d31fb711257126f2231533d4dd1
compositor: add capability CAPTURE_YFLIP

Both GL and pixman renderer (pixman probably only because GL did?)
return the screen capture image as y-flipped, therefore Weston y-flips
it again. However, the future rpi-renderer can produce only right-way-up
(non-flipped) screen captures, and does not need an y-flip.

Add a capability flag for y-flip, which the rpi-renderer will not set,
to get screen captures the right way up.

The wcap recording code needs yet another temporary buffer for the
non-flipped case, since the WCAP format is flipped, and the code
normally overwrites the input image as it compresses it. This becomes
difficult, if the compressor is supposed to flip while processing.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor.c
src/compositor.h
src/gl-renderer.c
src/pixman-renderer.c
src/screenshooter.c