gst.sample
Module for [Sample] class
class Sample
Types 1
classSample : gobject.boxed.Boxed
A #GstSample is a small object containing data, a type, timing and extra arbitrary information.
Methods
gst.buffer.Buffer getBuffer()Get 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()Get 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()Get 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()Get 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()Get 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)Set the buffer associated with sample. sample must be writable.void setBufferList(gst.buffer_list.BufferList bufferList)Set the buffer list associated with sample. sample must be writable.void setCaps(gst.caps.Caps caps)Set the caps associated with sample. sample must be writable.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.void setSegment(gst.segment.Segment segment)Set the segment associated with sample. sample must be writable.Constructors
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.