Gst.Sample¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gst.Sample¶
A
Gst.Sample
is a small object containing data, a type, timing and extra arbitrary information.- classmethod new(buffer, caps, segment, info)[source]¶
- Parameters:
buffer (
Gst.Buffer
orNone
) – aGst.Buffer
, orNone
segment (
Gst.Segment
orNone
) – aGst.Segment
, orNone
info (
Gst.Structure
orNone
) – aGst.Structure
, orNone
- Returns:
the new
Gst.Sample
. gst_sample_unref() after usage.- Return type:
Create a new
Gst.Sample
with the provided details.Free-function: gst_sample_unref
- get_buffer()[source]¶
- Returns:
the buffer of self or
None
when there is no buffer. The buffer remains valid as long as self is valid. If you need to hold on to it for longer than that, take a ref to the buffer with gst_buffer_ref().- Return type:
Gst.Buffer
orNone
Get the buffer associated with self
- get_buffer_list()[source]¶
- Returns:
the buffer list of self or
None
when there is no buffer list. The buffer list remains valid as long as self is valid. If you need to hold on to it for longer than that, take a ref to the buffer list with gst_mini_object_ref ().- Return type:
Get the buffer list associated with self
New in version 1.6.
- get_caps()[source]¶
- Returns:
the caps of self or
None
when there is no caps. The caps remain valid as long as self is valid. If you need to hold on to the caps for longer than that, take a ref to the caps with gst_caps_ref().- Return type:
Get the caps associated with self
- get_info()[source]¶
- Returns:
the extra info of self. The info remains valid as long as self is valid.
- Return type:
Get extra information associated with self.
- get_segment()[source]¶
- Returns:
the segment of self. The segment remains valid as long as self is valid.
- Return type:
Get the segment associated with self
- set_buffer(buffer)[source]¶
- Parameters:
buffer (
Gst.Buffer
) – AGst.Buffer
Set the buffer associated with self. self must be writable.
New in version 1.16.
- set_buffer_list(buffer_list)[source]¶
- Parameters:
buffer_list (
Gst.BufferList
) – aGst.BufferList
Set the buffer list associated with self. self must be writable.
New in version 1.6.
- set_caps(caps)[source]¶
-
Set the caps associated with self. self must be writable.
New in version 1.16.
- set_info(info)[source]¶
- Parameters:
info (
Gst.Structure
) – AGst.Structure
- Return type:
Set the info structure associated with self. self must be writable, and info must not have a parent set already.
New in version 1.16.
- set_segment(segment)[source]¶
- Parameters:
segment (
Gst.Segment
) – AGst.Segment
Set the segment associated with self. self must be writable.
New in version 1.16.