Sample

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

Constructors

this
this(GstSample* gstSample, bool ownedRef)

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.

Members

Functions

getBuffer
Buffer getBuffer()

Get the buffer associated with @sample

getBufferList
BufferList getBufferList()

Get the buffer list associated with @sample

getCaps
Caps getCaps()

Get the caps associated with @sample

getInfo
Structure getInfo()

Get extra information associated with @sample.

getSampleStruct
GstSample* getSampleStruct(bool transferOwnership)

Get the main Gtk struct

getSegment
Segment getSegment()

Get the segment associated with @sample

getStruct
void* getStruct()

the main Gtk struct as a void*

setBuffer
void setBuffer(Buffer buffer)

Set the buffer associated with @sample. @sample must be writable.

setBufferList
void setBufferList(BufferList bufferList)

Set the buffer list associated with @sample. @sample must be writable.

setCaps
void setCaps(Caps caps)

Set the caps associated with @sample. @sample must be writable.

setInfo
bool setInfo(Structure info)

Set the info structure associated with @sample. @sample must be writable, and @info must not have a parent set already.

setSegment
void setSegment(Segment segment)

Set the segment associated with @sample. @sample must be writable.

Static functions

getType
GType getType()

Variables

gstSample
GstSample* gstSample;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta