*参照元 [#sedccfa5] #backlinks *説明 [#c012e0a9] -パス: [[gstomx-0.10.1/omx/gstomx_base_filter.c]] -FIXME: これは何? --説明 **引数 [#j1a2243d] -GTypeInstance * instance -- --[[gstomx-0.10.1/GTypeInstance]] -gpointer g_class -- --[[gstomx-0.10.1/gpointer]] **返り値 [#ue87046a] -なし -- **参考 [#kc2bc23c] *実装 [#pb46c27d] static void type_instance_init (GTypeInstance * instance, gpointer g_class) { GstOmxBaseFilter *self; GstElementClass *element_class; - --[[gstomx-0.10.1/GstOmxBaseFilter]] - --[[gstomx-0.10.1/GstElementClass]] element_class = GST_ELEMENT_CLASS (g_class); - --[[gstomx-0.10.1/GST_ELEMENT_CLASS()]] self = GST_OMX_BASE_FILTER (instance); GST_LOG_OBJECT (self, "begin"); - --[[gstomx-0.10.1/GST_OMX_BASE_FILTER()]] - --[[gstomx-0.10.1/GST_LOG_OBJECT()]] self->use_timestamps = TRUE; self->gomx = gstomx_core_new (self, G_TYPE_FROM_CLASS (g_class)); self->in_port = g_omx_core_new_port (self->gomx, 0); self->out_port = g_omx_core_new_port (self->gomx, 1); - --[[gstomx-0.10.1/gstomx_core_new()]] - --[[gstomx-0.10.1/g_omx_core_new_port()]] - --[[gstomx-0.10.1/G_TYPE_FROM_CLASS()]] self->ready_lock = g_mutex_new (); - --[[gstomx-0.10.1/g_mutex_new()]] self->sinkpad = gst_pad_new_from_template (gst_element_class_get_pad_template (element_class, "sink"), "sink"); - --[[gstomx-0.10.1/gst_pad_new_from_template()]] - --[[gstomx-0.10.1/gst_element_class_get_pad_template()]] gst_pad_set_chain_function (self->sinkpad, pad_chain); gst_pad_set_event_function (self->sinkpad, pad_event); - --[[gstomx-0.10.1/gst_pad_set_chain_function()]] - --[[gstomx-0.10.1/pad_chain()]] - --[[gstomx-0.10.1/gst_pad_set_event_function()]] - --[[gstomx-0.10.1/pad_event()]] self->srcpad = gst_pad_new_from_template (gst_element_class_get_pad_template (element_class, "src"), "src"); gst_pad_set_activatepush_function (self->srcpad, activate_push); - --[[gstomx-0.10.1/gst_pad_set_activatepush_function()]] - --[[gstomx-0.10.1/activate_push()]] gst_pad_use_fixed_caps (self->srcpad); - --[[gstomx-0.10.1/gst_pad_use_fixed_caps()]] gst_element_add_pad (GST_ELEMENT (self), self->sinkpad); gst_element_add_pad (GST_ELEMENT (self), self->srcpad); - --[[gstomx-0.10.1/gst_element_add_pad()]] - --[[gstomx-0.10.1/GST_ELEMENT()]] GST_LOG_OBJECT (self, "end"); - --[[gstomx-0.10.1/GST_LOG_OBJECT()]] } *コメント [#ha12baf8]