Exemplo n.º 1
0
static void
gst_omx_wmv_dec_class_init (GstOMXWMVDecClass * klass)
{
  GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
  GstOMXVideoDecClass *videodec_class = GST_OMX_VIDEO_DEC_CLASS (klass);

  videodec_class->is_format_change =
      GST_DEBUG_FUNCPTR (gst_omx_wmv_dec_is_format_change);
  videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_wmv_dec_set_format);

  videodec_class->cdata.default_sink_template_caps = "video/x-wmv, "
      "width=(int) [1,MAX], " "height=(int) [1,MAX]";

  gst_element_class_set_static_metadata (element_class,
      "OpenMAX WMV Video Decoder",
      "Codec/Decoder/Video",
      "Decode WMV video streams",
      "Sebastian Dröge <*****@*****.**>");

  gst_omx_set_default_role (&videodec_class->cdata, "video_decoder.wmv");
}
Exemplo n.º 2
0
static void
gst_omx_mpeg4_video_dec_class_init (GstOMXMPEG4VideoDecClass * klass)
{
    GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
    GstOMXVideoDecClass *videodec_class = GST_OMX_VIDEO_DEC_CLASS (klass);

    videodec_class->is_format_change =
        GST_DEBUG_FUNCPTR (gst_omx_mpeg4_video_dec_is_format_change);
    videodec_class->set_format =
        GST_DEBUG_FUNCPTR (gst_omx_mpeg4_video_dec_set_format);

    videodec_class->cdata.default_sink_template_caps = "video/mpeg, "
            "mpegversion=(int) 4, "
            "systemstream=(boolean) false, " "parsed=(boolean) true";

    gst_element_class_set_details_simple (element_class,
                                          "OpenMAX MPEG4 Video Decoder",
                                          "Codec/Decoder/Video",
                                          "Decode MPEG4 video streams",
                                          "Sebastian Dröge <*****@*****.**>");

    gst_omx_set_default_role (&videodec_class->cdata, "video_decoder.mpeg4");
}