static void
gupnp_dlna_gst_image_information_class_init
(GUPnPDLNAGstImageInformationClass *gst_info_class)
{
    GUPnPDLNAImageInformationClass *info_class =
        GUPNP_DLNA_IMAGE_INFORMATION_CLASS (gst_info_class);
    GObjectClass *object_class = G_OBJECT_CLASS (gst_info_class);
    GParamSpec *pspec;

    object_class->get_property =
        gupnp_dlna_gst_image_information_get_property;
    object_class->set_property =
        gupnp_dlna_gst_image_information_set_property;
    object_class->dispose = gupnp_dlna_gst_image_information_dispose;

    info_class->get_depth = backend_get_depth;
    info_class->get_height = backend_get_height;
    info_class->get_width = backend_get_width;
    info_class->get_mime = backend_get_mime;

    pspec = gst_param_spec_mini_object ("info",
                                        "info",
                                        "discoverer info",
                                        GST_TYPE_DISCOVERER_INFO,
                                        G_PARAM_READWRITE |
                                        G_PARAM_CONSTRUCT);
    g_object_class_install_property (object_class,
                                     PROP_INFO,
                                     pspec);

    g_type_class_add_private (gst_info_class,
                              sizeof (GUPnPDLNAGstImageInformationPrivate));
}
Ejemplo n.º 2
0
static void
gst_logoinsert_class_init (GstLogoinsertClass * klass)
{
  GObjectClass *gobject_class;
  GstBaseTransformClass *base_transform_class;

  gobject_class = G_OBJECT_CLASS (klass);
  base_transform_class = GST_BASE_TRANSFORM_CLASS (klass);

  gobject_class->set_property = gst_logoinsert_set_property;
  gobject_class->get_property = gst_logoinsert_get_property;
  gobject_class->dispose = gst_logoinsert_dispose;
  gobject_class->finalize = gst_logoinsert_finalize;

  g_object_class_install_property (gobject_class, ARG_LOCATION,
      g_param_spec_string ("location", "location",
          "location of PNG file to overlay", "",
          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  g_object_class_install_property (gobject_class, ARG_DATA,
      gst_param_spec_mini_object ("data", "data",
          "Buffer containing PNG file to overlay", GST_TYPE_BUFFER,
          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));

  base_transform_class->set_caps = gst_logoinsert_set_caps;
  base_transform_class->transform_ip = gst_logoinsert_transform_ip;
}
Ejemplo n.º 3
0
static void
my_foo_class_init (MyFooClass * klass)
{
  GObjectClass *gobject_klass = G_OBJECT_CLASS (klass);

  gobject_klass->get_property = my_foo_get_property;
  gobject_klass->set_property = my_foo_set_property;

  g_object_class_install_property (gobject_klass, PROP_BUFFER,
      gst_param_spec_mini_object ("buffer", "Buffer",
          "a newly created GstBuffer", GST_TYPE_BUFFER, G_PARAM_READWRITE));
}
Ejemplo n.º 4
0
static void
gupnp_dlna_information_class_init (GUPnPDLNAInformationClass *klass)
{
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
        GParamSpec *pspec;

        g_type_class_add_private (klass, sizeof (GUPnPDLNAInformationPrivate));

        object_class->get_property = gupnp_dlna_information_get_property;
        object_class->set_property = gupnp_dlna_information_set_property;
        object_class->finalize = gupnp_dlna_information_finalize;

        pspec = g_param_spec_string ("name",
                                     "DLNA profile name",
                                     "The name of the DLNA profile "
                                     "corresponding to the strream",
                                     NULL,
                                     G_PARAM_READWRITE |
                                     G_PARAM_CONSTRUCT_ONLY);
        g_object_class_install_property (object_class, PROP_DLNA_NAME, pspec);

        pspec = g_param_spec_string ("mime",
                                     "DLNA profile MIME type corresponding "
                                     "to the stream",
                                     "The DLNA MIME type of the stream",
                                     NULL,
                                     G_PARAM_READWRITE |
                                     G_PARAM_CONSTRUCT_ONLY);
        g_object_class_install_property (object_class, PROP_DLNA_MIME, pspec);

        pspec = gst_param_spec_mini_object ("info",
                                            "Stream metadata",
                                            "Metadata of the stream in a "
                                            "GstDiscovererInfo structure",
                                            GST_TYPE_DISCOVERER_INFO,
                                            G_PARAM_READWRITE |
                                            G_PARAM_CONSTRUCT_ONLY);
        g_object_class_install_property (object_class,
                                         PROP_DISCOVERER_INFO,
                                         pspec);
}