Creates a new #GstMpegtsSection from the provided data
.
Note: Ensuring data
is big enough to contain the full section is the
responsibility of the caller. If it is not big enough, %NULL will be
returned.
Note: it is the responsibility of the caller to ensure data
does point
to the beginning of the section.
the PID to which this section belongs
a pointer to the beginning of the section (i.e. the first byte should contain the table_id
field).
Checksum (if applicable)
Applies to current/next stream or not
Number of the last expected section (if multiple)
The PID on which this section was found or belongs to.
Number of the section (if multiple)
The type of section.
This meaning differs per section. See the documentation of the parsed section type for the meaning of this field
The table id of this section. See %GstMpegtsSectionTableID and derivates for more information.
Version of the section.
Returns the #GstMpegtsAtscVCT contained in the section
Returns the #GstMpegtsAtscEIT contained in the section
.
Returns the #GstMpegtsAtscETT contained in the section
.
Returns the #GstMpegtsAtscMGT contained in the section
.
Returns the #GstMpegtsAtscRRT contained in the section
.
Returns the #GstMpegtsAtscSTT contained in the section
.
Returns the #GstMpegtsAtscVCT contained in the section
Returns the #GstMpegtsBAT contained in the section
.
Parses a Conditional Access Table.
Returns the array of #GstMpegtsDescriptor contained in the Conditional Access Table.
Gets the original unparsed section data.
Returns the #GstMpegtsEIT contained in the section
.
Returns the #GstMpegtsNIT contained in the section
.
Parses a Program Association Table (ITU H.222.0, ISO/IEC 13818-1).
Returns the array of #GstMpegtsPatProgram contained in the section.
Note: The PAT transport_stream_id
field corresponds to the
"subtable_extension" field of the provided section
.
Parses the Program Map Table contained in the section
.
Returns the #GstMpegtsSCTESIT contained in the section
.
Returns the #GstMpegtsSDT contained in the section
.
Returns the #GstMpegtsSIT contained in the section
.
Returns the #GstMpegtsTOT contained in the section
.
Parses a Transport Stream Description Table.
Returns the array of #GstMpegtsDescriptor contained in the section
Packetize (i.e. serialize) the section
. If the data in section
has already
been packetized, the data pointer is returned immediately. Otherwise, the
data field is allocated and populated.
Creates a PAT #GstMpegtsSection from the programs
array of #GstMpegtsPatPrograms
an array of #GstMpegtsPatProgram
Transport stream ID of the PAT
Creates a new #GstMpegtsSection from the provided data
.
Note: Ensuring data
is big enough to contain the full section is the
responsibility of the caller. If it is not big enough, %NULL will be
returned.
Note: it is the responsibility of the caller to ensure data
does point
to the beginning of the section.
the PID to which this section belongs
a pointer to the beginning of the section (i.e. the first byte should contain the table_id
field).
Generic usage of sections with %GstMpegtsSection
The %GstMpegtsSection object is the representation of MPEG-TS Section (SI or PSI).
Various elements can post those on the bus via %GstMessage of type %GST_MESSAGE_ELEMENT. The gst_message_parse_mpegts_section() function provides access to the section.
Applications (or other elements) can create them either by using one of the
gst_mpegts_section_from_*
functions, or by providing the raw SI data via gst_mpegts_section_new().Elements outputting MPEG-TS streams can also create sections using the various convenience functions and then get the packetized data (to be inserted in MPEG-TS packets) using gst_mpegts_section_packetize().
For more details, refer to the ITU H.222.0 or ISO/IEC 13818-1 specifications and other specifications mentioned in the documentation.
Supported base MPEG-TS sections
These are the sections for which parsing and packetizing code exists.
Program Association Table (PAT)
See:
Conditional Access Table (CAT)
See:
Program Map Table (PMT)
See:
Transport Stream Description Table (TSDT)
See:
API