Share via


DSMCC_SECTION Structure

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 {
  TID TableId;
  union {
    MPEG_HEADER_BITS_MIDL S;
    WORD W;
  } Header;
  WORD 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.

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

    • 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.

    • 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.

    • 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
    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

Header Declared in Mpeg2Structs.h.

See Also

BDA Structures

Send comments about this topic to Microsoft

Build date: 12/4/2008