mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
va: Add the entrypoint parameter to gst_va_profile_caps()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5797>
This commit is contained in:
parent
484a636841
commit
354aceb9cd
5 changed files with 8 additions and 5 deletions
|
@ -646,7 +646,7 @@ gst_va_create_coded_caps (GstVaDisplay * display, VAProfile profile,
|
|||
if (rt_formats_ptr)
|
||||
*rt_formats_ptr = rt_formats;
|
||||
|
||||
caps = gst_va_profile_caps (profile);
|
||||
caps = gst_va_profile_caps (profile, entrypoint);
|
||||
if (!caps)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -1528,6 +1528,7 @@ gst_va_h264_enc_reset_state (GstVaBaseEnc * base)
|
|||
static gboolean
|
||||
gst_va_h264_enc_reconfig (GstVaBaseEnc * base)
|
||||
{
|
||||
GstVaBaseEncClass *klass = GST_VA_BASE_ENC_GET_CLASS (base);
|
||||
GstVideoEncoder *venc = GST_VIDEO_ENCODER (base);
|
||||
GstVaH264Enc *self = GST_VA_H264_ENC (base);
|
||||
GstCaps *out_caps, *reconf_caps = NULL;
|
||||
|
@ -1638,7 +1639,7 @@ gst_va_h264_enc_reconfig (GstVaBaseEnc * base)
|
|||
/* Add some tags */
|
||||
gst_va_base_enc_add_codec_tag (base, "H264");
|
||||
|
||||
out_caps = gst_va_profile_caps (base->profile);
|
||||
out_caps = gst_va_profile_caps (base->profile, klass->entrypoint);
|
||||
g_assert (out_caps);
|
||||
out_caps = gst_caps_fixate (out_caps);
|
||||
|
||||
|
|
|
@ -4400,6 +4400,7 @@ done:
|
|||
static gboolean
|
||||
gst_va_h265_enc_reconfig (GstVaBaseEnc * base)
|
||||
{
|
||||
GstVaBaseEncClass *klass = GST_VA_BASE_ENC_GET_CLASS (base);
|
||||
GstVideoEncoder *venc = GST_VIDEO_ENCODER (base);
|
||||
GstVaH265Enc *self = GST_VA_H265_ENC (base);
|
||||
GstCaps *out_caps, *reconf_caps = NULL;;
|
||||
|
@ -4545,7 +4546,7 @@ gst_va_h265_enc_reconfig (GstVaBaseEnc * base)
|
|||
/* Add some tags */
|
||||
gst_va_base_enc_add_codec_tag (base, "H265");
|
||||
|
||||
out_caps = gst_va_profile_caps (base->profile);
|
||||
out_caps = gst_va_profile_caps (base->profile, klass->entrypoint);
|
||||
g_assert (out_caps);
|
||||
out_caps = gst_caps_fixate (out_caps);
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ gst_va_profile_from_name (GstVaCodecs codec, const gchar * name)
|
|||
}
|
||||
|
||||
GstCaps *
|
||||
gst_va_profile_caps (VAProfile profile)
|
||||
gst_va_profile_caps (VAProfile profile, VAEntrypoint entrypoint)
|
||||
{
|
||||
const struct ProfileMap *map = get_profile_map (profile);
|
||||
GstCaps *caps;
|
||||
|
|
|
@ -40,7 +40,8 @@ typedef enum
|
|||
} GstVaCodecs;
|
||||
|
||||
guint32 gst_va_profile_codec (VAProfile profile);
|
||||
GstCaps * gst_va_profile_caps (VAProfile profile);
|
||||
GstCaps * gst_va_profile_caps (VAProfile profile,
|
||||
VAEntrypoint entrypoint);
|
||||
const gchar * gst_va_profile_name (VAProfile profile);
|
||||
VAProfile gst_va_profile_from_name (GstVaCodecs codec,
|
||||
const gchar * name);
|
||||
|
|
Loading…
Reference in a new issue