mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
msdkenc: add an extra surface for hevc encoding
For some hevc 10bit 4K encoding cases, the encoding process may be slow, and MediaSDK surface can't be released in time before one other available surface is needed. So add an extra surface for hevc encoding to avoid this issue.
This commit is contained in:
parent
523f4e4b50
commit
11bbd6f721
1 changed files with 2 additions and 0 deletions
|
@ -267,5 +267,7 @@ gst_msdkh265enc_class_init (GstMsdkH265EncClass * klass)
|
|||
static void
|
||||
gst_msdkh265enc_init (GstMsdkH265Enc * thiz)
|
||||
{
|
||||
GstMsdkEnc *msdk_enc = (GstMsdkEnc *) thiz;
|
||||
thiz->lowpower = PROP_LOWPOWER_DEFAULT;
|
||||
msdk_enc->num_extra_frames = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue