コード例 #1
0
ファイル: gsttarkinenc.c プロジェクト: JJCG/gst-plugins-bad
static void
gst_tarkinenc_base_init (gpointer g_class)
{
  GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
  GstCaps *raw_caps, *tarkin_caps;

  raw_caps = raw_caps_factory ();
  tarkin_caps = tarkin_caps_factory ();

  enc_sink_template = gst_pad_template_new ("sink",
      GST_PAD_SINK, GST_PAD_ALWAYS, raw_caps, NULL);
  enc_src_template = gst_pad_template_new ("src",
      GST_PAD_SRC, GST_PAD_ALWAYS, tarkin_caps, NULL);
  gst_element_class_add_pad_template (element_class, enc_sink_template);
  gst_element_class_add_pad_template (element_class, enc_src_template);

  gst_element_class_set_details (element_class, &tarkinenc_details);
}
コード例 #2
0
ファイル: gsttarkinenc.c プロジェクト: PeterXu/gst-mobile
static void
gst_tarkinenc_base_init (gpointer g_class)
{
  GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
  GstCaps *raw_caps, *tarkin_caps;

  raw_caps = raw_caps_factory ();
  tarkin_caps = tarkin_caps_factory ();

  enc_sink_template = gst_pad_template_new ("sink",
      GST_PAD_SINK, GST_PAD_ALWAYS, raw_caps, NULL);
  enc_src_template = gst_pad_template_new ("src",
      GST_PAD_SRC, GST_PAD_ALWAYS, tarkin_caps, NULL);
  gst_element_class_add_pad_template (element_class, enc_sink_template);
  gst_element_class_add_pad_template (element_class, enc_src_template);

  gst_element_class_set_details_simple (element_class, "Tarkin video encoder",
      "Codec/Encoder/Video",
      "Encodes video in OGG Tarkin format",
      "Monty <*****@*****.**>, " "Wim Taymans <*****@*****.**>");
}