GstVideo.VideoVBIParser

Fields

None

Methods

class

new (format, pixel_width)

add_line (data)

copy ()

free ()

get_ancillary ()

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:
Returns:

The new GstVideo.VideoVBIParser or None if the format and/or pixel_width is not supported.

Return type:

GstVideo.VideoVBIParser or None

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.

copy()[source]
Return type:

GstVideo.VideoVBIParser

free()[source]

Frees the self.

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.