Training
Module
Format alphanumeric data for presentation in C# - Training
Explore basic methods in C# to format alphanumeric data.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The information in a format describes everything you need to know about a particular type of media. Every format has a major type, like audio or video, and may have a subtype. Formats contain different information based on major type. Audio and video formats require much more information than other types.
Just as the objects of the Windows Media Format SDK differentiate between input numbers, stream numbers, and output numbers (see Inputs, Streams and Outputs), there are important distinctions between input formats, stream formats, and output formats. These differences are described here:
An input format describes the digital media that you pass to the writer object. If a stream in an ASF file is compressed with a codec, the codec will support only certain input formats. When using the Windows Media Audio and Video codecs, you can enumerate the supported input formats using the writer object. When writing a file, you are responsible for selecting an input format that matches your input media.
Although the input media format must be supported by the codec that will compress the data, some input format settings need not match the stream format. For example, the input format for a video stream may have a frame size that is different from that defined in the stream format. The codec will perform conversions in these cases.
A stream format describes the form of the media as it is stored in the ASF file. The stream format is the format described in the profile, and may or may not be the same as the input format and output format. If a codec is used to compress the data in a stream, the stream format will be different than the input and output formats.
When using the Windows Media Audio and Video codecs, you must obtain a list of supported stream formats from the codec to ensure that you are not attempting to specify a format that the code does not support. Some format settings, such as the size and color depth of a video frame, must be configured manually after the codec format is retrieved.
An output format describes the digital media that the reader (or synchronous reader) delivers to your application. If a stream in an ASF file is compressed with a codec, the codec will support only certain output formats. When using the Windows Media Audio and Video codecs, you can enumerate the supported output formats by using the reader object. Each of the Windows Media codecs has a default output format, but you can select any supported output format for sample delivery.
Although the output media format must be supported by the codec that compressed the data, some output format settings need not match the stream format. For example, the output format for a video stream may have a frame size that is different from that defined in the stream format. The codec will perform conversions in these cases.
Training
Module
Format alphanumeric data for presentation in C# - Training
Explore basic methods in C# to format alphanumeric data.
Documentation
Features
D3D12_VIDEO_PROCESS_ALPHA_BLENDING - Win32 apps
Specifies alpha blending parameters for video processing.
Writing ASF Files - Win32 apps
Writing ASF Files