GstVideo.VideoVBIParser¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
Details¶
- class GstVideo.VideoVBIParser¶
A parser for detecting and extracting GstVideoAncillary data from Vertical Blanking Interval lines of component signals.
New in version 1.16.
- classmethod new(format, pixel_width)[source]¶
- Parameters:
format (
GstVideo.VideoFormat
) – aGstVideo.VideoFormat
pixel_width (
int
) – The width in pixel to use
- Returns:
The new
GstVideo.VideoVBIParser
orNone
if the format and/or pixel_width is not supported.- Return type:
Create a new
GstVideo.VideoVBIParser
for the specified format and pixel_width.New in version 1.16.
- add_line(data)[source]¶
- Parameters:
data (
bytes
) – The line of data to parse
Provide a new line of data to the self. Call
GstVideo.VideoVBIParser.get_ancillary
() to get the Ancillary data that might be present on that line.New in version 1.16.
- get_ancillary()[source]¶
- Returns:
GstVideo.VideoVBIParserResult.OK
if ancillary data was found and anc was filled.GstVideo.VideoVBIParserResult.DONE
if there wasn’t any data.- anc:
a
GstVideo.VideoAncillary
to start the eventual ancillary data
- Return type:
(
GstVideo.VideoVBIParserResult
, anc:GstVideo.VideoAncillary
)
Parse the line provided previously by
GstVideo.VideoVBIParser.add_line
().New in version 1.16.