gst.sample

Module for [Sample] class

class Sample

Types 1

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

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Sample self() nothrowReturns `this`, for use in `with` statements.
gst.buffer.Buffer getBuffer() nothrowGet the buffer associated with sample Returns: the buffer of sample or null when there is no buffer. The buffer remains valid as long as sample is valid. If you need to hold on to it for longer th...
gst.buffer_list.BufferList getBufferList() nothrowGet the buffer list associated with sample Returns: the buffer list of sample or null when there is no buffer list. The buffer list remains valid as long as sample is valid. If you need to hold on...
gst.caps.Caps getCaps() nothrowGet the caps associated with sample Returns: the caps of sample or null when there is no caps. The caps remain valid as long as sample is valid. If you need to hold on to the caps for longer than ...
gst.structure.Structure getInfo() nothrowGet extra information associated with sample. Returns: the extra info of sample. The info remains valid as long as sample is valid.
gst.segment.Segment getSegment() nothrowGet the segment associated with sample Returns: the segment of sample. The segment remains valid as long as sample is valid.
void setBuffer(gst.buffer.Buffer buffer) nothrowSet the buffer associated with sample. sample must be writable.
void setBufferList(gst.buffer_list.BufferList bufferList) nothrowSet the buffer list associated with sample. sample must be writable.
void setCaps(gst.caps.Caps caps) nothrowSet the caps associated with sample. sample must be writable.
bool setInfo(gst.structure.Structure info) nothrowSet the info structure associated with sample. sample must be writable, and info must not have a parent set already.
void setSegment(gst.segment.Segment segment) nothrowSet the segment associated with sample. sample must be writable.
Constructors
this(void * ptr, Flag!"Take" take)
this(gst.buffer.Buffer buffer, gst.caps.Caps caps, gst.segment.Segment segment, gst.structure.Structure info = null)Create a new #GstSample with the provided details.