From 641e94cd27eb3b0b152ac5003d371793904609c8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Sep 2013 22:47:50 +0200 Subject: vaapi: allow GPU read-back with --hwdec=vaapi-copy This code is actually quite inefficient: it reuses the (slow, simple) screenshot code. It uses an inefficient method to read the image (vaGetImage() instead of vaDeriveImage()), allocates new memory for each frame that is read, and it tries all image formats again each time. Also, in my tests it always picked NV12 as image format, which is not ideal if you actually want to filter the video, and vo_xv can't handle this format without conversion either. However, a user confirmed that it worked for him, so everything is fine. --- video/decode/lavc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/decode/lavc.h') diff --git a/video/decode/lavc.h b/video/decode/lavc.h index 681f151ad0..32b827b964 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -18,6 +18,7 @@ enum hwdec_type { HWDEC_VDA = 2, HWDEC_CRYSTALHD = 3, HWDEC_VAAPI = 4, + HWDEC_VAAPI_COPY = 5, }; typedef struct lavc_ctx { -- cgit v1.2.3