mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 04:45:36 +00:00
msdk: Don't set extended coding options for JPEG encode
MJPEG doesn't have support for extended coding options https://bugzilla.gnome.org/show_bug.cgi?id=793873
This commit is contained in:
parent
4bcc128423
commit
b628dd8bf8
6 changed files with 16 additions and 5 deletions
|
@ -194,8 +194,8 @@ ensure_bitrate_control (GstMsdkEnc * thiz)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
ensure_extended_coding_options (GstMsdkEnc * thiz)
|
gst_msdkenc_ensure_extended_coding_options (GstMsdkEnc * thiz)
|
||||||
{
|
{
|
||||||
mfxExtCodingOption2 *option2 = &thiz->option2;
|
mfxExtCodingOption2 *option2 = &thiz->option2;
|
||||||
mfxExtCodingOption3 *option3 = &thiz->option3;
|
mfxExtCodingOption3 *option3 = &thiz->option3;
|
||||||
|
@ -380,9 +380,6 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz)
|
||||||
/* ensure bitrate control parameters */
|
/* ensure bitrate control parameters */
|
||||||
ensure_bitrate_control (thiz);
|
ensure_bitrate_control (thiz);
|
||||||
|
|
||||||
/* Enable ExtCodingOption2 */
|
|
||||||
ensure_extended_coding_options (thiz);
|
|
||||||
|
|
||||||
/* allow subclass configure further */
|
/* allow subclass configure further */
|
||||||
if (klass->configure) {
|
if (klass->configure) {
|
||||||
if (!klass->configure (thiz))
|
if (!klass->configure (thiz))
|
||||||
|
|
|
@ -184,6 +184,8 @@ gst_msdkenc_set_common_property (GObject * object, guint prop_id,
|
||||||
gboolean
|
gboolean
|
||||||
gst_msdkenc_get_common_property (GObject * object, guint prop_id,
|
gst_msdkenc_get_common_property (GObject * object, guint prop_id,
|
||||||
GValue * value, GParamSpec * pspec);
|
GValue * value, GParamSpec * pspec);
|
||||||
|
void
|
||||||
|
gst_msdkenc_ensure_extended_coding_options (GstMsdkEnc * thiz);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
|
@ -303,6 +303,9 @@ gst_msdkh264enc_configure (GstMsdkEnc * encoder)
|
||||||
encoder->param.mfx.GopRefDist = 0;
|
encoder->param.mfx.GopRefDist = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Enable Extended coding options */
|
||||||
|
gst_msdkenc_ensure_extended_coding_options (encoder);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,9 @@ gst_msdkh265enc_configure (GstMsdkEnc * encoder)
|
||||||
* "i-frames" by incrementing the value by one in each case*/
|
* "i-frames" by incrementing the value by one in each case*/
|
||||||
encoder->param.mfx.IdrInterval += 1;
|
encoder->param.mfx.IdrInterval += 1;
|
||||||
|
|
||||||
|
/* Enable Extended coding options */
|
||||||
|
gst_msdkenc_ensure_extended_coding_options (encoder);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,9 @@ gst_msdkmpeg2enc_configure (GstMsdkEnc * encoder)
|
||||||
encoder->param.mfx.CodecProfile = thiz->profile;
|
encoder->param.mfx.CodecProfile = thiz->profile;
|
||||||
encoder->param.mfx.CodecLevel = 0;
|
encoder->param.mfx.CodecLevel = 0;
|
||||||
|
|
||||||
|
/* Enable Extended Coding options */
|
||||||
|
gst_msdkenc_ensure_extended_coding_options (encoder);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,6 +135,9 @@ gst_msdkvp8enc_configure (GstMsdkEnc * encoder)
|
||||||
encoder->param.mfx.CodecProfile = thiz->profile;
|
encoder->param.mfx.CodecProfile = thiz->profile;
|
||||||
encoder->param.mfx.CodecLevel = 0;
|
encoder->param.mfx.CodecLevel = 0;
|
||||||
|
|
||||||
|
/* Enable Extended Coding options */
|
||||||
|
gst_msdkenc_ensure_extended_coding_options (encoder);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue