2.2.3.8.1 MEDIA_TYPE_DESCRIPTION

The MEDIA_TYPE_DESCRIPTION structure specifies the properties of a stream format.


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

Format

Width

...

Height

...

FrameRateNumerator

...

FrameRateDenominator

...

PixelAspectRatioNumerator

...

PixelAspectRatioDenominator

...

Flags

Format (1 byte): An 8-bit unsigned integer that specifies the stream codec.

Value

Meaning

H264
0x01

H.264 video as described in [ITU-H.264-201704].

Media samples contain H.264 bitstream data with start codes and interleaved sequence parameter set/picture parameter set (SPS/PPS) packets. Each sample contains one complete picture, either one field or one frame.

MJPG
0x02

Motion JPEG.

Motion JPEG is a video compression format in which each video frame of a digital video sequence is independently compressed as a JPEG image.

YUY2
0x03

YUY2 video as specified in [MSDN-YUVFormats].

NV12
0x04

NV12 video as described in [MSDN-YUVFormats].

I420
0x05

I420 video.

Identical to YV12 as described in [MSDN-YUVFormats] except that the order of the U and V planes is reversed.

RGB24
0x06

RGB, 24 bits per pixel.

RGB32
0x07

RGB, 32 bits per pixel.

Width (4 bytes): A 32-bit unsigned integer that MUST be set to the width of the image in pixels.

Height (4 bytes): A 32-bit unsigned integer that MUST be set to the height of the image in pixels.

FrameRateNumerator (4 bytes): A 32-bit unsigned integer containing the numerator of the frame rate. The frame rate is expressed as a ratio. For example, if the frame rate is 30 frames per second (fps), the ratio is 30/1. If the frame rate is 29.97 fps, the ratio is 30,000/1001.

FrameRateDenominator (4 bytes): A 32-bit unsigned integer containing the denominator of the frame rate.

PixelAspectRatioNumerator (4 bytes): A 32-bit unsigned integer that MUST be set to the horizontal component of the pixel aspect ratio.

PixelAspectRatioDenominator (4 bytes): A 32-bit unsigned integer that MUST be set to the vertical component of the pixel aspect ratio.

Flags (1 byte): An 8-bit unsigned integer that MUST contain a combination of zero or more flags.

Flag

Meaning

DecodingRequired
0x01

The video samples from the stream format SHOULD be decoded on the server.

BottomUpImage
0x02

The images from the stream format are bottom-up.

In a bottom-up image, the last row of pixels appears first in memory.