diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-01-15 23:04:08 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-01-17 11:31:57 +0100 |
commit | 1db3ce56a072a8760151ffd5d523e6a04ea9f634 (patch) | |
tree | 3dc197f4c2df25f5043d3312541a4846d292cd99 /gst-libs/gst/vaapi/gstvaapiprofilecaps.h | |
parent | c864e20d2cdc80377393062ea764049bb74b9924 (diff) |
vaapiencode: DMABuf only if PRIME is available
Add DMABuf capsfeature in encoders' allowed sinkcaps only if PRIME
memory type is available in the VA surface attributes of codec
context.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiprofilecaps.h')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiprofilecaps.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiprofilecaps.h b/gst-libs/gst/vaapi/gstvaapiprofilecaps.h index 24eb82ce..a33ebc92 100644 --- a/gst-libs/gst/vaapi/gstvaapiprofilecaps.h +++ b/gst-libs/gst/vaapi/gstvaapiprofilecaps.h @@ -33,6 +33,9 @@ gboolean gst_vaapi_profile_caps_append_decoder (GstVaapiDisplay * display, GstVaapiProfile profile, GstStructure * structure); +gboolean +gst_vaapi_mem_type_supports (guint va_mem_types, guint mem_type); + G_END_DECLS #endif /* GST_VAAPI_PROFILE_CAPS_H */ |