From b3570febf7d6a1374d1f516a729861ce39458c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 2 Jan 2020 18:00:21 +0100 Subject: [PATCH] libs: utils: delete useless gst_vaapi_profile_caps_append_encoder. --- gst-libs/gst/vaapi/gstvaapiprofilecaps.c | 29 ------------------------ gst-libs/gst/vaapi/gstvaapiprofilecaps.h | 5 ---- 2 files changed, 34 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiprofilecaps.c b/gst-libs/gst/vaapi/gstvaapiprofilecaps.c index 7efa6a3297..a98d0e0df0 100644 --- a/gst-libs/gst/vaapi/gstvaapiprofilecaps.c +++ b/gst-libs/gst/vaapi/gstvaapiprofilecaps.c @@ -117,32 +117,3 @@ gst_vaapi_profile_caps_append_decoder (GstVaapiDisplay * display, return append_caps_with_context_info (display, &cip, structure); } - -/** - * gst_vaapi_profile_caps_append_encoder: - * @display: a #GstVaapiDisplay - * @profile: a #GstVaapiProfile - * @entrypoint: a #GstVaapiEntryPoint - * @structure: a #GstStructure - * - * Extracts the config's surface attributes, from @profile and - * @entrypoint, in an encoder context, and transforms it into a caps - * formats and appended into @structure. - * - * Returns: %TRUE if the capabilities could be extracted and appended - * into @structure; otherwise %FALSE - **/ -gboolean -gst_vaapi_profile_caps_append_encoder (GstVaapiDisplay * display, - GstVaapiProfile profile, GstVaapiEntrypoint entrypoint, - GstStructure * structure) -{ - GstVaapiContextInfo cip = { - GST_VAAPI_CONTEXT_USAGE_ENCODE, profile, entrypoint, 0, - }; - - g_return_val_if_fail (display != NULL, FALSE); - g_return_val_if_fail (structure != NULL, FALSE); - - return append_caps_with_context_info (display, &cip, structure); -} diff --git a/gst-libs/gst/vaapi/gstvaapiprofilecaps.h b/gst-libs/gst/vaapi/gstvaapiprofilecaps.h index 4333bed9dc..24eb82ce2d 100644 --- a/gst-libs/gst/vaapi/gstvaapiprofilecaps.h +++ b/gst-libs/gst/vaapi/gstvaapiprofilecaps.h @@ -33,11 +33,6 @@ gboolean gst_vaapi_profile_caps_append_decoder (GstVaapiDisplay * display, GstVaapiProfile profile, GstStructure * structure); -gboolean -gst_vaapi_profile_caps_append_encoder (GstVaapiDisplay * display, - GstVaapiProfile profile, GstVaapiEntrypoint entrypoint, - GstStructure * structure); - G_END_DECLS #endif /* GST_VAAPI_PROFILE_CAPS_H */