From 617dba38697b395b5c8b8e766507b68e7f1f1a70 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Tue, 7 Jul 2020 17:16:41 +0800 Subject: [PATCH] plugins: utils: rename build_template_caps_by_codec. Rename the function build_template_caps_by_codec() to the name of build_template_raw_caps_by_codec(). It can be used to collect all raw video formats for encode's sink and decode's src. Part-of: --- gst/vaapi/gstvaapiencode.h | 2 +- gst/vaapi/gstvaapipluginutil.c | 4 ++-- gst/vaapi/gstvaapipluginutil.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/vaapi/gstvaapiencode.h b/gst/vaapi/gstvaapiencode.h index 0e76bde..4bbea84 100644 --- a/gst/vaapi/gstvaapiencode.h +++ b/gst/vaapi/gstvaapiencode.h @@ -87,7 +87,7 @@ G_BEGIN_DECLS for (i = 0; i < n; i++) \ g_array_append_val (extra_fmts, ext_video_fmts[i]); \ } \ - caps = gst_vaapi_build_template_caps_by_codec (display, \ + caps = gst_vaapi_build_template_raw_caps_by_codec (display, \ GST_VAAPI_CONTEXT_USAGE_ENCODE, \ GST_VAAPI_CODEC_##CODEC, extra_fmts); \ g_clear_pointer (&extra_fmts, g_array_unref); \ diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index ece8a68..027a288 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -1141,7 +1141,7 @@ gst_vaapi_build_caps_from_formats (GArray * formats, gint min_width, } /** - * gst_vaapi_build_template_caps_by_codec: + * gst_vaapi_build_template_raw_caps_by_codec: * @display: a #GstVaapiDisplay * @usage: used for encode, decode or postproc * @codec: a #GstVaapiCodec specify the codec to detect @@ -1155,7 +1155,7 @@ gst_vaapi_build_caps_from_formats (GArray * formats, gint min_width, * Returns: a built #GstCaps if succeeds, or %NULL if error. **/ GstCaps * -gst_vaapi_build_template_caps_by_codec (GstVaapiDisplay * display, +gst_vaapi_build_template_raw_caps_by_codec (GstVaapiDisplay * display, GstVaapiContextUsage usage, GstVaapiCodec codec, GArray * extra_fmts) { GArray *profiles = NULL; diff --git a/gst/vaapi/gstvaapipluginutil.h b/gst/vaapi/gstvaapipluginutil.h index cad6b87..f5814d3 100644 --- a/gst/vaapi/gstvaapipluginutil.h +++ b/gst/vaapi/gstvaapipluginutil.h @@ -168,7 +168,7 @@ gst_vaapi_build_caps_from_formats (GArray * formats, gint min_width, G_GNUC_INTERNAL GstCaps * -gst_vaapi_build_template_caps_by_codec (GstVaapiDisplay * display, +gst_vaapi_build_template_raw_caps_by_codec (GstVaapiDisplay * display, GstVaapiContextUsage usage, GstVaapiCodec codec, GArray * extra_fmts); G_GNUC_INTERNAL -- 2.7.4