openh264: fix indentation

This commit is contained in:
Tim-Philipp Müller 2016-04-11 20:04:00 +01:00
parent 2f51985191
commit 41d8a49c52
2 changed files with 22 additions and 16 deletions

View file

@ -111,8 +111,10 @@ gst_openh264dec_class_init (GstOpenh264DecClass * klass)
/* Setting up pads and setting metadata should be moved to /* Setting up pads and setting metadata should be moved to
base_class_init if you intend to subclass this class. */ base_class_init if you intend to subclass this class. */
gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass), &gst_openh264dec_sink_template); gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass),
gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass), &gst_openh264dec_src_template); &gst_openh264dec_sink_template);
gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass),
&gst_openh264dec_src_template);
gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (klass), gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (klass),
"OpenH264 video decoder", "Decoder/Video", "OpenH264 video decoder", "OpenH264 video decoder", "Decoder/Video", "OpenH264 video decoder",

View file

@ -75,7 +75,8 @@ gst_openh264enc_rc_modes_get_type (void)
static const GEnumValue rc_modes_types[] = { static const GEnumValue rc_modes_types[] = {
{RC_QUALITY_MODE, "Quality mode", "quality"}, {RC_QUALITY_MODE, "Quality mode", "quality"},
{RC_BITRATE_MODE, "Bitrate mode", "bitrate"}, {RC_BITRATE_MODE, "Bitrate mode", "bitrate"},
{RC_BUFFERBASED_MODE, "No bitrate control, just using buffer status", "buffer"}, {RC_BUFFERBASED_MODE, "No bitrate control, just using buffer status",
"buffer"},
{RC_OFF_MODE, "Rate control off mode", "off"}, {RC_OFF_MODE, "Rate control off mode", "off"},
{0, NULL, NULL}, {0, NULL, NULL},
}; };
@ -106,9 +107,9 @@ gst_openh264enc_deblocking_mode_get_type (void)
}; };
static gsize id = 0; static gsize id = 0;
if (g_once_init_enter (& id)) { if (g_once_init_enter (&id)) {
GType _id = g_enum_register_static ("GstOpenh264encDeblockingModes", types); GType _id = g_enum_register_static ("GstOpenh264encDeblockingModes", types);
g_once_init_leave (& id, _id); g_once_init_leave (&id, _id);
} }
return (GType) id; return (GType) id;
@ -125,9 +126,9 @@ gst_openh264enc_slice_mode_get_type (void)
}; };
static gsize id = 0; static gsize id = 0;
if (g_once_init_enter (& id)) { if (g_once_init_enter (&id)) {
GType _id = g_enum_register_static ("GstOpenh264encSliceModes", types); GType _id = g_enum_register_static ("GstOpenh264encSliceModes", types);
g_once_init_leave (& id, _id); g_once_init_leave (&id, _id);
} }
return (GType) id; return (GType) id;
@ -145,9 +146,9 @@ gst_openh264enc_complexity_get_type (void)
}; };
static gsize id = 0; static gsize id = 0;
if (g_once_init_enter (& id)) { if (g_once_init_enter (&id)) {
GType _id = g_enum_register_static ("GstOpenh264encComplexity", types); GType _id = g_enum_register_static ("GstOpenh264encComplexity", types);
g_once_init_leave (& id, _id); g_once_init_leave (&id, _id);
} }
return (GType) id; return (GType) id;
@ -275,8 +276,10 @@ gst_openh264enc_class_init (GstOpenh264EncClass * klass)
/* Setting up pads and setting metadata should be moved to /* Setting up pads and setting metadata should be moved to
base_class_init if you intend to subclass this class. */ base_class_init if you intend to subclass this class. */
gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass), &gst_openh264enc_src_template); gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass),
gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass), &gst_openh264enc_sink_template); &gst_openh264enc_src_template);
gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass),
&gst_openh264enc_sink_template);
gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (klass), gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (klass),
"OpenH264 video encoder", "Encoder/Video", "OpenH264 video encoder", "OpenH264 video encoder", "Encoder/Video", "OpenH264 video encoder",
@ -376,8 +379,8 @@ gst_openh264enc_class_init (GstOpenh264EncClass * klass)
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_COMPLEXITY, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_COMPLEXITY,
g_param_spec_enum ("complexity", "Complexity / quality / speed tradeoff", "Complexity", g_param_spec_enum ("complexity", "Complexity / quality / speed tradeoff",
GST_TYPE_OPENH264ENC_COMPLEXITY, DEFAULT_COMPLEXITY, "Complexity", GST_TYPE_OPENH264ENC_COMPLEXITY, DEFAULT_COMPLEXITY,
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
} }
@ -514,7 +517,8 @@ gst_openh264enc_set_property (GObject * object, guint property_id,
break; break;
case PROP_COMPLEXITY: case PROP_COMPLEXITY:
openh264enc->priv->complexity = (ECOMPLEXITY_MODE) g_value_get_enum (value); openh264enc->priv->complexity =
(ECOMPLEXITY_MODE) g_value_get_enum (value);
break; break;
default: default:
@ -696,7 +700,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder,
} }
WelsCreateSVCEncoder (&(priv->encoder)); WelsCreateSVCEncoder (&(priv->encoder));
unsigned int uiTraceLevel = WELS_LOG_ERROR; unsigned int uiTraceLevel = WELS_LOG_ERROR;
priv->encoder->SetOption(ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel); priv->encoder->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
priv->encoder->GetDefaultParams (&enc_params); priv->encoder->GetDefaultParams (&enc_params);
@ -746,7 +750,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder,
return FALSE; return FALSE;
} }
priv->encoder->SetOption(ENCODER_OPTION_DATAFORMAT, &video_format); priv->encoder->SetOption (ENCODER_OPTION_DATAFORMAT, &video_format);
memset (&bsInfo, 0, sizeof (SFrameBSInfo)); memset (&bsInfo, 0, sizeof (SFrameBSInfo));