diff options
author | Philip Langdale <philipl@overt.org> | 2019-12-11 17:40:19 -0800 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2019-12-28 14:31:34 -0800 |
commit | 49cbc5017cf78b2813560e631cf568f52ca4fc4c (patch) | |
tree | 3c31589db90301a34fed9f45e7d18b11638da6a1 /video/out/hwdec/hwdec_vaapi.h | |
parent | eb852dc50c42ccc68a4a56d03baefc34dc20ebd8 (diff) | |
download | mpv-49cbc5017cf78b2813560e631cf568f52ca4fc4c.tar.bz2 mpv-49cbc5017cf78b2813560e631cf568f52ca4fc4c.tar.xz |
vo_gpu: hwdec_vaegl: remove support for old-style interop
In vaapi 1.1.0 (which confusingly is libva release 2.1.0), they
introduced a new surface export API that is more efficient, and
we've been supporting that and the old API ever since (Feb 2018).
If we drop support for the old API, we can do some fairly nice cleanup
of the code.
Note that the pkgconfig entries are explicitly versioned by the API
version and not the library version. I confirmed the upstream pkgconfig
files.
Diffstat (limited to 'video/out/hwdec/hwdec_vaapi.h')
-rw-r--r-- | video/out/hwdec/hwdec_vaapi.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/video/out/hwdec/hwdec_vaapi.h b/video/out/hwdec/hwdec_vaapi.h index 05dab02629..471283a0ca 100644 --- a/video/out/hwdec/hwdec_vaapi.h +++ b/video/out/hwdec/hwdec_vaapi.h @@ -34,9 +34,6 @@ struct priv_owner { void (*interop_uninit)(const struct ra_hwdec_mapper *mapper); bool (*interop_map)(struct ra_hwdec_mapper *mapper); - bool (*interop_map_legacy)(struct ra_hwdec_mapper *mapper, - const VABufferInfo *buffer_info, - const int *drm_fmts); void (*interop_unmap)(struct ra_hwdec_mapper *mapper); }; @@ -45,14 +42,8 @@ struct priv { struct mp_image layout; struct ra_tex *tex[4]; - VAImage current_image; - bool buffer_acquired; - -#if VA_CHECK_VERSION(1, 1, 0) - bool esh_not_implemented; VADRMPRIMESurfaceDescriptor desc; bool surface_acquired; -#endif void *interop_mapper_priv; }; |