Sample

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

Constructors

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

Create a new #GstSample with the provided details.

Members

Functions

getBuffer
gst.buffer.Buffer getBuffer()

Get the buffer associated with sample

getBufferList
gst.buffer_list.BufferList getBufferList()

Get the buffer list associated with sample

getCaps
gst.caps.Caps getCaps()

Get the caps associated with sample

getInfo
gst.structure.Structure getInfo()

Get extra information associated with sample.

getSegment
gst.segment.Segment getSegment()

Get the segment associated with sample

setBuffer
void setBuffer(gst.buffer.Buffer buffer)

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

setBufferList
void setBufferList(gst.buffer_list.BufferList bufferList)

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

setCaps
void setCaps(gst.caps.Caps caps)

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

setInfo
bool setInfo(gst.structure.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(gst.segment.Segment segment)

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

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.