mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
libs: encoder: h265: ensures profile given format
Set the VA profile as GST_VAAPI_PROFILE_H265_MAIN10 if the configured color format is P010_10LE. Otherwise, keep GST_VAAPI_PROFILE_H265_MAIN https://bugzilla.gnome.org/show_bug.cgi?id=771291
This commit is contained in:
parent
e534ff5609
commit
48e21d6ba8
1 changed files with 5 additions and 0 deletions
|
@ -936,11 +936,16 @@ static gboolean
|
|||
ensure_profile (GstVaapiEncoderH265 * encoder)
|
||||
{
|
||||
GstVaapiProfile profile;
|
||||
const GstVideoFormat format =
|
||||
GST_VIDEO_INFO_FORMAT (GST_VAAPI_ENCODER_VIDEO_INFO (encoder));
|
||||
|
||||
/* Always start from "Main" profile for maximum
|
||||
compatibility */
|
||||
profile = GST_VAAPI_PROFILE_H265_MAIN;
|
||||
|
||||
if (format == GST_VIDEO_FORMAT_P010_10LE)
|
||||
profile = GST_VAAPI_PROFILE_H265_MAIN10;
|
||||
|
||||
encoder->profile = profile;
|
||||
encoder->profile_idc = gst_vaapi_utils_h265_get_profile_idc (profile);
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue