Cosmetics.

This commit is contained in:
gb 2010-05-12 09:34:37 +00:00 committed by Gwenole Beauchesne
parent 6258c468f9
commit 35cd2b1ffe
3 changed files with 29 additions and 15 deletions

View file

@ -49,7 +49,7 @@ static const GstElementDetails gst_vaapiconvert_details =
/* Default templates */ /* Default templates */
static const char gst_vaapiconvert_yuv_caps_str[] = static const char gst_vaapiconvert_yuv_caps_str[] =
"video/x-raw-yuv, " "video/x-raw-yuv, "
"width = (int) [ 1, MAX ], " "width = (int) [ 1, MAX ], "
"height = (int) [ 1, MAX ]; "; "height = (int) [ 1, MAX ]; ";
static const char gst_vaapiconvert_vaapi_caps_str[] = static const char gst_vaapiconvert_vaapi_caps_str[] =
@ -83,8 +83,11 @@ enum {
PROP_DIRECT_RENDERING, PROP_DIRECT_RENDERING,
}; };
static gboolean gst_vaapiconvert_start(GstBaseTransform *trans); static gboolean
static gboolean gst_vaapiconvert_stop(GstBaseTransform *trans); gst_vaapiconvert_start(GstBaseTransform *trans);
static gboolean
gst_vaapiconvert_stop(GstBaseTransform *trans);
static GstFlowReturn static GstFlowReturn
gst_vaapiconvert_transform( gst_vaapiconvert_transform(
@ -151,7 +154,8 @@ gst_vaapiconvert_destroy(GstVaapiConvert *convert)
} }
} }
static void gst_vaapiconvert_base_init(gpointer klass) static void
gst_vaapiconvert_base_init(gpointer klass)
{ {
GstElementClass * const element_class = GST_ELEMENT_CLASS(klass); GstElementClass * const element_class = GST_ELEMENT_CLASS(klass);
@ -291,7 +295,8 @@ gst_vaapiconvert_init(GstVaapiConvert *convert, GstVaapiConvertClass *klass)
g_object_unref(sinkpad); g_object_unref(sinkpad);
} }
static gboolean gst_vaapiconvert_start(GstBaseTransform *trans) static gboolean
gst_vaapiconvert_start(GstBaseTransform *trans)
{ {
GstVaapiConvert * const convert = GST_VAAPICONVERT(trans); GstVaapiConvert * const convert = GST_VAAPICONVERT(trans);
GstVaapiVideoSink *sink; GstVaapiVideoSink *sink;
@ -310,7 +315,8 @@ static gboolean gst_vaapiconvert_start(GstBaseTransform *trans)
return TRUE; return TRUE;
} }
static gboolean gst_vaapiconvert_stop(GstBaseTransform *trans) static gboolean
gst_vaapiconvert_stop(GstBaseTransform *trans)
{ {
GstVaapiConvert * const convert = GST_VAAPICONVERT(trans); GstVaapiConvert * const convert = GST_VAAPICONVERT(trans);
@ -665,7 +671,8 @@ gst_vaapiconvert_prepare_output_buffer(
return GST_FLOW_OK; return GST_FLOW_OK;
} }
static gboolean plugin_init(GstPlugin *plugin) static gboolean
plugin_init(GstPlugin *plugin)
{ {
GST_DEBUG_CATEGORY_INIT(gst_debug_vaapiconvert, GST_DEBUG_CATEGORY_INIT(gst_debug_vaapiconvert,
GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC); GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);

View file

@ -51,7 +51,7 @@ static const GstElementDetails gst_vaapidecode_details =
/* Default templates */ /* Default templates */
#define GST_CAPS_CODEC(CODEC) \ #define GST_CAPS_CODEC(CODEC) \
CODEC ", " \ CODEC ", " \
"width = (int) [ 1, MAX ], " \ "width = (int) [ 1, MAX ], " \
"height = (int) [ 1, MAX ]; " "height = (int) [ 1, MAX ]; "
static const char gst_vaapidecode_sink_caps_str[] = static const char gst_vaapidecode_sink_caps_str[] =
@ -537,7 +537,8 @@ gst_vaapidecode_init(GstVaapiDecode *decode, GstVaapiDecodeClass *klass)
gst_element_add_pad(GST_ELEMENT(decode), decode->srcpad); gst_element_add_pad(GST_ELEMENT(decode), decode->srcpad);
} }
static gboolean plugin_init(GstPlugin *plugin) static gboolean
plugin_init(GstPlugin *plugin)
{ {
GST_DEBUG_CATEGORY_INIT(gst_debug_vaapidecode, GST_DEBUG_CATEGORY_INIT(gst_debug_vaapidecode,
GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC); GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);

View file

@ -90,12 +90,14 @@ gst_vaapi_video_sink_do_get_display(GstVaapiVideoSink *sink)
return gst_vaapisink_get_display(GST_VAAPISINK(sink)); return gst_vaapisink_get_display(GST_VAAPISINK(sink));
} }
static void gst_vaapi_video_sink_iface_init(GstVaapiVideoSinkInterface *iface) static void
gst_vaapi_video_sink_iface_init(GstVaapiVideoSinkInterface *iface)
{ {
iface->get_display = gst_vaapi_video_sink_do_get_display; iface->get_display = gst_vaapi_video_sink_do_get_display;
} }
static void gst_vaapisink_iface_init(GType type) static void
gst_vaapisink_iface_init(GType type)
{ {
const GType g_define_type_id = type; const GType g_define_type_id = type;
@ -571,7 +573,8 @@ gst_vaapisink_get_property(
} }
} }
static void gst_vaapisink_base_init(gpointer klass) static void
gst_vaapisink_base_init(gpointer klass)
{ {
GstElementClass * const element_class = GST_ELEMENT_CLASS(klass); GstElementClass * const element_class = GST_ELEMENT_CLASS(klass);
@ -583,7 +586,8 @@ static void gst_vaapisink_base_init(gpointer klass)
); );
} }
static void gst_vaapisink_class_init(GstVaapiSinkClass *klass) static void
gst_vaapisink_class_init(GstVaapiSinkClass *klass)
{ {
GObjectClass * const object_class = G_OBJECT_CLASS(klass); GObjectClass * const object_class = G_OBJECT_CLASS(klass);
GstBaseSinkClass * const basesink_class = GST_BASE_SINK_CLASS(klass); GstBaseSinkClass * const basesink_class = GST_BASE_SINK_CLASS(klass);
@ -653,7 +657,8 @@ static void gst_vaapisink_class_init(GstVaapiSinkClass *klass)
G_PARAM_READWRITE)); G_PARAM_READWRITE));
} }
static void gst_vaapisink_init(GstVaapiSink *sink, GstVaapiSinkClass *klass) static void
gst_vaapisink_init(GstVaapiSink *sink, GstVaapiSinkClass *klass)
{ {
sink->display_name = NULL; sink->display_name = NULL;
sink->display = NULL; sink->display = NULL;
@ -677,7 +682,8 @@ gst_vaapisink_get_display(GstVaapiSink *sink)
return sink->display; return sink->display;
} }
static gboolean plugin_init(GstPlugin *plugin) static gboolean
plugin_init(GstPlugin *plugin)
{ {
GST_DEBUG_CATEGORY_INIT(gst_debug_vaapisink, GST_DEBUG_CATEGORY_INIT(gst_debug_vaapisink,
GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC); GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);