static void type_class_init (gpointer g_class, gpointer class_data) { GObjectClass *gobject_class; GstBaseSrcClass *gst_base_src_class; gobject_class = G_OBJECT_CLASS (g_class); gst_base_src_class = GST_BASE_SRC_CLASS (g_class); gobject_class->finalize = finalize; gst_base_src_class->start = start; gst_base_src_class->stop = stop; gst_base_src_class->event = handle_event; gst_base_src_class->create = create; /* Properties stuff */ { gobject_class->set_property = set_property; gobject_class->get_property = get_property; gstomx_install_property_helper (gobject_class); g_object_class_install_property (gobject_class, ARG_NUM_OUTPUT_BUFFERS, g_param_spec_uint ("output-buffers", "Output buffers", "The number of OMX output buffers", 1, 10, 4, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } }
static void type_class_init (gpointer g_class, gpointer class_data) { GObjectClass *gobject_class; GstBaseSinkClass *gst_base_sink_class; GstElementClass *gstelement_class; gobject_class = G_OBJECT_CLASS (g_class); gst_base_sink_class = GST_BASE_SINK_CLASS (g_class); gstelement_class = GST_ELEMENT_CLASS (g_class); gobject_class->finalize = finalize; gstelement_class->change_state = change_state; gst_base_sink_class->event = handle_event; gst_base_sink_class->preroll = render; gst_base_sink_class->render = render; /* Properties stuff */ { gobject_class->set_property = set_property; gobject_class->get_property = get_property; gstomx_install_property_helper (gobject_class); g_object_class_install_property (gobject_class, ARG_NUM_INPUT_BUFFERS, g_param_spec_uint ("input-buffers", "Input buffers", "The number of OMX input buffers", 1, 10, 4, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } }
static void type_class_init (gpointer g_class, gpointer class_data) { GObjectClass *gobject_class; GstElementClass *gstelement_class; gobject_class = G_OBJECT_CLASS (g_class); gstelement_class = GST_ELEMENT_CLASS (g_class); gobject_class->finalize = finalize; gstelement_class->change_state = change_state; /* Properties stuff */ { gobject_class->set_property = set_property; gobject_class->get_property = get_property; gstomx_install_property_helper (gobject_class); g_object_class_install_property (gobject_class, ARG_USE_TIMESTAMPS, g_param_spec_boolean ("use-timestamps", "Use timestamps", "Whether or not to use timestamps", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_NUM_INPUT_BUFFERS, g_param_spec_uint ("input-buffers", "Input buffers", "The number of OMX input buffers", 1, 10, 4, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, ARG_NUM_OUTPUT_BUFFERS, g_param_spec_uint ("output-buffers", "Output buffers", "The number of OMX output buffers", 1, 10, 4, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } }