mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-13 09:45:27 +00:00
schroenc: set interlace_coding based on input caps
and remove property.
This commit is contained in:
parent
bc93340fd4
commit
08149652a1
1 changed files with 8 additions and 0 deletions
|
@ -181,6 +181,10 @@ gst_schro_enc_class_init (GstSchroEncClass * klass)
|
||||||
|| strcmp (setting->name, "level") == 0)
|
|| strcmp (setting->name, "level") == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* we configure this based on the input caps */
|
||||||
|
if (strcmp (setting->name, "interlaced_coding") == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
switch (setting->type) {
|
switch (setting->type) {
|
||||||
case SCHRO_ENCODER_SETTING_TYPE_BOOLEAN:
|
case SCHRO_ENCODER_SETTING_TYPE_BOOLEAN:
|
||||||
g_object_class_install_property (gobject_class, i + 1,
|
g_object_class_install_property (gobject_class, i + 1,
|
||||||
|
@ -435,6 +439,10 @@ gst_schro_enc_set_format (GstVideoEncoder * base_video_encoder,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GST_VIDEO_INFO_IS_INTERLACED (&state->info)) {
|
||||||
|
schro_enc->video_format->interlaced_coding = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* See if downstream caps specify profile/level */
|
/* See if downstream caps specify profile/level */
|
||||||
gst_schro_enc_negotiate_profile (schro_enc);
|
gst_schro_enc_negotiate_profile (schro_enc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue