mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
amfh265enc: Handle preset option
Add missing preset option handling Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2165>
This commit is contained in:
parent
097919f79b
commit
83ba83924a
1 changed files with 10 additions and 0 deletions
|
@ -669,6 +669,16 @@ gst_amf_h265_enc_set_format (GstAmfEncoder * encoder,
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (self->preset > AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET_UNKNOWN) {
|
||||
result = comp->SetProperty (AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET,
|
||||
(amf_int64) self->preset);
|
||||
if (result != AMF_OK) {
|
||||
GST_ERROR_OBJECT (self, "Failed to set quality preset, result %"
|
||||
GST_AMF_RESULT_FORMAT, GST_AMF_RESULT_ARGS (result));
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
result = comp->SetProperty (AMF_VIDEO_ENCODER_HEVC_PROFILE,
|
||||
(amf_int64) AMF_VIDEO_ENCODER_HEVC_PROFILE_MAIN);
|
||||
if (result != AMF_OK) {
|
||||
|
|
Loading…
Reference in a new issue