summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2020-07-07 17:16:41 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-07-23 20:27:00 +0200
commit617dba38697b395b5c8b8e766507b68e7f1f1a70 (patch)
tree75f31aa945291feffa9c26877070bd9008472abd
parente962069dbe15fb7cfedced1b325de6dc758bf190 (diff)
downloadgstreamer-vaapi-617dba38697b395b5c8b8e766507b68e7f1f1a70.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/354>
-rw-r--r--gst/vaapi/gstvaapiencode.h2
-rw-r--r--gst/vaapi/gstvaapipluginutil.c4
-rw-r--r--gst/vaapi/gstvaapipluginutil.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/gst/vaapi/gstvaapiencode.h b/gst/vaapi/gstvaapiencode.h
index 0e76bded..4bbea848 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 ece8a683..027a288e 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 cad6b871..f5814d34 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