Share via


DSMCC_SECTION structure (mpeg2structs.h)

The DSMCC_SECTION structure represents a DSM-CC section header. If a section contains a DSM-CC header, you can cast a SECTION pointer to a DSMCC_SECTION pointer. For more information, see the Remarks section in the SECTION reference.

Syntax

typedef struct __MIDL___MIDL_itf_mpeg2structs_0000_0000_0011 {
  TID   TableId;
  union {
    MPEG_HEADER_BITS_MIDL S;
    WORD                  W;
  } Header;
  TEID  TableIdExtension;
  union {
    MPEG_HEADER_VERSION_BITS_MIDL S;
    BYTE                          B;
  } Version;
  BYTE  SectionNumber;
  BYTE  LastSectionNumber;
  BYTE  ProtocolDiscriminator;
  BYTE  DsmccType;
  WORD  MessageId;
  DWORD TransactionId;
  BYTE  Reserved;
  BYTE  AdaptationLength;
  WORD  MessageLength;
  BYTE  RemainingData[1];
} DSMCC_SECTION, *PDSMCC_SECTION;

Members

TableId

Specifies the table identifier (TID) of the section.

Header

A union that contains the following members.

Header.S

Contains packed header bits, as an MPEG_HEADER_BITS_MIDL structure. Applications should use the Header.W field instead.

Header.W

Contains the header bits as a WORD type. To get the individual bitfields, coerce this member to an MPEG_HEADER_BITS structure.

TableIdExtension

Specifies the table_id_extension field.

Version

A union that contains the following members.

Version.S

Contains the version number and current/next indicator bit as an MPEG_HEADER_VERSION_BITS_MIDL structure. Applications should use the Version.B field instead.

Version.B

Contains the version number and current/next indicator bit as a BYTE type. To get the individual bit fields, coerce this member to an MPEG_HEADER_VERSION_BITS structure.

SectionNumber

Specifies the section_number field, which gives the section number for this section.

LastSectionNumber

Specifies the last_section_number field, which gives the last (highest) section number for the table.

ProtocolDiscriminator

Indicates that the message is an MPEG-2 DSM-CC message. The value of this field is always 0x11.

DsmccType

Specifies the DSM-CC message type.

MessageId

Specifies the DSM-CC message identifier.

TransactionId

Specifies the transaction identifier.

Reserved

Reserved bytes.

AdaptationLength

Specifies the adaptation field length.

MessageLength

Specifies the message length.

RemainingData[1]

Contains the remaining section data, as a byte array. The length of the array is Header.W.SectionLength - 17 bytes.

Remarks

This structure extends the LONG_SECTION structure.

Requirements

Requirement Value
Header mpeg2structs.h

See also

BDA Structures