static void gst_video_rate_init (GstVideoRate * videorate, GstVideoRateClass * klass) { gst_video_rate_reset (videorate); videorate->silent = DEFAULT_SILENT; videorate->new_pref = DEFAULT_NEW_PREF; videorate->drop_only = DEFAULT_DROP_ONLY; videorate->average_period = DEFAULT_AVERAGE_PERIOD; videorate->average_period_set = DEFAULT_AVERAGE_PERIOD; videorate->max_rate = DEFAULT_MAX_RATE; videorate->from_rate_numerator = 0; videorate->from_rate_denominator = 0; videorate->to_rate_numerator = 0; videorate->to_rate_denominator = 0; gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM (videorate), TRUE); }
static void gst_motiondetect_init (StbtMotionDetect * filter, StbtMotionDetectClass * gclass) { filter->enabled = FALSE; filter->state = MOTION_DETECT_STATE_INITIALISING; filter->cvCurrentImage = NULL; filter->cvReferenceImageGray = NULL; filter->cvCurrentImageGray = NULL; filter->cvMaskImage = NULL; filter->cvInvertedMaskImage = NULL; filter->mask = NULL; filter->debugDirectory = NULL; filter->noiseThreshold = DEFAULT_NOISE_THRESHOLD; filter->display = TRUE; gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM_CAST (filter), TRUE); }
static void gst_bml_transform_init (GstBMLTransform * bml_transform) { GstBMLTransformClass *klass = GST_BML_TRANSFORM_GET_CLASS (bml_transform); GstBMLClass *bml_class = GST_BML_CLASS (klass); GstBML *bml = GST_BML (bml_transform); GST_INFO ("initializing instance: elem=%p, bml=%p, bml_class=%p", bml_transform, bml, bml_class); GST_INFO ("bmh=0x%p, src=%d, sink=%d", bml_class->bmh, bml_class->numsrcpads, bml_class->numsinkpads); bml (gstbml_init (bml, bml_class, GST_ELEMENT (bml_transform))); gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM (bml_transform), TRUE); GST_DEBUG (" done"); }
static void gst_identity_init (GstIdentity * identity) { identity->sleep_time = DEFAULT_SLEEP_TIME; identity->error_after = DEFAULT_ERROR_AFTER; identity->drop_probability = DEFAULT_DROP_PROBABILITY; identity->datarate = DEFAULT_DATARATE; identity->silent = DEFAULT_SILENT; identity->single_segment = DEFAULT_SINGLE_SEGMENT; identity->sync = DEFAULT_SYNC; identity->check_imperfect_timestamp = DEFAULT_CHECK_IMPERFECT_TIMESTAMP; identity->check_imperfect_offset = DEFAULT_CHECK_IMPERFECT_OFFSET; identity->dump = DEFAULT_DUMP; identity->last_message = NULL; identity->signal_handoffs = DEFAULT_SIGNAL_HANDOFFS; g_cond_init (&identity->blocked_cond); gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM_CAST (identity), TRUE); }
static void gst_level_init (GstLevel * filter) { filter->CS = NULL; filter->peak = NULL; filter->last_peak = NULL; filter->decay_peak = NULL; filter->decay_peak_base = NULL; filter->decay_peak_age = NULL; gst_audio_info_init (&filter->info); filter->interval = GST_SECOND / 10; filter->decay_peak_ttl = GST_SECOND / 10 * 3; filter->decay_peak_falloff = 10.0; /* dB falloff (/sec) */ filter->post_messages = TRUE; filter->process = NULL; gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM (filter), TRUE); }
static void gst_identity_init (GstIdentity * identity, GstIdentityClass * g_class) { identity->sleep_time = DEFAULT_SLEEP_TIME; identity->error_after = DEFAULT_ERROR_AFTER; identity->drop_probability = DEFAULT_DROP_PROBABILITY; identity->datarate = DEFAULT_DATARATE; identity->silent = DEFAULT_SILENT; identity->single_segment = DEFAULT_SINGLE_SEGMENT; identity->sync = DEFAULT_SYNC; identity->check_perfect = DEFAULT_CHECK_PERFECT; identity->check_imperfect_timestamp = DEFAULT_CHECK_IMPERFECT_TIMESTAMP; identity->check_imperfect_offset = DEFAULT_CHECK_IMPERFECT_OFFSET; identity->dump = DEFAULT_DUMP; identity->last_message = NULL; identity->signal_handoffs = DEFAULT_SIGNAL_HANDOFFS; #if !GLIB_CHECK_VERSION(2,26,0) g_static_rec_mutex_init (&identity->notify_lock); #endif gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM_CAST (identity), TRUE); }
static void gst_dtmf_detect_init (GstDtmfDetect * dtmfdetect, GstDtmfDetectClass * klass) { gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (dtmfdetect), TRUE); gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM (dtmfdetect), TRUE); }