diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2013-05-22 18:03:05 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-05-22 16:56:58 -0400 |
commit | 4fc5dd0099c2e7992983b91f89ce66d14ff74b1e (patch) | |
tree | df40dba81587751f91dfe5479e758274bf23c82d /src/pixman-renderer.c | |
parent | 7bb6510748522d31fb711257126f2231533d4dd1 (diff) | |
download | weston-4fc5dd0099c2e7992983b91f89ce66d14ff74b1e.tar.gz |
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>
Diffstat (limited to 'src/pixman-renderer.c')
-rw-r--r-- | src/pixman-renderer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c index eea32fc0..315ea152 100644 --- a/src/pixman-renderer.c +++ b/src/pixman-renderer.c @@ -659,6 +659,7 @@ pixman_renderer_init(struct weston_compositor *ec) renderer->base.destroy = pixman_renderer_destroy; ec->renderer = &renderer->base; ec->capabilities |= WESTON_CAP_ROTATION_ANY; + ec->capabilities |= WESTON_CAP_CAPTURE_YFLIP; weston_compositor_add_debug_binding(ec, KEY_R, debug_binding, ec); |