mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gstvaapiencoder:Use internal api to dervie configured VAEntrypoint
https://bugzilla.gnome.org/show_bug.cgi?id=766050
This commit is contained in:
parent
32ee78bc52
commit
d446013ae4
1 changed files with 2 additions and 6 deletions
|
@ -513,18 +513,14 @@ get_config_attribute (GstVaapiEncoder * encoder, VAConfigAttribType type,
|
||||||
GstVaapiProfile profile;
|
GstVaapiProfile profile;
|
||||||
VAProfile va_profile;
|
VAProfile va_profile;
|
||||||
VAEntrypoint va_entrypoint;
|
VAEntrypoint va_entrypoint;
|
||||||
const GstVaapiEncoderClassData *const cdata =
|
|
||||||
GST_VAAPI_ENCODER_GET_CLASS (encoder)->class_data;
|
|
||||||
|
|
||||||
profile = get_profile (encoder);
|
profile = get_profile (encoder);
|
||||||
if (!profile)
|
if (!profile)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
va_profile = gst_vaapi_profile_get_va_profile (profile);
|
va_profile = gst_vaapi_profile_get_va_profile (profile);
|
||||||
|
|
||||||
if (cdata->codec != GST_VAAPI_CODEC_JPEG)
|
va_entrypoint =
|
||||||
va_entrypoint = VAEntrypointEncSlice;
|
gst_vaapi_entrypoint_get_va_entrypoint (encoder->context_info.entrypoint);
|
||||||
else
|
|
||||||
va_entrypoint = VAEntrypointEncPicture;
|
|
||||||
|
|
||||||
return gst_vaapi_get_config_attribute (encoder->display, va_profile,
|
return gst_vaapi_get_config_attribute (encoder->display, va_profile,
|
||||||
va_entrypoint, type, out_value_ptr);
|
va_entrypoint, type, out_value_ptr);
|
||||||
|
|
Loading…
Reference in a new issue