Gst.Sample¶
Fields¶
None
Methods¶
| class | new(buffer, caps, segment, info) | 
| get_buffer() | |
| get_buffer_list() | |
| get_caps() | |
| get_info() | |
| get_segment() | |
| set_buffer(buffer) | |
| set_buffer_list(buffer_list) | |
| set_caps(caps) | |
| set_info(info) | |
| set_segment(segment) | 
Details¶
- 
class Gst.Sample¶
- A - Gst.Sampleis a small object containing data, a type, timing and extra arbitrary information.- 
classmethod new(buffer, caps, segment, info)[source]¶
- Parameters: - buffer (Gst.BufferorNone) – aGst.Buffer, orNone
- caps (Gst.CapsorNone) – aGst.Caps, orNone
- segment (Gst.SegmentorNone) – aGst.Segment, orNone
- info (Gst.StructureorNone) – aGst.Structure, orNone
 - Returns: - the new - Gst.Sample. gst_sample_unref() after usage.- Return type: - Create a new - Gst.Samplewith the provided details.- Free-function: gst_sample_unref 
- buffer (
 - 
get_buffer()[source]¶
- Returns: - the buffer of self or - Nonewhen 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.Bufferor- None- Get the buffer associated with self 
 - 
get_buffer_list()[source]¶
- Returns: - the buffer list of self or - Nonewhen 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: - Gst.BufferListor- None- Get the buffer list associated with self - New in version 1.6. 
 - 
get_caps()[source]¶
- Returns: - the caps of self or - Nonewhen 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: - Gst.Capsor- None- 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: - Gst.Structureor- None- 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: - Gst.Segment- Get the segment associated with self 
 - 
set_buffer(buffer)[source]¶
- Parameters: - buffer ( - Gst.Buffer) – A- Gst.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) – a- Gst.BufferList- Set the buffer list associated with self. self must be writable. - New in version 1.6. 
 - 
set_caps(caps)[source]¶
- Parameters: - caps ( - Gst.Caps) – A- Gst.Caps- Set the caps associated with self. self must be writable. - New in version 1.16. 
 - 
set_info(info)[source]¶
- Parameters: - info ( - Gst.Structure) – A- Gst.Structure- Return type: - bool- 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) – A- Gst.Segment- Set the segment associated with self. self must be writable. - New in version 1.16. 
 
- 
classmethod