static KmsAlphaBlendingData *
kms_create_alpha_blending_data ()
{
  KmsAlphaBlendingData *data;

  data = g_slice_new0 (KmsAlphaBlendingData);
  kms_ref_struct_init (KMS_REF_STRUCT_CAST (data),
      (GDestroyNotify) kms_destroy_alpha_blending_data);

  return data;
}
static KmsCompositeMixerData *
kms_create_composite_mixer_data ()
{
  KmsCompositeMixerData *data;

  data = g_slice_new0 (KmsCompositeMixerData);
  kms_ref_struct_init (KMS_REF_STRUCT_CAST (data),
      (GDestroyNotify) kms_destroy_composite_mixer_data);

  return data;
}
static StreamE2EAvgStat *
stream_e2e_avg_stat_new (KmsMediaType type)
{
  StreamE2EAvgStat *stat;

  stat = g_slice_new0 (StreamE2EAvgStat);
  kms_ref_struct_init (KMS_REF_STRUCT_CAST (stat),
      (GDestroyNotify) stream_e2e_avg_stat_destroy);
  stat->type = type;

  return stat;
}
Exemple #4
0
static MidExtData *
mid_ext_data_new (KmsSdpHandler * handler, KmsSdpGroupManager * gmanager)
{
  MidExtData *data;

  data = g_slice_new0 (MidExtData);

  kms_ref_struct_init (KMS_REF_STRUCT_CAST (data),
      (GDestroyNotify) mid_ext_data_destroy);

  data->handler = kms_sdp_agent_common_ref_sdp_handler (handler);
  data->gmanager = gmanager;

  return data;
}
KmsSdpHandler *
kms_sdp_agent_common_new_sdp_handler (guint id, const gchar * media,
    KmsSdpMediaHandler * handler)
{
  KmsSdpHandler *sdp_handler;

  sdp_handler = g_slice_new0 (KmsSdpHandler);

  kms_ref_struct_init (KMS_REF_STRUCT_CAST (sdp_handler),
      (GDestroyNotify) kms_sdp_agent_common_destroy_sdp_handler);

  sdp_handler->id = id;
  sdp_handler->media = g_strdup (media);
  sdp_handler->handler = handler;

  return sdp_handler;
}