Compartir a través de


2.2.7 TS_AM_MEDIA_TYPE Structure

The TS_AM_MEDIA_TYPE structure describes a media format. The fields of this structure are based on the AM_MEDIA_TYPE structure. For more information about the AM_MEDIA_TYPE structure, see [MSDN-AMMEDIATYPE]. For examples of values for the individual fields, see [MSDN-MediaTypes]. This protocol does not generate values for any of the following fields, and the values are transparently sent from the server's playback platform to the client's playback platform.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

MajorType (16 bytes)

...

...

SubType (16 bytes)

...

...

bFixedSizeSamples

bTemporalCompression

SampleSize

FormatType (16 bytes)

...

...

cbFormat

pbFormat (variable)

...

MajorType (16 bytes): A 16-byte GUID that specifies the major type of the media. For examples of major type values, see [MSDN-MediaTypes].

SubType (16 bytes): A 16-byte GUID that specifies the subtype of the media. For examples of subtype values, see [MSDN-MediaTypes].

bFixedSizeSamples (4 bytes): A 32-bit unsigned integer. The value one indicates that the samples are of a fixed size.

bTemporalCompression (4 bytes): A 32-bit unsigned integer. The value one indicates that the samples are compressed by means of temporal (interframe) compression. The value one also indicates that not all frames are key frames.

SampleSize (4 bytes): A 32-bit unsigned integer. If available for a format, this value indicates the size of individual samples, in bytes.

FormatType (16 bytes): A 16-byte GUID that specifies the structure used for the format block. The pbFormat field points to the corresponding format structure. For examples of format types, see [MSDN-MediaTypes].

cbFormat (4 bytes): A 32-bit unsigned integer. This field MUST contain the number of bytes in the pbFormat field.

pbFormat (variable): A format structure that is sent as an array of bytes.