}
}
-static void
-ensure_extended_coding_options (GstMsdkEnc * thiz)
+void
+gst_msdkenc_ensure_extended_coding_options (GstMsdkEnc * thiz)
{
mfxExtCodingOption2 *option2 = &thiz->option2;
mfxExtCodingOption3 *option3 = &thiz->option3;
/* ensure bitrate control parameters */
ensure_bitrate_control (thiz);
- /* Enable ExtCodingOption2 */
- ensure_extended_coding_options (thiz);
-
/* allow subclass configure further */
if (klass->configure) {
if (!klass->configure (thiz))
gboolean
gst_msdkenc_get_common_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
+void
+gst_msdkenc_ensure_extended_coding_options (GstMsdkEnc * thiz);
G_END_DECLS
encoder->param.mfx.GopRefDist = 0;
}
+ /* Enable Extended coding options */
+ gst_msdkenc_ensure_extended_coding_options (encoder);
+
return TRUE;
}
* "i-frames" by incrementing the value by one in each case*/
encoder->param.mfx.IdrInterval += 1;
+ /* Enable Extended coding options */
+ gst_msdkenc_ensure_extended_coding_options (encoder);
+
return TRUE;
}
encoder->param.mfx.CodecProfile = thiz->profile;
encoder->param.mfx.CodecLevel = 0;
+ /* Enable Extended Coding options */
+ gst_msdkenc_ensure_extended_coding_options (encoder);
+
return TRUE;
}
encoder->param.mfx.CodecProfile = thiz->profile;
encoder->param.mfx.CodecLevel = 0;
+ /* Enable Extended Coding options */
+ gst_msdkenc_ensure_extended_coding_options (encoder);
+
return TRUE;
}