Eudoxus/sw/gst/rntemplate/gstrnnamefilter.c
static void
gst_rnnamefilter_init (Gstrnnamefilter * filter,
    GstrnnamefilterClass * gclass)
{
  filter->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink");
  gst_pad_set_setcaps_function (filter->sinkpad,
                                GST_DEBUG_FUNCPTR(gst_rnnamefilter_set_caps));
  gst_pad_set_getcaps_function (filter->sinkpad,
                                GST_DEBUG_FUNCPTR(gst_pad_proxy_getcaps));
  gst_pad_set_chain_function (filter->sinkpad,
                              GST_DEBUG_FUNCPTR(gst_rnnamefilter_chain));

  filter->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
  gst_pad_set_getcaps_function (filter->srcpad,
                                GST_DEBUG_FUNCPTR(gst_pad_proxy_getcaps));

  gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
  gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
  filter->silent = FALSE;
}
/* initialize the new element
 * instantiate pads and add them to element
 * set pad calback functions
 * initialize instance structure
 */
initialize the new element
instantiate pads and add them to element
set pad calback functions
initialize instance structure
initialize the new element instantiate pads and add them to element set pad calback functions initialize instance structure
static void
gst_rnnamefilter_init (Gstrnnamefilter * filter,
    GstrnnamefilterClass * gclass)
{
  filter->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink");
  gst_pad_set_setcaps_function (filter->sinkpad,
                                GST_DEBUG_FUNCPTR(gst_rnnamefilter_set_caps));
  gst_pad_set_getcaps_function (filter->sinkpad,
                                GST_DEBUG_FUNCPTR(gst_pad_proxy_getcaps));
  gst_pad_set_chain_function (filter->sinkpad,
                              GST_DEBUG_FUNCPTR(gst_rnnamefilter_chain));
  filter->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
  gst_pad_set_getcaps_function (filter->srcpad,
                                GST_DEBUG_FUNCPTR(gst_pad_proxy_getcaps));
  gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
  gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
  filter->silent = FALSE;
}
static void gst_rnnamefilter_init ( Gstrnnamefilter * filter , GstrnnamefilterClass * gclass ) { filter -> sinkpad = gst_pad_new_from_static_template ( & sink_factory , " " ) ; gst_pad_set_setcaps_function ( filter -> sinkpad , GST_DEBUG_FUNCPTR ( gst_rnnamefilter_set_caps ) ) ; gst_pad_set_getcaps_function ( filter -> sinkpad , GST_DEBUG_FUNCPTR ( gst_pad_proxy_getcaps ) ) ; gst_pad_set_chain_function ( filter -> sinkpad , GST_DEBUG_FUNCPTR ( gst_rnnamefilter_chain ) ) ; filter -> srcpad = gst_pad_new_from_static_template ( & src_factory , " " ) ; gst_pad_set_getcaps_function ( filter -> srcpad , GST_DEBUG_FUNCPTR ( gst_pad_proxy_getcaps ) ) ; gst_element_add_pad ( GST_ELEMENT ( filter ) , filter -> sinkpad ) ; gst_element_add_pad ( GST_ELEMENT ( filter ) , filter -> srcpad ) ; filter -> silent = FALSE ; }
initialize the new element
 instantiate pads and add them to element
 set pad calback functions
 initialize instance structure
initialize the new element instantiate pads and add them to element set pad calback functions initialize instance structure