From 2ed9370bd69806685ae18897831dac6ab90f5ea5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Sep 2015 14:13:32 +0200 Subject: vf_vavpp: allocate output surfaces with the same size as input This can happen if the hw decoder allocates padded surfaces (e.g. mod16), but the VPP output surface was allocated with the exact size. Apparently VPP requires matching input and output sizes, or it will add artifacts. In this case, it added mirrored pixels to the bottom few pixels. Note that the previous commit should have fixed this. But it didn't work, while this commit does. Fixes #2320. --- video/vaapi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/vaapi.h') diff --git a/video/vaapi.h b/video/vaapi.h index 7ed61669f5..c9692f61e1 100644 --- a/video/vaapi.h +++ b/video/vaapi.h @@ -69,6 +69,8 @@ VAImageFormat * va_image_format_from_imgfmt(struct mp_vaapi_ctx *ctx, i bool va_image_map(struct mp_vaapi_ctx *ctx, VAImage *image, struct mp_image *mpi); bool va_image_unmap(struct mp_vaapi_ctx *ctx, VAImage *image); +void va_surface_get_uncropped_size(struct mp_image *mpi, int *out_w, int *out_h); + void va_pool_set_allocator(struct mp_image_pool *pool, struct mp_vaapi_ctx *ctx, int rt_format); -- cgit v1.2.3