GSTLALSegmentSrc

GSTLALSegmentSrc — The output is a buffer of boolean values specifying when a list of segments are on and off.

Properties

gboolean invert-output Read / Write / Construct
GValueArray * segment-list Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstElement
                ╰── GstBaseSrc
                    ╰── GSTLALSegmentSrc

Description

Generates a one-channel boolean-valued stream from the segment-list property, which must be set to an array of two-element arrays of start/stop time pairs. If invert-output is False the start/stop pairs are taken to give intervals when the output is True, otherwise they are taken to gve intervals when the output is False.

The element can be seeked, but when seeked the requested start time must be set.

Reviewed: a2d52f933cd71abc2effa66b46d030ee605e7cea 2014-08-13 K. Cannon, J. Creighton, B. Sathyaprakash.

Actions:

  • Fix hard coded width.i

  • There is a *fixme* issue on line 498 that must be looked at.

  • Write an illustration to describe how start and stop times of segments are hanelded and if logic covers all cases possible.

Completed Action:

  • Wrote a unit test

Functions

Types and Values

GSTLAL_SEGMENTSRC_TYPE

#define             GSTLAL_SEGMENTSRC_TYPE

struct GSTLALSegmentSrc

struct GSTLALSegmentSrc;

struct GSTLALSegmentSrcClass

struct GSTLALSegmentSrcClass {
    GstBaseSrcClass     parent_class;
};

Members

Property Details

The “invert-output” property

  “invert-output”            gboolean

False = output is high in segments (default), True = output is low in segments.

Flags: Read / Write / Construct

Default value: FALSE


The “segment-list” property

  “segment-list”             GValueArray *

List of Segments. This is an Nx2 array where N (the rows) is the number of segments. The columns are the start and stop times of each segment.

Flags: Read / Write