mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-12 19:14:16 +00:00
plugin: util: rename h26x_encoder_get_profiles_from_caps().
Change its name to encoder_get_profiles_from_caps(). Other codecs such as VP9 also needs to use this function. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/188>
This commit is contained in:
parent
ed55dd8df1
commit
b86489eb8c
4 changed files with 6 additions and 7 deletions
|
@ -103,7 +103,7 @@ static GArray *
|
|||
gst_vaapiencode_h264_get_allowed_profiles (GstVaapiEncode * encode,
|
||||
GstCaps * allowed)
|
||||
{
|
||||
return gst_vaapi_h26x_encoder_get_profiles_from_caps (allowed,
|
||||
return gst_vaapi_encoder_get_profiles_from_caps (allowed,
|
||||
gst_vaapi_utils_h264_get_profile_from_string);
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ static GArray *
|
|||
gst_vaapiencode_h265_get_allowed_profiles (GstVaapiEncode * encode,
|
||||
GstCaps * allowed)
|
||||
{
|
||||
return gst_vaapi_h26x_encoder_get_profiles_from_caps (allowed,
|
||||
return gst_vaapi_encoder_get_profiles_from_caps (allowed,
|
||||
gst_vaapi_utils_h265_get_profile_from_string);
|
||||
}
|
||||
|
||||
|
|
|
@ -1018,18 +1018,17 @@ gst_vaapi_codecs_has_codec (GArray * codecs, GstVaapiCodec codec)
|
|||
}
|
||||
|
||||
/**
|
||||
* gst_vaapi_h26x_encoder_get_profiles_from_caps:
|
||||
* gst_vaapi_encoder_get_profiles_from_caps:
|
||||
* @caps: a #GstCaps to detect
|
||||
* @func: a #GstVaapiStrToProfileFunc
|
||||
*
|
||||
* This function will detect all profile strings in @caps and
|
||||
* return the according GstVaapiProfile in array. This can just
|
||||
* work for h264 and h265 now.
|
||||
* return the according GstVaapiProfile in array.
|
||||
*
|
||||
* Return: A #GArray of @GstVaapiProfile if succeed, %NULL if fail.
|
||||
**/
|
||||
GArray *
|
||||
gst_vaapi_h26x_encoder_get_profiles_from_caps (GstCaps * caps,
|
||||
gst_vaapi_encoder_get_profiles_from_caps (GstCaps * caps,
|
||||
GstVaapiStrToProfileFunc func)
|
||||
{
|
||||
guint i, j;
|
||||
|
|
|
@ -158,7 +158,7 @@ gst_vaapi_codecs_has_codec (GArray * codecs, GstVaapiCodec codec);
|
|||
|
||||
G_GNUC_INTERNAL
|
||||
GArray *
|
||||
gst_vaapi_h26x_encoder_get_profiles_from_caps (GstCaps * caps,
|
||||
gst_vaapi_encoder_get_profiles_from_caps (GstCaps * caps,
|
||||
GstVaapiStrToProfileFunc func);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
|
|
Loading…
Reference in a new issue