GstTag.TagDemuxClass

Fields

Name

Type

Access

Description

identify_tag

object

r

identify tag and determine the size required to parse the tag. Buffer may be larger than the specified minimum size. Subclassed MUST override this vfunc in their class_init function.

merge_tags

object

r

merge start and end tags. Subclasses may want to override this vfunc to allow prioritising of start or end tag according to user preference. Note that both start_tags and end_tags may be None. By default start tags are preferred over end tags.

min_end_size

int

r

minimum size required to identify a tag at the end and determine its total size. Set to 0 if not interested in end tags. Subclasses should set this in their class_init function.

min_start_size

int

r

minimum size required to identify a tag at the start and determine its total size. Set to 0 if not interested in start tags. Subclasses should set this in their class_init function.

parent_class

Gst.ElementClass

r

the parent class.

parse_tag

object

r

parse the tag. Buffer will be exactly of the size determined by the identify_tag vfunc before. The parse_tag vfunc may change the size stored in *tag_size and return GstTag.TagDemuxResult.AGAIN to request a larger or smaller buffer. It is also permitted to adjust the tag_size to a smaller value and then return GstTag.TagDemuxResult.OK in one go. Subclassed MUST override the parse_tag vfunc in their class_init function.

reserved

[object]

r

Methods

None

Details

class GstTag.TagDemuxClass

The GstTag.TagDemuxClass structure. See documentation at beginning of section for details about what subclasses need to override and do.