From f6b2325c2a4c3ede7fc9cfe9bf32e5c09f5a115e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Apr 2015 11:43:03 +0200 Subject: video/out: fix screenshot image formats Use variants without alpha. I skipped vo_sdl, because format selection seems a bit more complicated here, and nobody cares about vo_sdl anymore. --- video/out/vo_direct3d.c | 2 +- video/out/vo_rpi.c | 2 +- video/out/vo_vdpau.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index ac72efe2f8..b9e1b92326 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -1517,7 +1517,7 @@ static mp_image_t *get_window_screenshot(d3d_priv *priv) if (width < 1 || height < 1) goto error_exit; - image = mp_image_alloc(IMGFMT_BGR32, width, height); + image = mp_image_alloc(IMGFMT_BGR0, width, height); if (!image) goto error_exit; diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c index e197477987..48827b8a67 100644 --- a/video/out/vo_rpi.c +++ b/video/out/vo_rpi.c @@ -421,7 +421,7 @@ static struct mp_image *take_screenshot(struct vo *vo) { struct priv *p = vo->priv; - struct mp_image *img = mp_image_alloc(IMGFMT_BGRA, p->w, p->h); + struct mp_image *img = mp_image_alloc(IMGFMT_BGR0, p->w, p->h); if (!img) return NULL; diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index c0deea8178..f482b83236 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -831,7 +831,7 @@ static struct mp_image *read_output_surface(struct vo *vo, if (!vo->params) return NULL; - struct mp_image *image = mp_image_alloc(IMGFMT_BGR32, width, height); + struct mp_image *image = mp_image_alloc(IMGFMT_BGR0, width, height); if (!image) return NULL; -- cgit v1.2.3