2.2.3.8.1 MEDIA_TYPE_DESCRIPTION
The MEDIA_TYPE_DESCRIPTION structure specifies the properties of a stream format.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Format |
Width |
||||||||||||||||||||||||||||||
|
... |
Height |
||||||||||||||||||||||||||||||
|
... |
FrameRateNumerator |
||||||||||||||||||||||||||||||
|
... |
FrameRateDenominator |
||||||||||||||||||||||||||||||
|
... |
PixelAspectRatioNumerator |
||||||||||||||||||||||||||||||
|
... |
PixelAspectRatioDenominator |
||||||||||||||||||||||||||||||
|
... |
Flags |
||||||||||||||||||||||||||||||
Format (1 byte): An 8-bit unsigned integer that specifies the stream codec.
-
Value
Meaning
H264
0x01H.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
0x02Motion 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
0x03YUY2 video as specified in [MSDN-YUVFormats].
NV12
0x04NV12 video as described in [MSDN-YUVFormats].
I420
0x05I420 video.
Identical to YV12 as described in [MSDN-YUVFormats] except that the order of the U and V planes is reversed.
RGB24
0x06RGB, 24 bits per pixel.
RGB32
0x07RGB, 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
0x01The video samples from the stream format SHOULD be decoded on the server.
BottomUpImage
0x02The images from the stream format are bottom-up.
In a bottom-up image, the last row of pixels appears first in memory.