diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-01-30 19:11:28 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-06-14 22:23:43 +0100 |
commit | f2e4fb61af4b47c329fbf2b9a245594957d7bbab (patch) | |
tree | 352ea2f697b62fd0cf00cf2bb5aed9c5ec29ce43 /libavutil/hwcontext_vaapi.h | |
parent | 204008354f7f18fa9e64a6d487f65495f1cc9885 (diff) | |
download | ffmpeg-f2e4fb61af4b47c329fbf2b9a245594957d7bbab.tar.gz |
hwcontext_vaapi: Try to support the VDPAU wrapper
The driver is somewhat bitrotten (not updated for years) but is still
usable for decoding with this change. To support it, this adds a new
driver quirk to indicate no support at all for surface attributes.
Based on a patch by wm4 <nfxjfg@googlemail.com>.
(cherry picked from commit e791b915c774408fbc0ec9e7270b021899e08ccc)
Diffstat (limited to 'libavutil/hwcontext_vaapi.h')
-rw-r--r-- | libavutil/hwcontext_vaapi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vaapi.h b/libavutil/hwcontext_vaapi.h index da1d4fe6c2..0b2e071cb3 100644 --- a/libavutil/hwcontext_vaapi.h +++ b/libavutil/hwcontext_vaapi.h @@ -51,6 +51,13 @@ enum { * so the surface allocation code will not try to use it. */ AV_VAAPI_DRIVER_QUIRK_ATTRIB_MEMTYPE = (1 << 2), + + /** + * The driver does not support surface attributes at all. + * The surface allocation code will never pass them to surface allocation, + * and the results of the vaQuerySurfaceAttributes() call will be faked. + */ + AV_VAAPI_DRIVER_QUIRK_SURFACE_ATTRIBUTES = (1 << 3), }; /** |