diff options
author | wm4 <wm4@nowhere> | 2015-04-07 11:43:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-07 11:43:03 +0200 |
commit | f6b2325c2a4c3ede7fc9cfe9bf32e5c09f5a115e (patch) | |
tree | f49f0a68b96bd11a2ded283ae97d737ed00b8e53 /video | |
parent | efae88e5212372513bdad6c335050fe50d28c22d (diff) |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_direct3d.c | 2 | ||||
-rw-r--r-- | video/out/vo_rpi.c | 2 | ||||
-rw-r--r-- | 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; |