BaseParseFrame
- class BaseParseFrame(*args, **kwargs)
- Constructors:
BaseParseFrame()
new(buffer:Gst.Buffer, flags:GstBase.BaseParseFrameFlags, overhead:int) -> GstBase.BaseParseFrame
Constructors
- class BaseParseFrame
- classmethod new(buffer: Buffer, flags: BaseParseFrameFlags, overhead: int) BaseParseFrame
Allocates a new
BaseParseFrame
. This function is mainly for bindings, elements written in C should usually allocate the frame on the stack and then useinit()
to initialise it.- Parameters:
buffer – a
Buffer
flags – the flags
overhead – number of bytes in this frame which should be counted as metadata overhead, ie. not used to calculate the average bitrate. Set to -1 to mark the entire frame as metadata. If in doubt, set to 0.
Methods
- class BaseParseFrame
-
- init() None
Sets a
BaseParseFrame
to initial state. Currently this means all public fields are zero-ed and a private flag is set to make surefree()
only frees the contents but not the actual frame. Use this function to initialise aBaseParseFrame
allocated on the stack.
Fields
- class BaseParseFrame
- buffer
Input data to be parsed for frames.
- flags
A combination of input and output
BaseParseFrameFlags
that convey additional context to subclass or allow subclass to tune subsequentBaseParse
actions.
- offset
Media specific offset of input frame Note that a converter may have a different one on the frame’s buffer.
- out_buffer
Output data.
- overhead
Subclass can set this to indicates the metadata overhead for the given frame, which is then used to enable more accurate bitrate computations. If this is -1, it is assumed that this frame should be skipped in bitrate calculation.
- size