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>
This commit is contained in:
He Junyan 2020-07-07 17:16:41 +08:00 committed by Víctor Manuel Jáquez Leal
parent e962069dbe
commit 617dba3869
3 changed files with 4 additions and 4 deletions

View file

@ -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); \

View file

@ -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;

View file

@ -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