Sample

A GstSample is a small object containing data, a type, timing and extra arbitrary information.

Last reviewed on 2012-03-29 (0.11.3)

Constructors

this
this(GstSample* gstSample)

Sets our main struct and passes it to the parent class

this
this(Buffer buffer, Caps caps, Segment segment, Structure info)

Create a new GstSample with the provided details. Free-function: gst_sample_unref

Members

Functions

doref
Sample doref()

Increases the refcount of the given sample by one.

getBuffer
Buffer getBuffer()

Get the buffer associated with sample

getCaps
Caps getCaps()

Get the caps associated with sample

getInfo
Structure getInfo()

Get extra information associated with sample.

getSampleStruct
GstSample* getSampleStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getSegment
Segment getSegment()

Get the segment associated with sample

getStruct
void* getStruct()

the main Gtk struct as a void*

unref
void unref()

Decreases the refcount of the sample. If the refcount reaches 0, the sample will be freed.

Variables

gstSample
GstSample* gstSample;

the main Gtk struct

Meta